ip 和子网掩码 执行这个命令:ifconfig eth0 192.168.1.123 netmask 255.255.255.0
网关的设定执行这个命令: route add default gw 192.168.1.3
把这两个命令写到/etc/rc.local 或者/etc/rc.d/rc.local 里面都可以的,这样就可以永久保存
重启网卡 ifconfig eth0 down ifconfig eth0 up
将tomcat中的work文件夹清空。
ip 和子网掩码 执行这个命令:ifconfig eth0 192.168.1.123 netmask 255.255.255.0
网关的设定执行这个命令: route add default gw 192.168.1.3
把这两个命令写到/etc/rc.local 或者/etc/rc.d/rc.local 里面都可以的,这样就可以永久保存
重启网卡 ifconfig eth0 down ifconfig eth0 up
将tomcat中的work文件夹清空。