问一下,云锁安装后还可以修改端口吗?

Author: fklangwang - Posted:5年前 - View:2666

当初安装云锁的时候,没有考虑太多,直接使用默认端口5555安装了,由于每个人都知道云锁的默认端口,所以每天都有许多的IP不断的扫描和攻击这个端口,真是烦死了!!!

云锁已经安装了,我真的特别不想卸载再安装,毕竟我设置了那么多的规则,如果重新安装的话,所有的规则又要重新输入(之前有备份旧规则,安装后再导入发现很多规则都导入不进去)。

我想请问一下,如果我不重新安装云锁又想修改端口,有没有什么工具可以帮我实现呢?

0 人点赞  ∙  0 人收藏  
加入收藏 点赞 我要评论

目前共有 2 条回复

kola
- kola - 5年前

完全可以修改的,这点云锁团队早就想到了,不管是在Linux系统还是win系统下,都可以通过云锁自带的工具去修改端口,甚至你安装后没有绑定云中心帐号的话,还可以再次绑定!

在Win系统上,打开云锁的安装目录,找到YSTools.exe,双击打开即可修改成你想修改的端口号;如果你没有绑定云中心帐户的,你可以找到bind_server.exe,双击打开按要求输入你的帐户密码即可绑定。

在Linux系统上,找到云锁安装目录,找到agent_smart_tool.sh,不知道怎么操作,就通过./agent_smart_tool.sh -h列出帮助文档:

Usage: 
  ./agent_smart_tool.sh -u cloud_name -p cloud_passwd
  ./agent_smart_tool.sh -l port
  ./agent_smart_tool.sh -i port
  ./agent_smart_tool.sh -d
  ./agent_smart_tool.sh -P proxy_server_ip
  ./agent_smart_tool.sh -A old:new
  ./agent_smart_tool.sh -M
Options:
  -u: Cloud center user name
  -p: Cloud center password
  -l: Update the listening port of the agent process
  -i: Insert the listening port of the agent process
  -d: Delete the listening port of the agent process
  -P: update proxy server ip
  -A: create a special apache's plug-in module
  -M: create a new machine id
  -h: helper for agent_smart_tool

这样你就知道如何修改端口和绑定云中心帐户了!

rainam
- rainam - 5年前

shit,原来可以这样修改,我以前每次都是卸载重新安装,想想我以前不知道走了多少弯路!!5.gif