tomcat與oracle xdb 的http服務都是使用8080端口,這個我們這些web開發人員帶來了不少麻煩。
解決xdb和tomcat的8080端口沖突問題
1.改變xdb的http和ftp服務端口
使用sys登錄sqlplus
sqlplus sys/syspassword as sysdba
然后執行如下的腳本
------------------------------
-- Change the HTTP/WEBDAV port from 8080 to 8081
call dbms_xdb.cfg_update(updateXML(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'
, 8081))
/
-- Change the FTP port from 2100 to 2111
call dbms_xdb.cfg_update(updateXML(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()'
, 2111))
/
COMMIT;
EXEC dbms_xdb.cfg_refresh;
2.當然是改變tomvat的端口啦~
打開tomcat安裝目錄 /conf/server.xml 文件 將其中的所有服務端口都改了就ok了~~