阿里云一键安装 debian 安装LNMP
sudo apt-get updatesudo apt-get install build-essentialsudo apt-get install screenhttps://lnmp.org/install.html 获取相关版本或设置无人值守wget http://soft.vpser.net/lnmp/lnmp1.7.tar.gz -cO lnmp1.7.tar.gz &&
·
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install screen
https://lnmp.org/install.html 获取相关版本或设置无人值守
wget http://soft.vpser.net/lnmp/lnmp1.7.tar.gz -cO lnmp1.7.tar.gz && tar zxf lnmp1.7.tar.gz && cd lnmp1.7 && LNMP_Auto="y" DBSelect="2" DB_Root_Password="Ww@@112233" InstallInnodb="y" PHPSelect="5" SelectMalloc="1" ./install.sh lnmp
CTR+A+D退出,运行完成。
PHP:
域名指定公网IP,虚拟主机只需要设置安全规则:80端口打开
网站在/home/wwwroot
数据库也是在lnmp搞定,注意给授权:例如:
sudo chmod 777 /home/wwwroot/shop.c5s.cn/diguo/class/config.php
更多推荐
所有评论(0)