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

Min*_*in2 2 linux gerrit centos6

我在运行完美的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
Run Code Online (Sandbox Code Playgroud)

现在我想从我的 CentOS 机器上安全地卸载或删除它。我在互联网上搜索了很多,但没有找到任何合适的命令。

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

1) 缓存

2) 数据库

gtu*_*rri 5

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

gerrit.sh stop
Run Code Online (Sandbox Code Playgroud)

现在您已经删除了它的目录(因此是这个脚本),您应该自己终止这个进程。举个例子

ps -ef | grep gerrit
kill -9 <gerrit_pid>
Run Code Online (Sandbox Code Playgroud)