LnmpShell
LnmpShell copied to clipboard
Linux 上php mysql nginx集成bash脚本
trafficstars
LNMP编译脚本
Linux 上php mysql nginx集成bash脚本下载
使用
chmod a+x install.sh
./install.sh
注意
- 必须以root用户运行脚本
install.sh用来安装nginx和php,mysql.sh用来安装mysql- 修改php和nginx版本的话,请修改
nginx_version和php_version变量(在shell开头),默认安装PHP版本为7.1.16 - mcrypt已被PHP废弃,该shell中不安装它
代码说明
Get_Dist_Name用来判断不同的Linux发行版install_dependencies安装软件依赖install_nginx安装nginxinstall_php安装php- Ubuntu和Debian的mysqlclient-dev库名不一样,前者为libmysqlclient-dev,后者为default-libmysqlclient-dev
联系
我的博客