[TOC]

nginx

命令 说明
nginx -t 检查配置文件
nginx 启动 nginx
nginx -s reload 重新加载配置文件
nginx -s stop 停止 nginx
vi /usr/local/nginx/conf/nginx.conf  # 修改配置文件

haproxy

命令 说明
service haproxy start 启动
service haproxy stop 停止
service haproxy restart 重启
chkconfig haproxy on 添加自启动
chkconfig haproxy off 关闭自启动
vi /etc/haproxy/haproxy.cfg  # 修改配置文件

results matching ""

    No results matching ""