1、安装: apt install nginx
若要使用社区源: apt-add-repository ppa:nginx/stable
2、配置: 隐藏版本号: 在sendfile on;后添加一行命令: server_tokens off;