|
重新启动某个进程
有时候修改了配置,或者重新deploy了程序,需要restart oc4j活着ohs,restart方式如下
1.组件的方式restart
opmnctl restartproc ias-component=?
如
opmnctl status
Processes in Instance: iastest.finproduction.tplife.com
-------------------+--------------------+-------+---------
ias-component | process-type | pid | status
-------------------+--------------------+-------+---------
OC4J | home | 10493 | Alive
WebCache | WebCacheAdmin | 9307 | Alive
WebCache | WebCache | N/A | Down
HTTP_Server | HTTP_Server | 9305 | Alive
dcm-daemon | dcm-daemon | N/A | Down
LogLoader | logloaderd | 10242 | Alive
[ias10g@finproduction home]$ opmnctl restartproc ias-component=OC4J
opmnctl: restarting opmn managed processes...
[ias10g@finproduction home]$ opmnctl status
Processes in Instance: iastest.finproduction.tplife.com
-------------------+--------------------+-------+---------
ias-component | process-type | pid | status
-------------------+--------------------+-------+---------
OC4J | home | 10671 | Alive
WebCache | WebCacheAdmin | 9307 | Alive
WebCache | WebCache | N/A | Down
HTTP_Server | HTTP_Server | 9305 | Alive
dcm-daemon | dcm-daemon | N/A | Down
LogLoader | logloaderd | 10242 | Alive
可以看到
home 的进程号已经改变。 |
|