【TongWeb7】M11开启远程访问控制台
📅 2026/7/18 4:19:25
👁️ 阅读次数
📝 编程学习
背景:TongWeb7.0.4.9_M11增加出厂默认访问安全策略。
默认仅本机可访问TongWeb控制台。只有修改控制台所有用户默认密码后,才可开启远程访问。
启动服务后访问控制台会提示
通过命令行对开启控制台远程访问进行设置
启动TW服务,命令行需要访问9060端口进行操作
首次使用“cli”用户时,需要使用“change-admin-password”修改密码。
默认密码:cli123.com
[root@localhost bin]# pwd /opt/TongWeb7.0.4.9_M11_Enterprise_Linux/bin [root@localhost bin]# [root@localhost bin]# ./commandstool.sh change-admin-password Please enter the admin user name>cli Please enter the old admin password>cli123.com Please enter the new admin password>Zxc124.com Please enter the new admin password again>Zxc124.com Command change-admin-password executed successfully. [root@localhost bin]#- 开启console远程访问
注:第一次必须修改四个用户的默认密码!才能开启成功
四个用户分别为系统管理员(thanos)、安全保密管理员(security)、安全审计员(auditor)、监视管理员(monitor)
[root@localhost bin]# ./commandstool.sh update-console-remote-access --thanosPassword=Zxc124.com --securityPassword=Zxc124.com --auditorPassword=Zxc124.com --monitorPassword=Zxc124.com remotePlease enter the admin user name>cli Please enter the admin password>Zxc124.com ************************ Console accesstypeissetto: remote Password update summary - updated users:[thanos, security, auditor, monitor], ignoredusers(already changed before):[none]. ************************ Command update-console-remote-access executed successfully.[root@localhost bin]#- 关闭console远程访问
[root@localhost bin]# ./commandstool.sh update-console-remote-access localPlease enter the admin user name>cli Please enter the admin password>Zxc124.com ************************ Console accesstypeissetto:local************************ Command update-console-remote-access executed successfully.[root@localhost bin]#- 开启heimdall远程访问
注:第一次必须修改四个用户的默认密码!才能开启成功
四个用户分别为系统管理员(rig)、安全保密管理员(secadm)、安全审计员(audit)、监视管理员(monitor)
[root@localhost bin]# ./commandstool.sh update-heimdall-remote-access --rigPassword=Zxc124.com --secadmPassword=Zxc124.com --auditPassword=Zxc124.com --monitorPassword=Zxc124.com remotePlease enter the admin user name>cli Please enter the admin password>Zxc124.com ************************ heimdall accesstypeissetto: remote Password update summary - updated users:[rig, secadm, audit, monitor], ignoredusers(already changed before):[none]. ************************ Command update-heimdall-remote-access executed successfully.[root@localhost bin]#- 关闭heimdall远程访问
[root@localhost bin]# ./commandstool.sh update-heimdall-remote-access localPlease enter the admin user name>cli Please enter the admin password>Zxc124.com ************************ heimdall accesstypeissetto:local************************ Command update-heimdall-remote-access executed successfully.[root@localhost bin]#- cli用户的远程访问
[root@localhost bin]# ./commandstool.sh update-cli-remote-access remotePlease enter the admin user name>cli Please enter the admin password>Zxc124.com ************************ Cli accesstypeissetto:remote ************************ Command update-cli-remote-access executed successfully.[root@localhost bin]# ./commandstool.sh update-cli-remote-access localPlease enter the admin user name>cli Please enter the admin password>Zxc124.com ************************ Cli accesstypeissetto:local************************ Command update-cli-remote-access executed successfully.[root@localhost bin]#- 修改后刷新页面注意地址是
/console,不应该是/console/localerror.jsp
,7. 生成的相关配置在conf/security/remote-access.properties 下,动态密钥加密,不可拷贝使用。 - 如果忘记控制台密码,通过删除twusers.properties.bak、heimdall-users.properties.bak文件,,并覆盖conf/security/下的twusers.properties、heimdall-users.properties 文件来恢复默认密码,
只要remote-access.properties文件保留,重启后可以直接远程访问控制台。
编程学习
技术分享
实战经验