Centos7 安装lnmp

Posted jiqing9006

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos7 安装lnmp相关的知识,希望对你有一定的参考价值。

Centos7 安装lnmp

1.下载

wget http://soft.vpser.net/lnmp/lnmp1.5-full.tar.gz

2.解压

tar -zvxf lnmp1.5-full.tar.gz 
mv lnmp1.5-full /usr/local/
cd /usr/local/lnmp1.5-full

3.安装

./install.sh lnmp

4.添加redis

./addons.sh install redis 
# php -m|grep redis
redis

查看服务开启状况

# ps -ef |grep mysql
root      2275     1  0 18:31 pts/0    00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/var --pid-file=/usr/local/mysql/var/izwz9bw2bq5dzndcry5vubz.pid
mysql     2792  2275  0 18:31 pts/0    00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=izwz9bw2bq5dzndcry5vubz.err --open-files-limit=65535 --pid-file=/usr/local/mysql/var/izwz9bw2bq5dzndcry5vubz.pid --socket=/tmp/mysql.sock --port=3306
# ps -ef |grep nginx
root      2265     1  0 18:31 ?        00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
www       2268  2265  0 18:31 ?        00:00:00 nginx: worker process

以上是关于Centos7 安装lnmp的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7下安装lnmp一键安装包

怎样在centos上手动安装配置lnmp环境

CentOS7.x-lnmp环境下安装Discuz论坛

centos7之yum安装lnmp

CentOS7.4 源码编译安装LNMP

CentOS7+LNMP 安装Zabbix3.0 安装笔记