nps/docs/nps_use.md

973 B
Raw Blame History

使用

提示使用web模式时服务端执行文件必须在项目根目录否则无法正确加载配置文件

web管理

进入web界面公网ip:web界面端口默认8080密码默认为123

进入web管理界面有详细的说明

服务端配置文件重载

对于linux、darwin

 sudo nps reload

对于windows

 nps.exe reload

说明: 仅支持部分配置重载,例如allow_user_login auth_crypt_key auth_key web_username web_password 等,未来将支持更多

服务端停止或重启

对于linux、darwin

 sudo nps stop|restart

对于windows

 nps.exe stop|restart

服务端更新

请首先执行sudo nps stop或者nps.exe stop停止运行,然后

对于linux

 sudo nps-update update

对于windows

 nps-update.exe update

更新完成后,执行执行sudo nps start或者nps.exe start重新运行即可完成升级