bitnami gitlab相关操作

韦修文
2023-12-01

bitnami gitlab安装目录

[dev@OG2233-FM41-226 gitlab-8.14.0-0]$ pwd

/opt/gitlab-8.14.0-0


重启服务

[dev@OG2233-FM41-226 gitlab-8.14.0-0]$ sudo ./ctlscript.sh restart

Syntax OK

/opt/gitlab-8.14.0-0/apache2/scripts/ctl.sh : httpd stopped

/opt/gitlab-8.14.0-0/apps/gitlab/scripts/sidekiq.sh : gitlab_sidekiq stopped

/opt/gitlab-8.14.0-0/apps/gitlab-workhorse/scripts/ctl.sh : gitlab-workhorse stopped

/opt/gitlab-8.14.0-0/apps/gitlabci/gitlabci-multirunner/scripts/ctl.sh : gitlabci stopped

/opt/gitlab-8.14.0-0/redis/scripts/ctl.sh : redis stopped

waiting for server to shut down.... done

server stopped

/opt/gitlab-8.14.0-0/postgresql/scripts/ctl.sh : postgresql stopped

waiting for server to start.... done

server started

/opt/gitlab-8.14.0-0/postgresql/scripts/ctl.sh : postgresql  started at port 5432

/opt/gitlab-8.14.0-0/redis/scripts/ctl.sh : redis started at port 6379

/opt/gitlab-8.14.0-0/apps/gitlab/scripts/sidekiq.sh : gitlab_sidekiq started

/opt/gitlab-8.14.0-0/apps/gitlab-workhorse/scripts/ctl.sh : gitlab-workhorse started

/opt/gitlab-8.14.0-0/apps/gitlabci/gitlabci-multirunner/scripts/ctl.sh : gitlabci_multirunner started

Syntax OK

/opt/gitlab-8.14.0-0/apache2/scripts/ctl.sh : httpd started at port 80



停止

stop


卸载

uninstall


#单独控制其他,可以开启、停止、重启。
 ./ctlscript.sh (start|stop|restart) postgres
./ctlscript.sh (start|stop|restart) redis
./ctlscript.sh (start|stop|restart) apache
./ctlscript.sh (start|stop|restart) sidekiq


#如果没什么问题,你就可以去你刚才配置的域名处访问了,注意你的服务器是否关闭防火墙。我用的是CentOS 7.2,默认安装firewall作为防火墙,关闭防火墙命令。和CentOS 6的命令不一样哟,也是一个坑。
systemctl stop firewalld.service #停止firewall



找了好久才找到的日志目录在这个位置:

/opt/gitlab-8.14.0-0/apps/gitlab/htdocs/log


Git代码库保存位置,这个倒是很容易找到了:

/opt/gitlab-8.14.0-0/apps/gitlab/repositories



如果安装时选择了安装phppgadmin的话,可以直接在网页上主机后加上/phppgadmin访问数据库,这个密码在

/opt/gitlab-8.14.0-0/apps/gitlab/htdocs/config/database.yml中可以找到。


参考:

http://comedsh.iteye.com/blog/2238200

https://www.douban.com/note/573320056/

https://my.oschina.net/u/1158620/blog/289191



 类似资料: