Tutorial 2 of linux

Source: Internet
Author: User
I believe many new users who want to learn linux are wondering what linux learning courses are good. the following small series will collect and organize several important tutorials for you to learn, if you want to learn more, go to the wdlinux school to find more tutorials. Install phpize in php extension module... I believe many new users who want to learn linux are wondering what linux learning courses are good. the following small series will collect and organize several important tutorials for you to learn, if you want to learn more, go to the wdlinux school to find more tutorials.
Install php Phpize of expansion module
One way to install the PHP module is to add relevant parameters to recompile PHP
One is to use phpize, such as eaccelerator and memcache, which is convenient and can be enabled or disabled at any time without re-compiling PHP.

How to use phpize
This file will be available in the system where PHP is installed. in wdlinux, this file is stored in
/Www/wdlinux/php/bin/phpize

Then enter the source code directory to be compiled, and then run the above phpize to generate the corresponding configuration, and then run the configuration to complete the compilation.
For example
Tar zxvf eaccelerator-0.9.6.1.tar.bz2
Cd eaccelerator-0.9.6.1
/Www/wdlinux/php/bin/phpize
./Configure -- with-php-config =/www/wdlinux/php/bin/php-config
Make
Make install

As long as there is no error, after the execution is complete, the module is installed.
One may need to be configured or set
You can modify the php. ini file, as shown in figure
Vi/www/wdlinux/etc/php. ini
 
Linux Release version or branch
To be exact, Linux should be a kernel of a linux system, but now Linux usually refers to a system.

How does Linux come from?
It was first written by a Finnish college student and then published on the Internet and open-source. anyone in the world can download the source code.
Some open-source enthusiasts are also involved in open-source and maintenance.
Today, this is a very strong and mature system.


As mentioned above, Linux is a system, a kernel, and an open source
Because it is open-source and powerful, there are more companies and teams involved in development and improvement.
Because the applications are different or the user groups are different, many branches and versions appear.
I think the most powerful and influential ones are Redhat, SUSE, Debian, CentOS, Ubuntu, Fedora, Gentoo, Slackware, Mint, etc. there are too many

Nowadays, many people use CentOS and Ubuntu.
Ubuntu for the desktop version is still very good. I have never used it for the server version. it is not easy to comment, but there are still many people using it.
I think CentOS is better. this is the Redhat-based recompilation version, which may be the reason why I am used to it. so I like it, but there are also many people who think CentOS is good.
Therefore, I also made a simplified and optimized version based on CentOS for web server applications and integrated the most popular WEB environment and wdcp management system.
Allows you to manage servers, virtual hosts, website creation, FTP, and databases.

There are too many Linux History and branch versions. here is a brief introduction.
 
 
In windows, we are used to using drive letters, such as C, D, E, F... disks, to represent each partition.

In Linux, there is no concept of drive letters. all partitions or hard disks are represented by Directories. directories and files represent all, while the top-level directory is, it is called the root directory.

Here, we also need to understand the root directory or root partition. the root directory contains subdirectories or partitions. it can be understood that the root directory is "my computer" in windows"

At the same time, any partition can be loaded or attached to any directory or sub-directory, which is flexible for some special applications or needs.


The following describes a typical Linux directory structure.
/Root directory
/Bin to store necessary commands
/Boot stores the kernel and files required for startup.
/Dev stores device files
/Etc stores system configuration files
/Home: the home directory of the user file. user data is stored in the home directory.
/Lib stores necessary runtime libraries
/Mnt stores the temporary ing file system. we usually mount the soft Drive and optical drive to the floppy and cdrom subdirectories here.
/Proc stores stored process and system information
/Root directory
/Sbin storage system management program
/Tmp directory for storing temporary files
/Usr contains applications that do not need to be modified, command program files, libraries, manuals, and other documents.
/Var contains frequently-changing files generated by the system, such as printers, emails, news, and other offline directories, log files, formatted manual pages, and data files of some applications.

The structure in the/usr directory is as follows:
The typical/usr directory is as follows:
/Usr/X11R6 storage X window System
/Usr/bin stores the added user program
/Usr/dict storage Dictionary
/Usr/doc to store appended documents
/Usr/etc stores the setting file
/Usr/games stores game and teaching files
/Usr/include: stores the header files of C development tools.
/Usr/info stores GNU information files
/Usr/lib: Store library files
/Usr/local stores locally generated applications
/Usr/man stores online help files
/Usr/sbin to store the added hypervisor
/Usr/share stores data with independent structures
/Usr/src stores the source code of the program

Linux Directory structure
Because the files in/usr are not related to a specific computer and will not be modified in normal use, you can share the Directory (file system) over the network. in this way, after the administrator installs the new software, all computers that share the file system can use the new software.
Linux inherits the clear structure of unix operating systems. The file structure in linux is very organized. However, the above advantages can be realized only when you are familiar with linux. Now, I will briefly introduce the directory structure in linux.
/Vmlinuz
We already know that every linux has a kernel (vmlinuz). we can add modules on this kernel to complete various specific functions, each module is embodied in different directories in linux. Of course, the directories of different release kits vary slightly, but their main structures are the same. We also need to combine the functional modules of linux with various applications so that your linux system can serve you. The kernel is stored in the/vmlinuz directory. Remember this kernel we mentioned when configuring lilo?
/Bin
Obviously, bin is the abbreviation of binary. In general systems, you can find common linux commands in this directory. In some versions, you will find some directories that are the same as those in the root directory.
/Boot
This directory stores all the programs used when the system starts. We will use some information here when we use lilo to guide linux.
/Dev
Dev is the abbreviation of device. This directory is very important to all users. This directory contains all external devices used in linux. However, this is not the driver of the external device. This is different from the common windows and dos operating systems. It is actually a port that accesses these external devices. We can easily access these external devices, and there is no difference between accessing a file and a directory. For example, you can enter "cd/dev/cdrom" in the system to view the files in the optical drive. In the same way, we can type cd/dev/mouse to see the relevant files of the mouse. In this directory, there is a null device, which has no meaning. If you write files or content to this directory, all of them will be rejected.
/Cdrom
This directory is empty when you just installed the system. You can mount the optical drive file system to this directory. Example: mount/dev/cdrom
/Etc
The etc directory is one of the most important directories in linux. This directory stores various configuration files and subdirectories used for system management. The network configuration file, file system, x system configuration file, device configuration information, and user information that we need to use are all in this directory. In the future, the insects will detail the contents in this directory.
/Sbin
This directory is used to store system management programs of the system administrator.
/Home
If we create a user named "xx", there is a corresponding/home/xx path under the/home directory to store the user's home directory.
/Lib
Lib is the abbreviation of library. This directory is used to store the system to dynamically connect to the shared library. Almost all applications use the shared libraries in this directory. Therefore, do not perform any operations on this directory easily. Once a problem occurs, your system will not be able to work. at that time, you should not say that the insects did not remind you.
/Lost + found
This directory is empty in most cases. However, if you have a sudden power failure at work or do not shut down properly, when you restart the machine, some files will not be found where they should be stored. for these files, the system places them in this directory, like providing a temporary shelter for homeless people.
/Mnt
This directory is usually empty. You can temporarily mount other file systems in this directory.
/Proc
You can obtain system information in this directory. This information is generated by the system itself in the memory.
/Root
If you log on as a super user, this is the main directory of the Super User.
/Tmp
It is used to store temporary files generated during execution of different programs.
/Usr
This is the directory that occupies the largest hard disk space in linux. Many of your applications and files are stored in this
Directory.
 
This tutorial is taken from the wdlinux Forum http://www.wdlinux.cn/bbs/. for more information, see!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.