domty
V2EX  ›  问与答

gitlab 怎么卸载啊

  •  
  •   domty · Oct 10, 2016 · 2225 views
    This topic created in 3535 days ago, the information mentioned may be changed or developed.

    在 git 服务器上安装了 gitlab ,然后用自己的邮箱注册了 gitlab 账号。

    现在导致我个人无法使用 git ssh 与 git 服务器进行交互了, clone/push/pull 都提示要服务器密码。 git 服务器很多人用,不过还好目前对他们都没什么影响,我现在怀疑是因为我在 gitlab 上用邮箱注册账号导致的。

    同时因为没有把 git 服务器上原有项目导入 gitlab 导致即使我在 gitlab 上添加了 ssh key 也无法 clone 项目,会提示资源地址不存在。

    单纯的 gitlab-ctl stop

    gitlab-ctl uninstall 好像无效, gitlab 仍旧占用指定端口。

    Supplement 1  ·  Oct 10, 2016

    卸载成功了,服务器版本centos6

    gitlab-ctl uninstall后还要gitlan-ctl cleanse清楚所有数据,然后rpm卸载gitlab-ce

    Supplement 2  ·  Oct 10, 2016

    原因找到了,装gitlab的时候选的是一件安装版,安装时gitlab自己重新创建了一个git用户,把原有的git用户覆盖了。

    6 replies    2016-10-10 14:00:40 +08:00
    rainysia
        1
    rainysia  
       Oct 10, 2016
    1, 组织好语言
    2, 用的 gitlab 什么版本的
    3, clone/push/pull 你用的 http 协议的?
    4, 资源地址不存在这个一般是配置的 repo 的地址不对.
    pmpio
        2
    pmpio  
       Oct 10, 2016
    你在公用服务器上试用一个不熟悉的东西?还是先弄个试验环境,摸熟悉了再投入使用吧。
    lrh3321
        3
    lrh3321  
       Oct 10, 2016
    会不会是你的私钥或者服务器上的公钥被修改了?
    zwh8800
        4
    zwh8800  
       Oct 10, 2016
    用 docker 解百忧
    domty
        5
    domty  
    OP
       Oct 10, 2016
    @lrh3321
    不会,我重新生成往 /home/git/.ssh/authorized_keys 也不好使,而我是用同样的 ssh key 连接的 git 服务器。
    domty
        6
    domty  
    OP
       Oct 10, 2016
    @lrh3321
    本地测试部署正常,服务器部署也正常,我也不知道还有影响其他程序运行的副作用。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5261 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 05:47 · PVG 13:47 · LAX 22:47 · JFK 01:47
    ♥ Do have faith in what you're doing.