迁移卷组后记

昨天由于失误导致服务器启动不了了,已经将卷组挂载上去,挂载到原来的目录/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

至此,服务器恢复正常。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值