摘要: 在此记录下Nginx服务器常用命令(CentOS7.2、Nginx1.14.2环境) 启动Nginx:./usr/sbin/nginx Nginx检查语法:nginx -tc /etc/nginx/nginx.conf 重启Nginx:nginx -s reload -c /etc/nginx/ng 阅读全文
posted @ 2019-04-15 16:42 a3309548 阅读(151) 评论(0) 推荐(0) 编辑
摘要: --with-http_stub_status_module模块:Nginx的客户端状态 Syntax:stub_status Default:-- Content:server,location location /mystatus{ stub_status; } >>效果图 --with-htt 阅读全文
posted @ 2019-04-15 16:41 a3309548 阅读(145) 评论(0) 推荐(0) 编辑
摘要: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 阅读全文
posted @ 2019-04-15 15:01 a3309548 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 命令 简单说明 i 进入编辑模式,光标在原位置 I 进入编辑模式,光标在行首位置 o 从光标所在行,下面一行开始编辑 O 从光标所在行,上面一行开始编辑 a 从光标当前字符后编辑 A 从光标所在行的行尾编辑 :w 保存编辑后的文件内容,但不退出vim编辑器。这个命令的作用是把内存缓冲区中的数据写到启 阅读全文
posted @ 2019-04-15 11:05 a3309548 阅读(329) 评论(0) 推荐(0) 编辑
摘要: yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake yum -y install wget httpd-tools vim yum install zlib zlib-devel yum install openssl 阅读全文
posted @ 2019-04-14 22:28 a3309548 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 第一个里程碑 --在启动GRUB菜单中选择编辑选项,按键 "e" 进入编辑; 第二个里程碑 -- 大约在第16行找到 "ro" 将 "ro" 修改为 " rw init=/sysroot/bin/bash "; 第三个里程碑 -- 同时按下 " ctrl + x ",进入单用户模式; 第四个里程碑 阅读全文
posted @ 2019-04-14 22:03 a3309548 阅读(3188) 评论(0) 推荐(0) 编辑
摘要: 在此记录下Nginx服务器nginx.conf的配置文件说明, 部分注释收集与网络. #运行用户user nobody; #启动进程,通常设置成和cpu的数量相等worker_processes 1; #全局错误日志及PID文件error_log /var/log/nginx/error.log;p 阅读全文
posted @ 2019-04-13 22:07 a3309548 阅读(692) 评论(0) 推荐(0) 编辑