- NginxWebUI下载
http://file.nginxwebui.cn/nginxWebUI-3.6.5.jar
- Nginx下载
http://nginx.org/en/download.html
- 启动服务,参考文档
https://www.nginxwebui.cn/product.html
- 启动命令(前提:本地要有Java环境)
java -jar -Dfile.encoding=UTF-8 D:/Develop/Nginx/nginxWebUI/nginxWebUI-3.6.5.jar --server.port=18080 --project.home=D:/Develop/Nginx/nginxWebUI/ --spring.database.type=mysql --spring.datasource.url=jdbc:mysql://127.0.0.1:3306/nginxwebui --spring.datasource.username=root --spring.datasource.password=root
参数说明
Linux: nohup java -jar -Dfile.encoding=UTF-8 /home/nginxWebUI/nginxWebUI.jar --server.port=8080 --project.home=/home/nginxWebUI/ > /dev/null & Windows: java -jar -Dfile.encoding=UTF-8 D:/home/nginxWebUI/nginxWebUI.jar --server.port=8080 --project.home=D:/home/nginxWebUI/ 参数说明(都是非必填) --server.port 占用端口, 默认以8080端口启动 --project.home 项目配置文件目录,存放数据库文件,证书文件,日志等, 默认为/home/nginxWebUI/ --spring.database.type=mysql 使用其他数据库,不填为使用本地h2,可选mysql --spring.datasource.url=jdbc:mysql://ip:port/nginxwebui 数据库url --spring.datasource.username=root 数据库用户 --spring.datasource.password=pass 数据库密码 注意Linux命令最后加一个&号, 表示项目后台运行
- 成功示例
- 访问服务,并添加账号
- 登录系统,即可进行nginx可视化配置
- 参考
https://www.nginxwebui.cn/news.html
- 具体配置,可查询nginx配置资料
http://localhost:18080/doc/api.html
Nginx 可视化
于 2023-07-07 11:21:13 首次发布