点击上方“IT那活儿”,关注后了解更多内容,不管IT什么活儿,干就完了!!!
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_85629972-a587-11ec-9647-38f9d3cd240d.png)
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_856a5d38-a587-11ec-9647-38f9d3cd240d.png)
sh /bes/BES952/bin/besservers -c=/bes/BES952/conf/server.config -p=/app/besinstances/instance02 -s=create
-c:指定BES中间件配置文件;
-p:指定BES应用系统运行目录,包含应用系统运行所需的相关文件;
-s:指定当前操作类型,create创建实例,stop停止运行实例。
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_85727108-a587-11ec-9647-38f9d3cd240d.png)
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_8585af70-a587-11ec-9647-38f9d3cd240d.png)
./iastool --passport B#2008_2108#es --user=admin --password=B#2008_2108#es --port 1900 update --file-user --realmname admin-realm --userpassword 'Hello!123' --confirmpassword 'Hello!123' admin
使用此工具修改控制台账号密码需要给几个参数,分别为passport密码,用户密码,以及该实例目前的控制台端口,后面几个参数为修改后的密码。
[app@localhost bin]$ ./iastool --passport B#2008_2108#es --user=admin --password=B#2008_2108#es --port 1900 update --file-user --realmname admin-realm --userpassword 'Hello!123' --confirmpassword 'Hello!123' adminLogin information is not saved for host name [localhost] and port [1900]Login information is not saved for host name [localhost] and port [1900]Command update --file-user executed successfully.
这里为修改控制台密码的返回显示结果。
三、生成密码加密文件
在应用账号的bin目录下利用iastool工具:
./iastool create --passport B#2008_2108#es --password-file --adminpassword 'Hello!123' --iastoolpassport B#2008_2108#es ./adminpasswordfile
此处加密密码应和上面修改后的密码一致。
[app@localhost bin]$ ./iastool create --passport B#2008_2108#es --password-file --adminpassword 'Hello!123' --iastoolpassport B#2008_2108#es ./adminpasswordfileCommand create --password-file executed successfully.
这里为生成加密文件的返回显示结果。
四、实例默认端口修改
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_8594ffa2-a587-11ec-9647-38f9d3cd240d.png)
./iastool --user admin --passwordfile adminpasswordfile --port 1900 set server.web-container.http-listener.http-listener-1.port=11001
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_85a693de-a587-11ec-9647-38f9d3cd240d.png)
./iastool --user admin --passwordfile adminpasswordfile --port 1900 set server.jmx-connector.enabled=false
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_85b6a512-a587-11ec-9647-38f9d3cd240d.png)
./iastool --passwordfile adminpasswordfile --user admin --port 1900 set server.web-container.http-listener.admin-listener.port=9999
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_85c4c98a-a587-11ec-9647-38f9d3cd240d.png)
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_85d303ec-a587-11ec-9647-38f9d3cd240d.png)
五、控制台默认地址修改
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_85e7fbb2-a587-11ec-9647-38f9d3cd240d.png)
<session-config><session-timeout>30</session-timeout><cookie-config><path>/besmanager</path></cookie-config></session-config>
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_8601c542-a587-11ec-9647-38f9d3cd240d.png)
<filter><filter-name>CsrfFilter</filter-name><filter-class>com.bes.enterprise.console.core.filters.CsrfPreventionFilter</filter-class><init-param><param-name>entryPoints</param-name><param-value>/besmanager/index.action,/besmanager//index.action,/besmanager/,/besmanager,/besmanager/login.html,/besmanager/doLogin.action,/besmanager/certCode.action</param-value></init-param><init-param><param-name>entryPrefixPoints</param-name><param-value>/besmanager/pages/error,/besmanager/favicon.ico,/besmanager/resources/image,/besmanager/resources/js,/besmanager/resources/style,/besmanager/resources/loading.gif</param-value></init-param></filter>
/app/besinstances/instance01/conf/server.config
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_86147f2a-a587-11ec-9647-38f9d3cd240d.png)
六、修改启停脚本
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_86261c80-a587-11ec-9647-38f9d3cd240d.png)
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_86312404-a587-11ec-9647-38f9d3cd240d.png)
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_863d23d0-a587-11ec-9647-38f9d3cd240d.png)
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_864ab50e-a587-11ec-9647-38f9d3cd240d.png)
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_866219b0-a587-11ec-9647-38f9d3cd240d.png)
![](https://oss-emcsprod-public.modb.pro/wechatSpider/modb_20220317_8671cc02-a587-11ec-9647-38f9d3cd240d.png)
本文作者:孙宇航
本文来源:IT那活儿(上海新炬王翦团队)
文章转载自IT那活儿,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。