Nginx学习

1、安装:
apt install nginx

若要使用社区源:
apt-add-repository ppa:nginx/stable

2、配置:
隐藏版本号:
在sendfile on;后添加一行命令:
server_tokens off;

posted @ 2022-11-09 09:06  Diaoz  阅读(28)  评论(0)    收藏  举报