CentOS 6.8 x64 最小化安装
yum -y install wget # 要确保yum能正常安装的,因为安装LNMP需要用到yum。
wget http://soft.vpser.net/lnmp/lnmp1.5-full.tar.gz # 完整包
tar xf lnmp1.5-full.tar.gz
cd lnmp1.5-full
./install.sh lnmpa # 需要联网
--------------------------------------------------------------------
+------------------------------------------------------------------------+
| LNMP V1.5 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 10 options for your DataBase install.
1: Install MySQL 5.1.73
2: Install MySQL 5.5.60 (Default)
3: Install MySQL 5.6.40
4: Install MySQL 5.7.22
5: Install MySQL 8.0.11
6: Install MariaDB 5.5.60
7: Install MariaDB 10.0.35
8: Install MariaDB 10.1.33
9: Install MariaDB 10.2.14
0: DO NOT Install MySQL/MariaDB
Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9 or 0): 0
Do not install MySQL/MariaDB!
===========================
You have 8 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
5: Install PHP 5.6.36 (Default)
6: Install PHP 7.0.30
7: Install PHP 7.1.18
8: Install PHP 7.2.6
Enter your choice (1, 2, 3, 4, 5, 6, 7 or 8): 8
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): 2
You will install JeMalloc
===========================
Please enter Administrator Email Address: admin@test.org
===========================
Server Administrator Email: admin@test.org
===========================
===========================
You have 2 options for your Apache install.
1: Install Apache 2.2.34
2: Install Apache 2.4.33 (Default)
Enter your choice (1 or 2): 2
Press any key to install...or Press Ctrl+c to cancel
--------------------------------------------------------------------
![e684378c3109a6804b649dcb89d1afa1.png](https://i-blog.csdnimg.cn/blog_migrate/4f3689fc7eab956504b7c301b231f214.jpeg)
说明:安装版本看个人喜好,这里仅供参考。另外,我这里不安装数据库,需要用到数据库再另外搭建数据库服务器用。