Jump to content

2-0.安裝LNMP,先不要安裝MariaDB (外國主機使用)


Recommended Posts

Posted (edited)

------------------------------------
安裝LNMP,先不要安裝MariaDB (外國主機使用)
------------------------------------

安裝步驟
https://lnmp.org/install.html


更换lnmp下载镜像(国内/国外)地址
https://lnmp.org/faq/download-url.html

 

apt-get install screen


apt-get install tar zip unzip


wget https://soft.lnmp.com/lnmp/lnmp2.0.tar.gz -O lnmp2.0.tar.gz && tar zxf lnmp2.0.tar.gz


更換為國外的節點 (使用國外主機)


vi /root/lnmp2.0/lnmp.conf


Download_Mirror='https://soft.lnmp.com'
改為
Download_Mirror='https://soft2.vpser.net'

 

ESC儲存並離開
:wq

 


重開機
reboot

 

------------------------
開始安裝LNMP 2.0
------------------------

screen -S lnmp

cd /root/lnmp2.0/

./install.sh lnmp

 

You have 11 options for your DataBase install.
1: Install MySQL 5.1.73
2: Install MySQL 5.5.62 (Default)
3: Install MySQL 5.6.51
4: Install MySQL 5.7.42
5: Install MySQL 8.0.33
6: Install MariaDB 5.5.68
7: Install MariaDB 10.4.29
8: Install MariaDB 10.5.20
9: Install MariaDB 10.6.13
10: Install MariaDB 10.11.3
0: DO NOT Install MySQL/MariaDB
Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or 0): 

先不要安裝資料庫
按0

 

 

You have 9 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.40 (Default)
6: Install PHP 7.0.33
7: Install PHP 7.1.33
8: Install PHP 7.2.34
9: Install PHP 7.3.33
10: Install PHP 7.4.33
11: Install PHP 8.0.28
12: Install PHP 8.1.19
13: Install PHP 8.2.6
Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13): 

我選擇PHP 8.1
按 12

 

 

 

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

 

 

Press any key to install...or Press Ctrl+c to cancel
按任意鍵,開始安裝

 

 


開始漫長的安裝過程,若斷線

因為一開始就用指令 screen -S lnmp 去安裝

那麼恢復連線,可以敲指令繼續 screen -r lnmp

 

 

安裝完成,花費37分鐘

Checking ...
Nginx: OK
Do not install MySQL/MariaDB.
PHP: OK
PHP-FPM: OK
Clean Web Server src directory...

Install lnmp takes 37 minutes.
Install lnmp V2.0 completed! enjoy it.

Edited by Jack
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...