nginx服务相关操作
2018-01-29 11:04
225 查看
安装目录
和大多软件一样一般安装在 /usr/local/ 目录下/usr/local/
命令man
Usage: nginx [-?hvVt] [-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 -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
服务开启停止等操作
开启
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
重启
/usr/local/nginx/sbin/nginx -s reload /usr/local/nginx/sbin/nginx -s reatart
关闭
/usr/local/nginx/sbin/nginx -s stop
相关文章推荐
- 【nginx源码学习与运用 二】ngx_bufs_t 与 ngx_chain_t相关操作
- 负载均衡服务的相关命令操作失败------又是磁盘满了惹的祸!
- Apache安装完后加入系统服务的相关操作详解
- Mac 下 nginx 的相关操作
- Nginx在线服务状态下平滑升级或新增模块的详细操作记录
- window下nginx服务操作
- LINUX系统服务相关操作
- 查找nginx安装的路径以及相关安装操作命令
- 记录一次chown误操作导致服务宕机修复过程(linux+nginx+php+mysql)
- 【Nginx】Nginx启停相关操作-【Linux/windows】
- 揭开nginx神秘面纱[一.nginx的安装和服务的操作]
- JAVA远程控制Linux服务器相关服务开关等操作
- 一些操作sql server相关服务的命令行
- 一些操作sql server相关服务的命令行
- nginx相关操作
- [shell]CentOS 5.6安装web服务及相关软件(php 5.3, MySQL Server, memcache, spawn-fcgi, nginx, coreseek)
- ubuntu下ssh服务相关操作
- windows服务监控和操作相关
- 一些操作sql server相关服务的命令行
- Nginx作为WEB服务相关配置(性能优化,网络连接,访问控制,虚拟主机,https等等)