Linux+Nginx+Mysql+PHP+Apache一鍵安裝

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: [email protected]

===========================

Server Administrator Email: [email protected]

===========================

===========================

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

--------------------------------------------------------------------

Linux+Nginx+Mysql+PHP+Apache一鍵安裝

說明:安裝版本看個人喜好,這裡僅供參考。另外,我這裡不安裝數據庫,需要用到數據庫再另外搭建數據庫服務器用。


分享到:


相關文章: