搭建LNMP环境
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
tar xzvf oneinstack-full.tar.gz
cd oneinstack
./install.sh #注:请勿sh install.sh或者bash install.sh这样执行
安装选项选择
1.设置SSH端口(默认22),回车即可
Do you want to enable iptables? \[y/n\]: n
2.然后选择是否安装 web,输入y
3.输入 1 安装 nginx
4.输入 3 不安装Apache
5.输入 5 不安装tomcat
6.然后选择是否安装数据库database,输入y
7.输入 2 安装mysql-5.7
8.然后输入数据库root密码123456(注:妥善保管)
9.然后输入1 选择从二进制安装
10.然后输入 y 安装PHP
11.输入 5 安装PHP7.0
12.输入 y 安装php 缓存插件
Do you want to instal opcode cache of the PHP? [y/n]:y
13.输入 1 安装Zend OPcache
14.Please select PHP extensions: 只选Redis【这个地方特别注意】
15.输入 n 不安装Pure-FTPd
16.输入 y 安装phpMyAdmin
17. 输入 y 安装redis-server
18.输入 n 不安装memcached-server
19.输入 n 不安装HHVM