前言
菜鸟的自我学习笔记
1 最基本功能需要
yum -y install pcre pcre-devel zlib zlib-devel openssl openssl-devel#这是完成web服务器最基本功能需要的
2 GCC编译器以及相关工具
yum -y install gcc gc-c++ autoconf automake
3 安装
默认安装到 /usr/local/nginx目录下面 可以通过./configure –help 查看编译参数
[root@centos64 nginx-1.14.0]# ./configure –help
–prefix=PATH set installation prefix
————————
nginx 启动命令的查看
[root@centos64 nginx]# ./sbin/nginx -h
nginx version: nginx/1.14.0
Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]
Options:
-?,-h : this help
-v : show version and exit
-V : show version and configure options then exit
-t : test configuration and exit
-T : test configuration, dump it and exit
-q : suppress non-error messages during configuration testing
-s signal : send signal to a master process: stop, quit, reopen, reload
-p prefix : set prefix path (default: /usr/local/nginx/)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file
其他资料
可以参考 链接:https://pan.baidu.com/s/1NaSXxgRM-HuPjeelCnlIiA 密码:dapt 。