将/www/server/panel/vhost/nginx/
目录里的conf文件中listen 80
修改为其他端口,例如listen 88
涉及到的文件
/www/server/panel/vhost/nginx/0.default.conf /www/server/panel/vhost/nginx/phpfpm_status.conf
重启nginx即可
以portainer为例
Runtime & Resources
下开启Privileged mode
、Init
Capabilities
下开启SYS_ADMIN
、SYS_BOOT
重启可用reboot -f
[scode type="share"]服务器购买地址(G口带宽、低价稳定不丢包)[/scode]
# 下载nps服务端 wget https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_server.tar.gz
# 解压并安装 tar -zxvf linux_amd64_server.tar.gz sudo ./nps install sudo nps start
访问ip:8080
进入网页面板,账号/密码默认admin/123
配置文件/etc/nps/conf/nps.conf
docker run -d --name npc --net=host ffdfgdfg/npc -server=<ip:port> -vkey=web端设置的验证密钥
# 重启服务端 nps restart # 重载配置(部分修改须重启生效) nps reload # 停止服务端 nps stop
最终设置如图