Skip to content
Linux 上php mysql nginx集成bash脚本
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
install.sh
mysql.sh

README.md

LNMP编译脚本

Linux 上php mysql nginx集成bash脚本下载

使用

chmod a+x install.sh
./install.sh

注意

  • 必须以root用户运行脚本
  • install.sh用来安装nginx和php,mysql.sh用来安装mysql
  • 修改php和nginx版本的话,请修改nginx_versionphp_version变量(在shell开头),默认安装PHP版本为7.1.16
  • mcrypt已被PHP废弃,该shell中不安装它

代码说明

  1. Get_Dist_Name用来判断不同的Linux发行版
  2. install_dependencies安装软件依赖
  3. install_nginx安装nginx
  4. install_php安装php
  5. Ubuntu和Debian的mysqlclient-dev库名不一样,前者为libmysqlclient-dev,后者为default-libmysqlclient-dev

联系

我的博客

You can’t perform that action at this time.