歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> Ubuntu 安裝 lnmp

Ubuntu 安裝 lnmp

日期:2017/3/3 14:15:48   编辑:Linux技術
1。需要安裝screen,如果輸入命令:
screen -S lnmp
提示
The program 'screen' is currently not installed.You can install it by typing:sudo apt-get install screen,
就按其提示輸入 命令
sudo apt-get install screen.
安裝結束後,運行組合命令:
sudo wget -chttp://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz && tar zxf lnmp1.1-full.tar.gz && cd lnmp1.1-full && ./ubuntu.sh
安裝時可能會提示沒有權限,
You must be root to run this script, please use root to install lnmp
按如下操作:
sudo chmod u+w /etc/sudoers  
sudo vi /etc/sudoers

找到root ALL=(ALL:ALL) ALL
在下面加一行:
yourname ALL=(ALL) ALL
如果修改了權限,注意要改回440.
保存
接著運行:
./ubuntu.sh
下面會提示
輸入mysql密碼  
是否安裝InnoDB Storeage Engine  
選擇PHP版本  
選擇MariaDB版本  
選擇好以後就開始繼續安裝過程。
Copyright © Linux教程網 All Rights Reserved