Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pigloverabbit520/lnmpshell
Linux 上php mysql nginx集成bash脚本
https://github.com/pigloverabbit520/lnmpshell
linux nginx php shell
Last synced: 3 months ago
JSON representation
Linux 上php mysql nginx集成bash脚本
- Host: GitHub
- URL: https://github.com/pigloverabbit520/lnmpshell
- Owner: pigLoveRabbit520
- Created: 2017-02-22T10:11:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T03:47:05.000Z (almost 5 years ago)
- Last Synced: 2023-07-17T11:35:57.136Z (over 1 year ago)
- Topics: linux, nginx, php, shell
- Language: Shell
- Size: 30.3 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LNMP编译脚本
Linux 上php mysql nginx集成bash脚本[下载](http://file.51lucy.com/LNMP.tar.gz)# 使用
```
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中不安装它# 代码说明
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# 联系
我的[博客](https://blog.51lucy.com/)