First, we use SSH to login to the operating system ...
Then download the installation package
Copy Code code as follows:
wget Http://catlnmp.googlecode.com/files/lnmp1.1.zip
And then we unpack it.
Copy Code code as follows:
Some are not unzip, we are like this
Copy Code code as follows:
And then we jump to that directory
Copy Code code as follows:
Then we add permissions to the file:
Copy Code code as follows:
chmod +x install.sh apc.sh eaccelerator.sh
Finally we execute
Copy Code code as follows:
After installing the default MySQL username and password are root, we can use the following command to modify the password:
Copy Code code as follows:
/usr/local/mysql/bin/mysqladmin-u root-p Password your password.
So you can upload your site.
Program Installation path:
MySQL:/usr/local/mysql
PHP:/usr/local/php
Nginx:/usr/local/nginx
Phpmyadmin/home/www/phpmyadmin
Web Directory/home/www
FTP root directory/home/www
Note: MySQL database username root password root, login into the MySQL database, find the user table, delete all except the root password of all users.
You need to install VSFTP to perform the following commands:
Copy Code code as follows:
Yum-y Install VSFTPD
/ETC/INIT.D/VSFTPD start
Chkconfig--level 345 vsftpd on
The WWW user password can be modified by logging on to WWW users:
Copy Code code as follows:
You need to install Eaccelerator to perform the following commands:
Copy Code code as follows:
You need to install APC to perform the following commands:
Copy Code code as follows:
Note: Eaccelerator APC can only choose to install one
For actions such as adding a site and restarting Nginx see: CentOS Some basic commands to use