搭建LNMP环境1

本文详细介绍了如何在服务器上快速搭建LNMP环境,包括选择不启用iptables,安装nginx、mysql-5.7、PHP7.0,以及安装phpMyAdmin、redis-server,而不安装Apache、tomcat、memcached-server等步骤。
摘要由CSDN通过智能技术生成

搭建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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值