自学内容网 自学内容网

Linux 关闭某个服务失败处理方法

在linux服务器上当我准备关闭Java应用程序时,出现下列错误:

[root@VM-32-25-centos ~]# service eposGatewayService stop
Application is running as root (UID 0). This is considered insecure.
Unable to kill process 7080

如果不想重启主机,你可以尝试下面方式来解决这个问题:

1、检查进程状态    ps aux | grep eposGatewayService

[root@VM-32-25-centos ~]# ps aux | grep eposGatewayService
root     28217  0.0  0.0 112812   964 pts/0    S+   15:09   0:00 grep --color=auto eposGatewayService

2、手动处理进程   sudo kill -9 7080

[root@VM-32-25-centos ~]# sudo kill -9 7080
[root@VM-32-25-centos ~]# service eposGatewayService stop
Application is running as root (UID 0). This is considered insecure.
Not running (process 7080). Removing stale pid file.
[root@VM-32-25-centos ~]# service eposGatewayService start
Application is running as root (UID 0). This is considered insecure.
Started [28643]

从上面运行结果来看已经可以了


原文地址:https://blog.csdn.net/chengmin123456789/article/details/140352848

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!