欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > centos >内容正文

centos

Centos7 安装lnmp

发布时间:2025/4/16 centos 23 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。