2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
When I try to close the Java application on the Linux server, the following error occurs:
- [root@VM-32-25-centos ~]# service eposGatewayService stop
- Application is running as root (UID 0). This is considered insecure.
- Unable to kill process 7080
If you don't want to restart the host, you can try the following methods to solve this problem:
1. Check the process status 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. Manually handle the process 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]
From the above running results, it is already possible