Modify the Management port:
Take modifying port 7071 to 8888 as an Example
1.ZmprovCommand ModificationZimbraadminportPort
[Root @ mail ~] $ Su-zimbra
[Zimbra @ mail ~] $ Zmprov MS mail.abs.com zimbraadminport 8888
2.Check whether the port number is successfully modified.
[Zimbra @ mail ~] $ Zmprov GS mail.abs.com | grep zimbraadminport
3. zmlocalconfigCommand to modify the port in the configuration
[Zimbra @ mail ~] $ Zmlocalconfig-e zimbra_admin_service_port =8888
4.Manually modify/Opt/zimbra/jetty/etc/DirectoryJetty. xmlAnd so on.7071Replace all port searches8888
5.Manually modify/Opt/zimbra/jetty/webapps/service/WEB-INF/Web. xml
/Opt/zimbra/jetty/webapps/zimbraadmin/WEB-INF/Web. xml
/Opt/zimbra/jetty/webapps/zimbra/WEB-INF/Web. xml
Of the three files7071Modify the port8888
6. Restart the zimbra service.
Zmcontrol restart
* ***** Note *****
The4You can use the following command to complete the replacement:
[Root @ mail ~] $ CD/opt/zimbra/jetty/etc/
[Root @ MAIL etc] # Find.-Name '*. xml *' | xargs sed-I's/7071/8888/G'
The5You can use the following command to complete the replacement.
[Root @ MAIL etc] # cd/opt/zimbra/jetty/webapps
[Root @ mail webapps] # Find.-Name 'web. xml' | xargs sed-I's/7071/8888/G'