学校建设网站拓扑图,推广公司新形象的营销支出,jsp如何做网站界面,怎么建设一个优秀的网站要在没有外网的麒麟系统上搭建GitLab服务并且无需客户端账号密码验证#xff0c;可以按照以下步骤进行操作#xff1a;
安装必要的依赖包和软件
sudo yum install curl policycoreutils-python openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl …要在没有外网的麒麟系统上搭建GitLab服务并且无需客户端账号密码验证可以按照以下步骤进行操作
安装必要的依赖包和软件
sudo yum install curl policycoreutils-python openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-servicehttp
sudo systemctl reload firewalld安装GitLab的依赖工具
sudo yum install -y curl policycoreutils-python openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-servicehttp
sudo systemctl reload firewalld
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix下载并安装GitLab
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo EXTERNAL_URLhttp://gitlab.example.com yum install -y gitlab-ee配置GitLab
打开GitLab配置文件并做出如下修改
sudo vim /etc/gitlab/gitlab.rb将external_url配置为
external_url http://localhost:80去掉nginx配置
nginx[enable] false添加GitLab监听所有本地IP地址
web_listen_address 0.0.0.0
web_listen_port 80允许HTTP访问
gitlab_workhorse[listen_network] tcp
gitlab_workhorse[listen_addr] localhost:8181
gitlab_rails[trusted_proxies] [127.0.0.1, localhost, ::1]
nginx[enable] false保存文件并退出。
重新配置并启动GitLab
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart创建并添加管理员账户
sudo gitlab-rails console
user User.new(username: admin, name: Administrator, email: adminexample.com, password: password, password_confirmation: password)
user.admin true
user.save
exit现在你可以访问http://localhost来访问GitLab服务并使用admin账户和password密码进行登录。注意这种方式不安全不建议在生产环境中使用。