当前位置:首页 > CN2资讯 > 正文内容

Git服务器-Gogs服务器搭建windows git服务器搭建

8小时前CN2资讯
服务器环境 Centos7 关闭防火墙、关闭selinux   Gogs搭建实战 Gogs的下载地址https://dl.gogs.io/ 二进制下载:https://dl.gogs.io/0.11.86/gogs_0.11.86_linux_amd64.tar.gz   Mysql安装: 下载地址说明 curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo tar -xvf MySQL-5.6.49-1.el7.x86_64.rpm-bundle.tar yum localinstall MySQL-shared-* MySQL-client* MySQL-server* MySQL-devel*   Mysql配置修改/etc/my.cnf [mysqld] bind-address=0.0.0.0 skip-name-resolve innodb-file-per-table=1 日志配置修改   Mysql启动和密码配置 systemctl restart mysql systemctl enable mysql 更改默认mysql密码: mysql_secure_installation 默认密码位置:/root/.mysql_secret   创建gogs数据库,准备搭建gogs create database gogs character set utf8 collate utf8_bin; show databases;   Gogs的安装 yum install git -y; useradd git -s /sbin/nologin tar -zxvf gogs_0.11.86_linux_amd64.tar.gz -C /usr/local/   gogs用systemctl管理/usr/lib/systemd/system/gogs.service [Unit] Description=gogs After=network.target [Service] Type=simple ExecStart=/usr/local/gogs/gogs web User=root [Install] WantedBy=multi-user.target   启动Gogs 访问配置:数据库连接、用户名、密码 禁用用户自主注册   也可手动配置custom/conf/app.ini DISABLE_REGISTRATION = true   实战视频地址: 
    你可能想看:

    扫描二维码推送至手机访问。

    版权声明:本文由皇冠云发布,如需转载请注明出处。

    本文链接:https://www.idchg.com/info/20443.html

    分享给朋友:

    “Git服务器-Gogs服务器搭建windows git服务器搭建” 的相关文章