当前位置:Gxlcms > 数据库问题 > Centos7.0以上安装nginx+php7.0+mysql5.7+redis3作为开发php环境

Centos7.0以上安装nginx+php7.0+mysql5.7+redis3作为开发php环境

时间:2021-07-01 10:21:17 帮助过:16人阅读

systemctl restart php-fpm   #启动php

systemctl restart nginx #启动nginx

systemctl restart  mysqld #启动mysql


nginx常见问题:使用nginx -s reload时

nginx报错 [error] open() “/usr/local/var/run/openresty.pid” failed (2: No such file or directory)


    解决: 服务没有启动 使用start启动服务,因为没有start而直接使用stop或者reload报错这个问题;

    如果方法一没有解决,使用方法二:-C 指定配置文件nginx.conf或者weblua.conf




本文出自 “11822904” 博客,请务必保留此出处http://11832904.blog.51cto.com/11822904/1947557

Centos7.0以上安装nginx+php7.0+mysql5.7+redis3作为开发php环境

标签:centos7安装lnmp

人气教程排行