1. nginx 配置
daemon on|off; 是否以守护进程方式运行
worker_rlimit_core 10000m;coredump大小限制
working_directory /tmp; //coredump 目录、
worker_processes 1; //工作线程数量
master_process off;是否以master-work方式运行
2.nginx命令行
- nginx启动:nginx -c /usr/local/nginx/conf/nginx.conf
- 版本查看: ./sbin/nginx -v
nginx version: openresty/1.13.6.1
nginx: the configuration file /usr/local/openresty/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test is successful