日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
CentOS7系統(tǒng)安裝配置Gogs程序教程

一、Gogs簡(jiǎn)介

創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì)、托克遜網(wǎng)絡(luò)推廣、重慶小程序開(kāi)發(fā)、托克遜網(wǎng)絡(luò)營(yíng)銷、托克遜企業(yè)策劃、托克遜品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運(yùn)營(yíng)等,從售前售中售后,我們都將竭誠(chéng)為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供托克遜建站搭建服務(wù),24小時(shí)服務(wù)熱線:13518219792,官方網(wǎng)址:www.cdcxhl.com

Gogs是一款極易搭建的自助Git服務(wù),Gogs的目標(biāo)是打造一個(gè)最簡(jiǎn)單、最快速和最輕松的方式搭建自助Git服務(wù),使用Gogs,你可以自己搭建一個(gè)私人的代碼托管服務(wù)器,也可以用來(lái)搭建一個(gè)公開(kāi)的代碼托管平臺(tái)。

二、安裝前的準(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、安裝并啟動(dòng)SSH服務(wù)

sudo systemctl start sshd
sudo systemctl enable sshd

5、安裝MySQL數(shù)據(jù)庫(kù)

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."

文章題目:CentOS7系統(tǒng)安裝配置Gogs程序教程
分享路徑:http://www.5511xx.com/article/dpcojhj.html