nginx 常用命令

栏目: 服务器 · Nginx · 发布时间: 6年前

内容简介:sudo nginx #打开 nginxnginx -s reload|reopen|stop|quit #重新加载配置|重启|停止|退出 nginxnginx -t #测试配置是否有语法错误

nginx 常用命令

sudo nginx #打开 nginx

nginx -s reload|reopen|stop|quit #重新加载配置|重启|停止|退出 nginx

nginx -t #测试配置是否有语法错误

nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]

-?,-h : 打开帮助信息

-v : 显示版本信息并退出

-V : 显示版本和配置选项信息,然后退出

-t : 检测配置文件是否有语法错误,然后退出

-q : 在检测配置文件期间屏蔽非错误信息

-s signal : 给一个 nginx 主进程发送信号:stop(停止), quit(退出), reopen(重启), reload(重新加载配置文件)

-p prefix : 设置前缀路径(默认是:/usr/local/Cellar/nginx/1.2.6/)

-c filename : 设置配置文件(默认是:/usr/local/etc/nginx/nginx.conf)

-g directives : 设置配置文件外的全局指令


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Web Design in a Nutshell

Web Design in a Nutshell

Jennifer Niederst / O'Reilly Media, Inc. / 2006-02-21 / USD 34.99

Are you still designing web sites like it's 1999? If so, you're in for a surprise. Since the last edition of this book appeared five years ago, there has been a major climate change with regard to web......一起来看看 《Web Design in a Nutshell》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具