Several connectors are configured, and each connector has an optional "address" attribute where you can set the IP address.
- Edit
tomcat/conf/server.xml
.
- Specify a bind address for that connector:
<Connector
port="8080"
protocol="HTTP/1.1"
address="127.0.0.1"
connectionTimeout="20000"
redirectPort="8443"
/>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…