How can I remove jenkins completely from linux

后端 未结 5 1489
执念已碎
执念已碎 2021-02-03 17:30

I have deleted jenkins all directories from different folders. But still when I access URL it is showing me jenkins login.

I want to uninstall jenkins completely. Have t

相关标签:
5条回答
  • 2021-02-03 17:40

    For sentOs, it's works for me At first stop service by sudo service jenkins stop

    Than remove by sudo yum remove jenkins

    0 讨论(0)
  • 2021-02-03 17:57

    On Centos7, It is important to note that while you remove jenkins using following command: sudo yum remove jenkins

    it will not remove your users and other information. For that you will have to do following: sudo rm -r /var/lib/jenkins

    0 讨论(0)
  • 2021-02-03 17:58

    if you are ubuntu user than try this:

    sudo apt-get remove jenkins
    sudo apt-get remove --auto-remove jenkins
    

    'apt-get remove' command is use to remove package.

    0 讨论(0)
  • 2021-02-03 18:01

    If your jenkins is running as service instead of process you should stop it first using

    sudo service jenkins stop
    

    After stopping it you can follow the normal flow of removing it using commands respective to your linux flavour

    For centos it will be

    sudo yum remove jenkins
    

    For ubuntu it will

    sudo apt-get remove --purge jenkins
    

    I hope this will solve your issue.

    0 讨论(0)
  • 2021-02-03 18:04

    First - stop Jenkins service:

    sudo service jenkins stop
    

    Next - delete:

    sudo apt-get remove --purge jenkins
    

    If you used separate server for Jenkins, some GCP or AWS - just delete this server. Here is a video how to uninstall Jenkins from GCP Compute Engine https://youtu.be/D2HUFAc_Trw

    0 讨论(0)
提交回复
热议问题