迁移卷组后记
作者:互联网
昨天由于失误导致服务器启动不了了,已经将卷组挂载上去,挂载到原来的目录/home下
应用服务器上主要是weblogic,主要把weblogic启动就好
step1:创建weblogic的启动用户wls.
problem1:在本地cmd的时候ping不通服务器地址,但是在其它服务器上可以通过ssh来连接,说明路由配置有问题。
我本地网段为172.20.61.网段,服务器是172.20.63. 网段。
重新配置路由表。修改/etc/sysconfig/static-routes
添加以下路由:
any net 172.20.11.0/24 gw 172.20.63.254
any net 172.20.29.0/24 gw 172.20.63.254
any net 172.20.50.0/24 gw 172.20.63.254
any net 172.20.51.0/24 gw 172.20.63.254
any net 172.20.60.0/24 gw 172.20.63.254
any net 172.20.61.0/24 gw 172.20.63.254
any net 180.166.105.84 netmask 255.255.255.255 gw 172.20.63.254
problem2:启动weblogic的时候海报了一个错误:
<Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:40)
at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:35)
at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:105)
at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60)
at weblogic.server.channels.ChannelService.start(ChannelService.java:197)
Truncated. see log file for complete stacktrace
java.net.UnknownHostException: bogon: bogon
at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
解决办法是修改/etc/hosts文件
配置主机名
127.0.0.1 app1
problem3:当把服务启动好之后,端口也启动好了,但是发现无法访问,后经排查是防火墙的问题:
关闭防火墙:
service iptables stop
至此,服务器恢复正常。
标签:gw,卷组,java,63.254,weblogic,后记,迁移,172.20,net 来源: https://blog.csdn.net/weixin_39945369/article/details/88947370