高性能的反向代理服务器:Nginx基本使用

2023-11-22 0 233

Nginx——Ngine X,是一款高性能的反向代理服务器;也是一个IMAP、POP3、SMTP代理服务器;也是一个Http服务器。也就是说Nginx本身就可以托管网站,进行Http服务处理,也可以作为反向代理服务器使用。

关闭

service nginx stop
systemctl stop nginx

启动

service nginx start
systemctl start nginx

重启

service nginx reload
systemctl restart nginx

随系统启动自动运行

systemctl enable nginx

禁止随系统启动自动运行

systemctl disable nginx

知识点扩展:

首先利用配置文件启动nginx

命令: nginx -c /usr/local/nginx/conf/nginx.conf

重启服务: service nginx restart

快速停止或关闭Nginx:nginx -s stop

正常停止或关闭Nginx:nginx -s quit

配置文件修改重装载命令:nginx -s reload

本文来源:www.lxlinux.net/8291.html,若引用不当,请联系修改。

相关文章

猜你喜欢
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

  • 0 +

    访问总数

  • 0 +

    会员总数

  • 0 +

    文章总数

  • 0 +

    今日发布

  • 0 +

    本周发布

  • 4975 +

    运行天数

你的前景,远超我们想象