遷移卷組後記

昨天由於失誤導致服務器啓動不了了,已經將卷組掛載上去,掛載到原來的目錄/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

至此,服務器恢復正常。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章