1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
| 参考官方安装教程: https://lnmp.org/install.html
[root@vip ~]# screen -S lnmp [root@vip ~]# cd /opt [root@vip lnmp1.4]# wget -c http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar zxf lnmp1.4.tar.gz && cd lnmp1.4 && ./install.sh lnmp --2017-09-01 14:13:55-- http://soft.vpser.net/lnmp/lnmp1.4.tar.gz Resolving soft.vpser.net (soft.vpser.net)... 50.116.14.213, 2604:a880:1:20::5f9:4001 Connecting to soft.vpser.net (soft.vpser.net)|50.116.14.213|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 136882 (134K) [application/octet-stream] Saving to: ‘lnmp1.4.tar.gz’
100%[==========================================================================================>] 136,882 267KB/s in 0.5s
2017-09-01 14:13:56 (267 KB/s) - ‘lnmp1.4.tar.gz’ saved [136882/136882] +------------------------------------------------------------------------+ | LNMP V1.4 for CentOS Linux Server, Written by Licess | +------------------------------------------------------------------------+ | A tool to auto-compile & install LNMP/LNMPA/LAMP on Linux | +------------------------------------------------------------------------+ | For more information please visit https://lnmp.org | +------------------------------------------------------------------------+ You have 5 options for your DataBase install. 1: Install MySQL 5.1.73 2: Install MySQL 5.5.56 (Default) 3: Install MySQL 5.6.36 4: Install MySQL 5.7.18 5: Install MariaDB 5.5.56 6: Install MariaDB 10.0.30 7: Install MariaDB 10.1.23 0: DO NOT Install MySQL/MariaDB Enter your choice (1, 2, 3, 4, 5, 6, 7 or 0): 2 You will install MySQL 5.5.56 =========================== Please setup root password of MySQL.(Default password: root) Please enter: 123456 MySQL root password: 123456 =========================== Do you want to enable or disable the InnoDB Storage Engine? Default enable,Enter your choice [Y/n]: y You will enable the InnoDB Storage Engine =========================== You have 6 options for your PHP install. 1: Install PHP 5.2.17 2: Install PHP 5.3.29 3: Install PHP 5.4.45 4: Install PHP 5.5.38 (Default) 5: Install PHP 5.6.31 6: Install PHP 7.0.21 7: Install PHP 7.1.7 Enter your choice (1, 2, 3, 4, 5, 6 or 7): 4 You will install PHP 5.5.38 =========================== You have 3 options for your Memory Allocator install. 1: Don't install Memory Allocator. (Default) 2: Install Jemalloc 3: Install TCMalloc Enter your choice (1, 2 or 3): 1 You will install not install Memory Allocator.
Press any key to install...or Press Ctrl+c to cancel
......
============================== Check install ============================== Checking ... Nginx: OK MySQL: OK PHP: OK PHP-FPM: OK Clean src directory... +------------------------------------------------------------------------+ | LNMP V1.4 for CentOS Linux Server, Written by Licess | +------------------------------------------------------------------------+ | For more information please visit https://lnmp.org | +------------------------------------------------------------------------+ | lnmp status manage: lnmp {start|stop|reload|restart|kill|status} | +------------------------------------------------------------------------+ | phpMyAdmin: http://IP/phpmyadmin/ | | phpinfo: http://IP/phpinfo.php | | Prober: http://IP/p.php | +------------------------------------------------------------------------+ | Add VirtualHost: lnmp vhost add | +------------------------------------------------------------------------+ | Default directory: /home/wwwroot/default | +------------------------------------------------------------------------+ | MySQL/MariaDB root password: 123456 | +------------------------------------------------------------------------+ +-------------------------------------------+ | Manager for LNMP, Written by Licess | +-------------------------------------------+ | https://lnmp.org | +-------------------------------------------+ nginx (pid 28438 28436) is running... php-fpm is runing! SUCCESS! MySQL running (28979) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN Install lnmp takes 28 minutes. Install lnmp V1.4 completed! enjoy it.
|