Jack 发布于5月12日 分享 发布于5月12日 (已编辑) ------------------------------------ 安裝LNMP,先不要安裝MariaDB (國內主機使用) ------------------------------------ 安裝步驟 https://lnmp.org/install.html sudo apt-get install screen sudo apt-get install tar zip unzip screen -S lnmp wget https://soft.lnmp.com/lnmp/lnmp2.0.tar.gz -O lnmp2.0.tar.gz && tar zxf lnmp2.0.tar.gz && cd 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. 本帖最后于5月19日,由Jack编辑 意见的链接 分享到其他网站 更多分享选项…
推荐的帖子
创建帐户或登录后发表意见
你需要成为会员才能发表意见
创建帐户
在我们的论坛注册新帐户,只需要几个简单步骤!
注册帐户登录
已有帐户?请登录。
立刻登录