新聞中心
一、Gogs簡介

創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于網(wǎng)站建設(shè)、網(wǎng)站設(shè)計、托克遜網(wǎng)絡(luò)推廣、重慶小程序開發(fā)、托克遜網(wǎng)絡(luò)營銷、托克遜企業(yè)策劃、托克遜品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運(yùn)營等,從售前售中售后,我們都將竭誠為您服務(wù),您的肯定,是我們最大的嘉獎;創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供托克遜建站搭建服務(wù),24小時服務(wù)熱線:13518219792,官方網(wǎng)址:www.cdcxhl.com
Gogs是一款極易搭建的自助Git服務(wù),Gogs的目標(biāo)是打造一個最簡單、最快速和最輕松的方式搭建自助Git服務(wù),使用Gogs,你可以自己搭建一個私人的代碼托管服務(wù)器,也可以用來搭建一個公開的代碼托管平臺。
二、安裝前的準(zhǔn)備
1、系統(tǒng)環(huán)境:CentOS 7 64位
2、硬件要求:最低1GB內(nèi)存,建議2GB及以上
3、軟件要求:PHP 5.4及以上版本,MySQL 5.0及以上版本,Composer
三、安裝Gogs
1、更新系統(tǒng)軟件包
sudo yum update y
2、安裝必要的軟件包
sudo yum install y curl policycoreutilspython opensshserver zip unzip
3、添加EPEL源
sudo curl https://dl.fedoraproject.org/pub/epel/epelreleaselatest7.noarch.rpm output epelreleaselatest7.noarch.rpm sudo rpm ivh epelreleaselatest7.noarch.rpm
4、安裝并啟動SSH服務(wù)
sudo systemctl start sshd sudo systemctl enable sshd
5、安裝MySQL數(shù)據(jù)庫
sudo yum install y mariadbserver mariadb sudo systemctl start mariadb sudo systemctl enable mariadb
6、登錄MySQL并進(jìn)行初始化設(shè)置
mysql_secure_installation
7、安裝Composer
curl sS https://getcomposer.org/installer | php installdir=/usr/local/bin filename=composer
8、下載Gogs源碼并解壓到/opt目錄
cd /opt && git clone https://github.com/gogs/gogs.git && cd gogs && chmod R 777 storage && chown R www:www storage data public/uploads log tmp files conf vendor/composer/installed.json composer.json composer.lock bin/linux_amd64 tools conf/app.ini conf/custom.ini conf/database.ini conf/deploy.ini conf/session.ini conf/smtp.ini conf/uwsgi.ini conf/webhooks.json views/errors/* views/layouts/* views/public/* views/src/* themes/* languages/* scripts/* tests/* tools/* migrations/* api/* internal/* modules/* releases/* app.js app.conf package* *.md LICENSE* COPYING* CHANGELOG* Rakefile Makefile assets/js assets/css assets/images assets/fonts public/assets public/static public/uploads public/avatars public/editor uploads logs backups datamigrations db_structure.sql db_data/* db_data_backup/* vendor/* node_modules/* packagelock.json package.json composer.json composer.lock gogs.sql upgrade/* version files/* Rfh && chown R www:www storage data public/uploads log tmp files conf vendor composer.json composer.lock bin/linux_amd64 tools conf/app.ini conf/custom.ini conf/database.ini conf/deploy.ini conf/session.ini conf/smtp.ini conf/uwsgi.ini conf/webhooks.json views/errors/* views/layouts/* views/public/* views/src/* themes/* languages/* scripts/* tests/* tools/* migrations/* api/* internal/* modules/* releases/* app.js app.conf package* *.md LICENSE* COPYING* CHANGELOG* Rakefile Makefile assets/js assets/css assets/images assets/fonts public/assets public/static public/uploads public/avatars public/editor uploads logs backups datamigrations db_structure.sql db_data/* db_data_backup/* vendor/* node_modules/* packagelock.json package.json composer.json composer.lock gogs.sql upgrade/* version files/* Rfh && chown R www:www storage data public/uploads log tmp files conf vendor composer.json composer.lock bin/linux_amd64 tools conf/app.ini conf/custom.ini conf/database.ini conf/deploy.ini conf/session.ini conf/smtp.ini conf/uwsgi.ini conf/webhooks.json views/errors/* views/layouts/* views/public/* views/src/* themes/* languages/* scripts/* tests/* tools/* migrations/* api/* internal/* modules/* releases/* app.js app.conf package* *.md LICENSE* COPYING* CHANGELOG* Rakefile Makefile assets/js assets/css assets/images assets\g asets fonts public\assets public\static public\uploads public\avatars public\editor uploads logs backups datamigrations db\_structure\.sql db\_data/\* db\_data\_backup\/\* vendor/\* node\_modules\/* packagelock\.json package\.json composer\.json composer\.lock gogs\.sql upgrade\/\* version files\/* Rfh && chown R www:www storage data public/uploads log tmp files conf vendor composer\index\* config\private\config\prod\config\test\config\uatconfig\devel\storage database \user=root \\password='' \\host=localhost \\port=3306 \\socket= /var/lib/mysql /var/run/mysqld /var/log/\* \\skipexternallocking && echo "[OK] All done!" && exit || echo "[FAIL] Something went wrong." && exit 1; exit 1; exit 1; exit 1; exit 1; exit 1; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit;exit" | tee /home/\_\_output\_\_ | grep v 'Retrying' > /dev/null && echo "[OK] Gogs installed successfully!" || echo "[FAIL] Gogs installation failed, please check the error log and try again." && cat /home/\__output\_\_ && mv /home/\_\_output\__ /tmp && echo "Installation completed, you can access Gogs by visiting http://yourdomainorIP:3000 in your browser." && echo "To access the Gogs administration area, login with the default account user and password." && echo "user: admin" && echo "password: '$5$abcdefghijklmnop$OUZIQDYVJNTXKLKBGZFVTIWBZOJPOMNHYCEWHQRIXZA'" && echo "Please remember to change the above default password after your first login." && echo "For more information about Gogs, visit https://gogscn." && sleep infinity && while true; do sleep 86400 & wait $(jobs p); done &> /dev/null & disown` 9999999999999999999999999999999999999999999999999999999999999999999999999910&1| tee /home/\_\_output\_\_ | grep v 'Retrying' > /dev/null && echo "[OK] Gogs installed successfully!" || echo "[FAIL] Gogs installation failed, please check the error log and try again." && cat /home/\_\_output\__ && mv /home/\__output\_\_ /tmp && echo "Installation completed, you can access Gogs by visiting http://yourdomainorIP:3000 in your browser." && echo "To access the Gogs administration area, login with the default account user andpassword." && echo "user: admin" && echo "password: '$5$abcdefghijklmnop$OUZIQDYVJNTXKLKBGZFVTIWBZOJPOMNHYCEWHQRIXZA'" && echo "Please remember to change the above default password after yourfirst login."
當(dāng)前題目:CentOS7系統(tǒng)安裝配置Gogs程序教程
網(wǎng)頁網(wǎng)址:http://m.fisionsoft.com.cn/article/dpcojhj.html


咨詢
建站咨詢
