ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
第一步:配置epel源 [root@node1 yum.repos.d]# wget -O /etc/yum.repos.d/epel-6 http://mirrors.aliyun.com/repo/epel-6.repo 第二步:安装mysql、nginx服务 [root@node1 ~]# useradd -u 7003 git [git@node1 ~]$ sudo yum -y install nginx mysql-server [git@node1 ~]$ sudo service nginx start Starting nginx: [ OK ] [git@node1 ~]$ sudo service mysqld start 登录mysql,创建gogs数据库,并授权 mysql> create database gogs -> ; Query OK, 1 row affected (0.00 sec) mysql> grant all on gogs.* to 'gogs'@'10.2.11.%' identified by 'Aa123456'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) 第三步:下载gogs软件,并安装 官网: https://gogs.io/docs/installation/install_from_binary [git@node1 src]$ sudo wget https://dl.gogs.io/0.11.29/linux_amd64.tar.gz [git@node1 src]$sudo mkdir /data [git@node1 src]$ sudo tar xf linux_amd64.tar.gz -C /data/ 安装gogs [git@node1 data]$ ./gogs/gogs web ![](https://box.kancloud.cn/8a9a11d77f7f61025851e00c368de2de_856x524.png) ![](https://box.kancloud.cn/125d0e44494baaf4ff5fbe20a9f433e3_638x215.png) 登录gogs ![](https://box.kancloud.cn/1f02311387ede77fc28645b5f1d9088b_1358x565.png) 用户名:administrator 密码: