root@HL7NEW:/opt/enlilHL7/bin# netstat -anp|grep LISTEN ... tcp6 0 0 :::10750 :::* LISTEN 22936/java ...
You can see that java process listens port on IPv6 stack. To change this to Ipv4 you can use two methods:
- First method is to use JVM parameters for specific java application start.
-Djava.net.preferIPv4Addresses=true
- You can add parameters to sysctl.conf so that operating system disables ipv6 stack
sudo vi /etc/sysctl.conf # add to last line net.ipv6.conf.all.disable_ipv6 = 1 sudo sysctl -p
After restarting process you will see that:
root@HL7NEW:/opt/enlilHL7/bin# netstat -anp|grep LISTEN ... tcp 0 0 0.0.0.0:10750 0.0.0.0:* LISTEN 22936/java ...
Hiç yorum yok:
Yorum Gönder