centos system under the LNMP environment one click installation

  • 2020-05-06 12:11:49
  • OfStack

First, let's log into the operating system with SSH...
Then download the installation package


wget http://catlnmp.googlecode.com/files/lnmp1.1.zip 

Then we unzip

unzip lnmp1.1.zip 

Some of them don't have unzip, let's do


yum install unzip 

We then jump to the directory


cd lnmp 

Then we add permissions to the file:


chmod +x install.sh apc.sh eaccelerator.sh 

Finally, we execute


./install.sh 


The default mysql username and password are root, so we can change the password by using the following command:


/usr/local/mysql/bin/mysqladmin -u root -p password  Your password  

So you can upload your website.

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 /home/www
note: MYSQL database user name root password root, login into the mysql database, find the user table, delete all users except root password.
requires the installation of vsftp to perform the following command:


yum -y install vsftpd 
/etc/init.d/vsftpd start 
chkconfig --level 345 vsftpd on 

Login as www user can change the www user password:  


passwd www

Those who need to install eaccelerator can execute the following command:


./eaccelerator.sh 

Those who need to install apc can do the following:


unzip lnmp1.1.zip 
0
Note :Eaccelerator apc can only install one
For more information about adding a site and restarting nginx, see

, the basic command for Centos

Related articles: