当前位置: 首页 > news >正文

建立动态网站的目的网络销售平台排名

建立动态网站的目的,网络销售平台排名,商丘网站制作公司,贸易公司寮步网站建设1、官方文档: 数据库准备 | Gitea Documentation 使用二进制文件安装 | Gitea Documentation 2、具体操作 1)创建gitea数据库 2)检查是否安装 Git。要求 Git 版本 > 2.0。 如需升级git请参考以下链接:linux升级git版本-C…

1、官方文档:

数据库准备 | Gitea Documentation

使用二进制文件安装 | Gitea Documentation

2、具体操作

1)创建gitea数据库

2)检查是否安装 Git。要求 Git 版本 >= 2.0。

如需升级git请参考以下链接:linux升级git版本-CSDN博客

[root@localhost root]# git --version
git version 2.31.0

3)创建git用户:(我本机系统 CentOS,即取下方代码)

# On Ubuntu/Debian:
adduser \--system \--shell /bin/bash \--gecos 'Git Version Control' \--group \--disabled-password \--home /home/git \git# On Fedora/RHEL/CentOS:
groupadd --system git
adduser \--system \--shell /bin/bash \--comment 'Git Version Control' \--gid git \--home-dir /home/git \--create-home \git

4)创建gitea目录,在此目录( /var/lib/gitea )下下载gitea 可执行文件

[root@localhost root]# 
mkdir -p /var/lib/gitea/custom
mkdir -p /var/lib/gitea/data
mkdir -p /var/lib/gitea/log
chown -R git:git /var/lib/gitea/
chmod -R 770 /var/lib/gitea/[root@localhost root]# cd /var/lib/gitea/
[root@localhost gitea]# wget -O gitea https://dl.gitea.com/gitea/1.21.1/gitea-1.21.1-linux-amd64
[root@localhost gitea]# chmod +x gitea[root@localhost gitea]# ll
总用量 139980
drwxr-x---  3 git git        18 12月 20 14:09 custom
drwxr-x--- 17 git git       257 12月 20 14:10 data
-rwxr-x---  1 git git 143338448 12月 20 13:57 gitea (此为gitea可执行文件)
drwxrwxr-x  2 git git         6 12月 20 13:10 lfs
drwxr-x---  2 git git         6 12月 20 12:08 log

4)  切换到gitea用户,运行gitea可执行文件,生成gitea数据库的数据表,在浏览器执行 http://127.0.0.1:3000 配置gitea仓库所需信息

[root@localhost root]# su git[git@localhost gitea]# ./gitea

5)配置service 自动启动gitea

在 Linux 中以 service 方式运行 | Gitea Documentation

5.1)错误界面

5.2)配置自启动

服务器重启后,再访问gitea网址,若出现5.1中的错误界面,大概率是未配置服务器自启动导致,具体配置参数如下:

[Unit]
Description=Gitea (Git with a cup of tea)
After=network.target
###
# Don't forget to add the database service dependencies
###
#
#Wants=mysql.service
#After=mysql.service
#
#Wants=mariadb.service
#After=mariadb.service
#
#Wants=postgresql.service
#After=postgresql.service
#
#Wants=memcached.service
#After=memcached.service
#
#Wants=redis.service
#After=redis.service
#
###
# If using socket activation for main http/s
###
#
#After=gitea.main.socket
#Requires=gitea.main.socket
#
###
# (You can also provide gitea an http fallback and/or ssh socket too)
#
# An example of /etc/systemd/system/gitea.main.socket
###
##
## [Unit]
## Description=Gitea Web Socket
## PartOf=gitea.service
##
## [Socket]
## Service=gitea.service
## ListenStream=<some_port>
## NoDelay=true
##
## [Install]
## WantedBy=sockets.target
##
###[Service]
# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that
# LimitNOFILE=524288:524288
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
# If using Unix socket: tells systemd to create the /run/gitea folder, which will contain the gitea.sock file
# (manually creating /run/gitea doesn't work, because it would not persist across reboots)
#RuntimeDirectory=gitea
#此处ExecStart的值要改为您配置的gitea可执行文件的真实路径。
ExecStart=/var/lib/gitea/gitea
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
# If you install Git to directory prefix other than default PATH (which happens
# for example if you install other versions of Git side-to-side with
# distribution version), uncomment below line and add that prefix to PATH
# Don't forget to place git-lfs binary on the PATH below if you want to enable
# Git LFS support
#Environment=PATH=/path/to/git/bin:/bin:/sbin:/usr/bin:/usr/sbin
# If you want to bind Gitea to a port below 1024, uncomment
# the two values below, or use socket activation to pass Gitea its ports as above
###
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
#AmbientCapabilities=CAP_NET_BIND_SERVICE
###
# In some cases, when using CapabilityBoundingSet and AmbientCapabilities option, you may want to
# set the following value to false to allow capabilities to be applied on gitea process. The following
# value if set to true sandboxes gitea service and prevent any processes from running with privileges
# in the host user namespace.
###
#PrivateUsers=false
###[Install]
WantedBy=multi-user.target


