With the popularity of PHP, we often need to deploy and install the PHP environment in Linux. If you are not familiar with this, you will encounter many problems, even those who are familiar with it will find it cumbersome. The author is engaged in Linux operation and maintenance, and specially released lnmp for this purpose. Key environment deployment script to solve your needs, the installation steps are now released as follows:
Tools/Materials
- git (for version pull)
- Linux system (CentoOS 6.x, CentOS 7.x, Ubuntu 14.x, Ubuntu 16.x)
- Linux remote tools (such as putty, xshell)
Method/Step
Install git
Enter the command in the command after installation;
git clone https://gitee.com/hehl/lnmp
After successful cloning, enter the lnmp folder directory
cd lnmp
./install.sh #Enter to install
The installation menu will appear, whether to synchronize the system time, install nginx, mysql version selection, etc.;
After selecting the installed software, it will automatically detect and install the corresponding version of nginx, mysql, php. As shown in the figure, the result of the installation is displayed:
The lnmp one-click deployment script supports:
mysql version upgrade, 5.6 upgrade to 5.7;
PHP version switch, 5.6 switch to 7.1;
mysql database backup and restore;
mysql database root account password reset;
FTP software pureftp installation;
lnmp one-click script deployment and uninstallation;
One-click configuration of nginx virtual site vhost;
redis is installed and set as a service.
END
The above is the Linux-related knowledge shared by Liangxu Tutorial Network for all friends.