Weblogic12c console 新建server但无法start server
问题描述:
关键字眼:
The server Server-1 does not have a machine associated with it.
All of the servers selected are currently in a state which is incompatible with this operation or are not associated with a running Node Manager or you are not authorized to perform the action requested. No action will be performed.
或者
For server MCCI_Admin_Server, the Node Manager associated with machine MCCI_Admin_Machine is not reachable.
All of the servers selected are currently in a state which is incompatible with this operation or are not associated with a running Node Manager or you are not authorized to perform the action requested. No action will be performed.
原因是weblogic console 即使配置了 server的信息,也无法直接通过console去start这个server,start server的方式有两个
1.通过运行startManagedWeblogic.sh去启动server
这个是实在是太麻烦了,每次都得手动输入server name ,weblogic console address ,admin account &password 我们不考虑
参考:windows环境下weblogic10新建Server无法启动_六向箔的博客-CSDN博客
2.通过startNodeManager.sh去运行nodeManager
我们知道nodeManger是主要作用是用来管理server的,虽然weblogic运行起来了,但是不会主动去开启nodeManager服务,这个需要自己去运行
额外要注意的是,通过nodeManager脚本启动server的步骤如下:
1.来到/u01/oracle/weblogic/user_projects/domains/base_domain/bin 路进行
2.执行./startNodeManager.sh
// ps , & 可以使得service以后台的形式运行
/u01/oracle/weblogic/user_projects/domains/base_domain/bin/startNodeManager.sh &
console output infos
NODEMGR_HOME is already set to /u01/oracle/weblogic/user_projects/domains/base_domain/nodemanager
CLASSPATH=/usr/java/jdk1.8.0_25/lib/tools.jar:/u01/oracle/weblogic/wlserver/server/lib/weblogic_sp.jar:/u01/oracle/weblogic/wlserver/server/lib/weblogic.jar:/u01/oracle/weblogic/wlserver/../oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b3/lib/ant-contrib.jar:/u01/oracle/weblogic/wlserver/modules/features/oracle.wls.common.nodemanager_2.0.0.0.jar:/u01/oracle/weblogic/wlserver/../oracle_common/modules/javax.persistence_2.1.jar:/u01/oracle/weblogic/wlserver/../wlserver/modules/com.oracle.weblogic.jpa21support_1.0.0.0_2-1.jar:/usr/java/jdk1.8.0_25/lib/tools.jar:/u01/oracle/weblogic/wlserver/server/lib/weblogic_sp.jar:/u01/oracle/weblogic/wlserver/server/lib/weblogic.jar:/u01/oracle/weblogic/wlserver/../oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b3/lib/ant-contrib.jar:/u01/oracle/weblogic/wlserver/modules/features/oracle.wls.common.nodemanager_2.0.0.0.jar:/u01/oracle/weblogic/wlserver/../oracle_common/modules/com.oracle.cie.config-wls-online_8.1.0.0.jar::/u01/oracle/weblogic/wlserver/common/derby/lib/derbynet.jar:/u01/oracle/weblogic/wlserver/common/derby/lib/derbyclient.jar:/u01/oracle/weblogic/wlserver/common/derby/lib/derby.jar:/u01/oracle/weblogic/wlserver/server/lib/xqrl.jar:/u01/oracle/weblogic/wlserver/..
+ /usr/java/jdk1.8.0_25/bin/java -Dwls.home=/u01/oracle/weblogic/wlserver/server -Dweblogic.home=/u01/oracle/weblogic/wlserver/server -server -Xms32m -Xmx200m -XX:MaxPermSize=128m -Dcoherence.home=/u01/oracle/weblogic/wlserver/../coherence -Dbea.home=/u01/oracle/weblogic/wlserver/.. -Dweblogic.ProductionModeEnabled=true -Djava.endorsed.dirs=/usr/java/jdk1.8.0_25/jre/lib/endorsed:/u01/oracle/weblogic/wlserver/../oracle_common/modules/endorsed -da -Dwls.home=/u01/oracle/weblogic/wlserver/server -Dweblogic.home=/u01/oracle/weblogic/wlserver/server -Dweblogic.RootDirectory=/u01/oracle/weblogic/user_projects/domains/base_domain -Djava.endorsed.dirs=/usr/java/jdk1.8.0_25/jre/lib/endorsed:/u01/oracle/weblogic/wlserver/../oracle_common/modules/endorsed -Djava.security.policy=/u01/oracle/weblogic/wlserver/server/lib/weblogic.policy -Dweblogic.nodemanager.JavaHome=/usr/java/jdk1.8.0_25 weblogic.NodeManager -v
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
<Feb 6, 2023 8:14:01 AM GMT> <INFO> <Loading domains file: /u01/oracle/weblogic/user_projects/domains/base_domain/nodemanager/nodemanager.domains>
<Feb 6, 2023 8:14:01 AM GMT> <INFO> <Loading identity key store: FileName=/u01/oracle/weblogic/user_projects/domains/base_domain/security/DemoIdentity.jks, Type=jks, PassPhraseUsed=true>
<Feb 6, 2023 8:14:01 AM GMT> <INFO> <Loaded NodeManager configuration properties from '/u01/oracle/weblogic/user_projects/domains/base_domain/nodemanager/nodemanager.properties'>
Node manager v12.1.3
Configuration settings:
DomainsFile=/u01/oracle/weblogic/user_projects/domains/base_domain/nodemanager/nodemanager.domains
LogLimit=0
DomainsDirRemoteSharingEnabled=false
AuthenticationEnabled=true
LogLevel=INFO
DomainsFileEnabled=true
ListenAddress=
NativeVersionEnabled=false
ProcessDestroyTimeout=20000
ListenPort=5556
LogToStderr=true
weblogic.StartScriptName=startWebLogic.sh
SecureListener=true
LogCount=1
LogAppend=true
weblogic.StopScriptEnabled=false
StateCheckInterval=500
CrashRecoveryEnabled=false
weblogic.StartScriptEnabled=true
LogFile=/u01/oracle/weblogic/user_projects/domains/base_domain/nodemanager/nodemanager.log
LogFormatter=weblogic.nodemanager.server.LogFormatter
coherence.StartScriptEnabled=false
ListenBacklog=50
NodeManagerHome=/u01/oracle/weblogic/user_projects/domains/base_domain/nodemanager
weblogic.startup.JavaHome=/usr/java/jdk1.8.0_25
weblogic.startup.MW_Home=
coherence.startup.JavaHome=/usr/java/jdk1.8.0_25
coherence.startup.MW_Home=
Domain name mappings:
base_domain -> /u01/oracle/weblogic/user_projects/domains/base_domain
<Feb 6, 2023 8:14:01 AM GMT> <INFO> <WebLogic Server 12.1.3.0.0 Wed May 21 18:53:34 PDT 2014 1604337 >
<Feb 6, 2023 8:14:01 AM GMT> <INFO> <base_domain> <MCCI_Admin_Server> <Startup configuration properties loaded from "/u01/oracle/weblogic/user_projects/domains/base_domain/servers/MCCI_Admin_Server/data/nodemanager/startup.properties">
<Feb 6, 2023 8:14:01 AM GMT> <INFO> <base_domain> <MCCI_Admin_Server> <Adjusted state of server 'MCCI_Admin_Server ' from FORCE_SHUTTING_DOWN to SHUTDOWN>
<Feb 6, 2023 8:14:01 AM GMT> <INFO> <Secure socket listener started on port 5556>
从这里可以看出,socket listener port 为5556,这个尤为重要
3.登录http://localhost:7001
新建一个Machine(如果存在你想使用的Machine,可以不用新建)
4.填写nodeManager service 端口
5.如果你存在已经有的machine,可以编辑machine的 config如第四步骤中的内容也即可
6.新建自己的managed server(如果存在已经有的managed server ,也可以不用新建)
7. 然后选择server,binding 自己的machine
8.最后再control 上面 start自己的server即可
最后如果看到status 为running 状态,则表示server成功启动运行
9.另外别忘了每次edit记得要activate changes
3.如何停止nodeManager service?
直接停掉weblogic service是无法停掉nodeManager service的
1.执行stopNodeManager.sh
2.如果是以jobs的形式运行(就是指前面使用 & 运行脚本)
使用命令jobs查看当前job
使用fg [jobs id] 恢复job到当前窗口
使用ctrl+c 停止job
3.使用kill命令杀掉进程即可
4.关机大法