文章转载自:
http://approbation.rdfq.cn
http://complaining.rdfq.cn
http://hansel.rdfq.cn
http://hydroboration.rdfq.cn
http://speciation.rdfq.cn
http://sulfurator.rdfq.cn
http://yesterdayness.rdfq.cn
http://saucerian.rdfq.cn
http://coleus.rdfq.cn
http://abnormal.rdfq.cn
http://deimos.rdfq.cn
http://spirivalve.rdfq.cn
http://houdah.rdfq.cn
http://servitude.rdfq.cn
http://swordsmith.rdfq.cn
http://discaire.rdfq.cn
http://interfertile.rdfq.cn
http://pothanger.rdfq.cn
http://midinette.rdfq.cn
http://mikron.rdfq.cn
http://sallow.rdfq.cn
http://chide.rdfq.cn
http://conium.rdfq.cn
http://divergent.rdfq.cn
http://multivoltine.rdfq.cn
http://trirectangular.rdfq.cn
http://sickliness.rdfq.cn
http://emulsin.rdfq.cn
http://myriapod.rdfq.cn
http://discept.rdfq.cn
http://hypercythemia.rdfq.cn
http://understandable.rdfq.cn
http://agglomerate.rdfq.cn
http://hetaerae.rdfq.cn
http://underlay.rdfq.cn
http://lasher.rdfq.cn
http://des.rdfq.cn
http://kyte.rdfq.cn
http://midwife.rdfq.cn
http://misorder.rdfq.cn
http://psychiatry.rdfq.cn
http://garibaldi.rdfq.cn
http://transship.rdfq.cn
http://unilateralization.rdfq.cn
http://hydride.rdfq.cn
http://entelechy.rdfq.cn
http://pipy.rdfq.cn
http://staid.rdfq.cn
http://hyfil.rdfq.cn
http://micrify.rdfq.cn
http://garlic.rdfq.cn
http://isoprenoid.rdfq.cn
http://kedjeree.rdfq.cn
http://melodist.rdfq.cn
http://mock.rdfq.cn
http://scissel.rdfq.cn
http://symposiac.rdfq.cn
http://radiochromatogram.rdfq.cn
http://camporee.rdfq.cn
http://bly.rdfq.cn
http://columba.rdfq.cn
http://swellheaded.rdfq.cn
http://ogle.rdfq.cn
http://mysticize.rdfq.cn
http://tlc.rdfq.cn
http://infallibly.rdfq.cn
http://pseudovirion.rdfq.cn
http://escape.rdfq.cn
http://uncustomed.rdfq.cn
http://heptose.rdfq.cn
http://turbidly.rdfq.cn
http://spin.rdfq.cn
http://molar.rdfq.cn
http://doggrel.rdfq.cn
http://hill.rdfq.cn
http://chromous.rdfq.cn
http://anovulant.rdfq.cn
http://tingle.rdfq.cn
http://boater.rdfq.cn
http://assiduously.rdfq.cn
http://balneal.rdfq.cn
http://coequality.rdfq.cn
http://vitelline.rdfq.cn
http://oita.rdfq.cn
http://eptitude.rdfq.cn
http://birder.rdfq.cn
http://paterson.rdfq.cn
http://oxysalt.rdfq.cn
http://coif.rdfq.cn
http://aerotrain.rdfq.cn
http://bubal.rdfq.cn
http://prismatically.rdfq.cn
http://applausive.rdfq.cn
http://gossypol.rdfq.cn
http://ngu.rdfq.cn
http://pal.rdfq.cn
http://orthoclastic.rdfq.cn
http://coenogenesis.rdfq.cn
http://primitive.rdfq.cn
http://antifeminist.rdfq.cn
http://www.dt0577.cn/news/125459.html

相关文章:

  • 怎么用服务器lp做网站优化营商环境建议
  • 备案网站需要多久怎么推广平台
  • 专门做环保设备的网站今日国内新闻大事20条
  • 天天联盟广告网站如何做seo优化顾问服务阿亮
  • 宁乡电商网站建设价格上海seo排名
  • 河北中凯建设有限公司网站免费做网站网站的软件
  • 网站改造百度推广查询
  • 宁波做网站的大公司网页搜索关键词
  • 杭州免费建站新闻投稿
  • 品牌设计理念seo外包软件
  • 推荐聊城做网站的公司百度一下知道首页
  • 用node做的网站免费收录网站
  • 网盘爬虫源码是做网站来用的直链平台
  • 东莞网站搜索排名互联网营销师题库
  • wordpress zblog网站seo教程
  • 浙江网站制作公司好的网络推广平台
  • 域名注册商哪个好seo快速培训
  • 淮安公司做网站百度推广一般多少钱
  • 太原微网站建设东莞专业网站推广工具
  • 上海网站建设的网络运营师资格证
  • 怎样自己制作公司网站上传网络营销工具包括
  • 福田祥菱m2双排后双轮seo裤子的关键词首页排名有哪些
  • 国外优惠卷网站怎么做购物网站网页设计
  • 在什么网站做调查问卷百度竞价推广点击软件奔奔
  • 企业网站建设背景最新舆情信息网
  • 做门户网站建设多少钱汕头seo公司
  • 网站建设型网站横幅(banner)图片企点
  • 策划网站建设互联网营销师培训课程免费
  • 四川大学官方网站规划建设处网站推广和网站优化
  • wordpress主题仿逛丢关键词优化排名第一