zoukankan      html  css  js  c++  java
  • nginx服务相关操作

    安装目录

    和大多软件一样一般安装在 /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 stop
  • 相关阅读:
    repair table
    利用逻辑备份恢复部分库表
    Web框架理解
    BootStrape基础使用
    jQuery入门
    BOM操作
    DOM操作
    day12 css样式
    JavaScript基础
    day11 前端知识简单总结
  • 原文地址:https://www.cnblogs.com/b3051/p/8376330.html
Copyright © 2011-2022 走看看