MENU

lnmp环境说明

October 9, 2018 • Read: 3276 • 环境配置

一键挂载硬盘

yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

修改root为任意地址可连接

CREATE USER 'root'@'%' IDENTIFIED WITH mysql_native_password AS '***'; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;

站点基本配置

站点默认目录

/www/wwwroot
    
站点配置文件位置

/www/server/panel/vhost/nginx

Nginx 服务管理 nginx 安装目录

/www/server/nginx
启动

service nginx start

停止

service nginx stop

重启

service nginx restart

启载

service nginx reload

mysql 服务管理 mysql安装目录

启动

service mysqld start

停止

service mysqld stop

重启

service mysqld restart

启载

service mysqld reload

mysql 配置文件

/etc/my.cnf

php 服务管理 php安装目录

/www/server/php

启动

service php-fpm-56 start

停止

service php-fpm-56  stop

重启

service php-fpm-56  restart

启载

service php-fpm-56  reload

配置文件

/www/server/php/56/etc/php.ini

Redis 服务管理 Redis安装目录

/www/server/redis

启动

service redis start

停止

service redis stop

redis 配置文件

/www/server/redis/redis.conf

centos7自带防火墙,点击参考===firewalld

nginx配置文件,点击参考nginx.conf

兼总条贯 知至知终

最后编辑于: January 23, 2019