修改连接数 vim /etc/security/limits.conf
添加一行 root soft nofile 102400
或者直接运行:echo "root soft nofile 102400" >>/etc/security/limits.conf
查看连接数:ulimit -n
reboot
apt install nginx-full -y
修改文件
/etc/nginx/nginx.conf
worker_connections 10240;
systemctl restart nginx # 重启nginx
systemctl status nginx # 查看运行情况
netstat -antpl | grep nginx # 看端口对不对
ufw disable # 关闭防火墙 后台