Linux CentOS:如何从CentOS 6.4版卸载gerrit服务器

Linux CentOS:如何从CentOS 6.4版卸载gerrit服务器,linux,centos6,gerrit,Linux,Centos6,Gerrit,我在CentOS 6.4上安装了Gerrit服务器,该服务器运行良好 我使用以下命令安装了它: wget https://gerrit.googlecode.com/files/gerrit-2.7-rc1.war java -jar gerrit-2.7-rc1.war init -d [directory where I installed it] gerrit.sh start Starting Gerrit Code Review:OK 现在我想从CentOS机器上安全地卸载或删除它。

我在CentOS 6.4上安装了Gerrit服务器,该服务器运行良好

我使用以下命令安装了它:

wget https://gerrit.googlecode.com/files/gerrit-2.7-rc1.war
java -jar gerrit-2.7-rc1.war init -d [directory where I installed it]
gerrit.sh start
Starting Gerrit Code Review:OK
现在我想从CentOS机器上安全地卸载或删除它。我在网上搜索了很多,但没有找到任何适合的命令

经过大量搜索后,我尝试使用
rm
rmdir
命令删除安装目录,但gerrit目录中的一些目录再次自动命名为:

1) 缓存


2) db

进程似乎仍在运行。你可以事先阻止它:

gerrit.sh stop
现在您已经删除了它的目录(因此这个脚本),您应该自己终止这个进程。例如

ps -ef | grep gerrit
kill -9 <gerrit_pid>
ps-ef | grep gerrit
杀死-9