今天在Java里配置Tomcat服務器,啟動時出現如下圖報錯信息
The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.
無法啟動服務器,因為一個或多個端口無效。打開服務器編輯器並更正無效端口。
很明顯是配置的端口是無效端口,改下端口配置就行了,步驟如下:
1.打開server窗口
2.雙擊服務器,打開配置界面,服務器端口號設置如下:
再運行,就能正常啟動了。