Lamp Environment --linux
Directory
LAMP Environment --linux 1
One, file Operation 3
1 , Find File Lookup 3
2 , DF disk partition Information 3
3 , du Statistics File size information 4
4 , Mount Disk 5
Second, configure the network 6
1 , configuration Files 6
2 , starting the network 6
3 , ifconfig View network Information 7
4 , Ping test the network is unblocked 7
5 , Linux Firewall 9
Third, FTP Service 10
1 , FlashFXP Software Use 10
2 , vsftpd Service 12
Four, LAMP installation of the software 12
1 , LAMP Software Installation Sequence 12
2 , copy all files to Root Home under 13
3 , switch home, uninstall amp Software 13
1 ) Uninstall Apache ( http ) Software 13
2 , uninstall MySQL Software 14
3 , uninstall PHP 14
4 , installation Apache Software 15
1 ) Unzip 15
2 ) Configure installation path information 15
3 ) Make compilation 15
4 ) Make Install Installation 16
5 ) Verify that the installation is successful 16
5 , installation Mysql Software 16
1 ) Decompression MySQL 16
2 ) Copy the source package to /usr/local/mysql 16
3 ) to create MySQL groups, and MySQL User 17
4 ) Switch to /usr/local/mysql folder, installed in the following manner 17
5 ) Verify that the database is installed successfully 18
6 ) Settings Root Password 19
6 , installation PHP Software 19
1 ) Decompression and installation 19
2 ) configuration file 19
3 ) Validation PHP Code 20
7 , writing test cases: through PHP adding data to a database 20
8 , leak check 21
1 ) php.ini file Configuration 21
2 ) Configure self-starting service 22
3 ) to Apache with the MySQL Add a soft link 22
Five, SSH Service 23
1 , through SSH complete file upload and download 23
vi. Remote file management ( Linux ) 1, file Operation , find file search
Find [directory list] [match parameters] [match criteria]: Find Files
-name: Search by file name
-group: Find based on the group that the file belongs to
-user: Based on file owner lookup
-name:
-group:
-user:
Suggestions: When retrieving file information, we try to narrow the scope of search, improve the retrieval speed 2, DF disk partition information
-L: View Local Disk information
H: Display disk information in 1024 binary
H: Display disk information in 1000 binary
T: Show Disk type
T: Displays the specified disk type
X: Displays disk information except for the specified type
3. Du Statistics File size Information
-B: Display file information in bytes bytes
K: Display file information in K (Kbytes)
M: displaying file information in megabytes
H: Display file information in 1024 binary (G)
H: Display file information in 1000 binary (G)
S: Statistics folder size
-S: Statistics folder size
4. Mount Disk
If we're not sure we want to mount that hard drive information, you can use Fdisk–l to view the system partition information
Mount: Mount System
Umount: Uninstalling the System
Eject: Eject optical drive
two , configure the network 1. Configuration files
/etc/sysconfig/network-scripts/ifcfg-eth0
Open File
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Device: Unit name (NIC)
Onboot: When the system starts, the network card is started
Bootproto: Internet mode (DHCP automatically acquires/static solid state IP)
Hwaddr:mac address (Nic factory comes with)
Ipaddr:ip Address
NETMASK: Subnet Mask 255.255.255.0
Gateway: Default Gateways
Save exit, restart Network Service 2, start network
Service Network Start|stop|restart|status
Start all network services start | stop | restart | status
Ifup start specifying a NIC
Ifdown off specifying a NIC
3. ifconfig View Network Information
When the network card is started, you can check whether the network card is effective by ifconfig instruction
If the network card has been successfully configured, then the red box information is exactly the same as the configuration information 4,ping test Network is unblocked
If the NIC is configured, you can test the network through the ping command.
Ping IP Address
Note: If you are using virtual machine to install Linux with Windows host interaction, you must change the network mode to bridging mode
After the configuration is complete, restart the network service restart
Linux:
Window:
Issue: If Windows cannot ping Linux, check to see if the Linux system Firewall is turned on 5,Linux firewall
Setup instructions
Click Firewall settings:
Click Customize:
SSH, WWW, FTP are allowed through the firewall by default. three , FTP services 1,FlashFXP software use
Graphical interface:
Description: When FlashFXP links to Linux, only non-root users can be used
After linking, it is found that the FLASHFXP in window cannot connect to the Linux system for the following reasons: the VSFTPD service in the Linux system is not turned on. 2. VSFTPD Service
L Service: VSFTPD
L Position: Disc 1
L Software: vftpd-2.0.1-5.i386.rpm
L Configuration:/etc/vsftpd/vsftpd.conf
Description
If the FTP service is not installed on the system, you can go to Disc 1 to find the above file, install it, and install it by default.
Open the FTP service via service VSFTPD start
Link Linux again
The link was successful. Four , lamp Software Installation 1. LAMp Software Installation sequence
Lamp software is installed in the following order:
Apache
Mysql
Php
2. Copy All files to Root Home under
3. switch Home, uninstall amp software 1) uninstalling Apache (http) software
Rpm–qa | grep http
Rpm–e
2. uninstalling MySQL software
3. Uninstalling PHP
20150309+linux+lamp Installation-01