nginx服务器部署
开发板发送启动nginx的命令
mkdir -p /var/log/nginx /var/tmp/nginx
nginx -c /etc/nginx/nginx.conf
nginx命令行命令
Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]
Options:
-?,-h : this help #查询Nginx命令行命令
-v : show version and exit #打印Nginx版本
-V : show version and configure options then exit #打印Nginx版本并且打印Nginx初始安装时的配置参数
-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: /etc/nginx/) #用于Nginx安装时初始化安装路径的前缀
-c filename