Linux one-click installation of php environment

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

  1. Install git

6 How to Install windows git

  1. 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

    How to quickly install and deploy lnmp one-click deployment in php environment under linux

  2. The installation menu will appear, whether to synchronize the system time, install nginx, mysql version selection, etc.;

    How to quickly install and deploy lnmp one-click deployment in php environment under linux

  3. 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:

    How to quickly install and deploy lnmp one-click deployment in php environment under linux

  4. 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.

    How to quickly install and deploy lnmp one-click deployment in php environment under linux

    How to quickly install and deploy lnmp one-click deployment in php environment under linux

    END

The above is the Linux-related knowledge shared by Liangxu Tutorial Network for all friends.

Guess you like

Origin blog.csdn.net/manongxianfeng/article/details/112990462