Rootop 服务器运维与web架构

juniper重启web管理界面服务

juniper web配置界面,点开菜单后,右侧的配置信息不显示,要么显示不完整,要么修改内容无法保存。
但是通过命令行是能看到配置信息,所以问题出在web服务上。

固件版本是 20.4R2.7

通过浏览器F12调试模式,看到是往下面地址发起请求

https://10.1.2.1:60000/cache.php

响应内容

{
    "status": true,
    "jweb-config-cache": "\/jail\/var\/cache\/.91714653_root_cfg.json",
    "jweb-last-cache-update-time": "1709866189"
}

推测 /jail/var/cache/ 这个路径下是临时缓存文件,进到此目录,删掉文件。

root@juniper1% cd /jail/var/cache/
root@juniper1% ls -l
total 372
-rw-r--r--  1 root  wheel  77776 Mar  7 21:50 .2119246741_root_cfg.json
-rw-r--r--  1 root  wheel  34373 Mar  7 21:47 .91311285_super_lpad.json
-rw-r--r--  1 root  wheel  77776 Mar  7 21:50 .91714653_root_cfg.json

root@juniper1% rm -f .xxxxx # 删除了 以点开头的文件 .xxxxx

# 重启web界面服务
root@juniper1> restart web-management 

配置界面功能恢复。

web界面配置还是相对不如命令行稳定。

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/5412.html

作者:Venus

服务器运维与性能优化

评论已关闭。