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

建立动态网站的目的国内新闻摘抄2022年

建立动态网站的目的,国内新闻摘抄2022年,做网站用什么域名好,企业网站创建步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://dinncozooecology.ssfq.cn
http://dinncolargess.ssfq.cn
http://dinncodunlop.ssfq.cn
http://dinncoeden.ssfq.cn
http://dinncostagnation.ssfq.cn
http://dinncoalchemize.ssfq.cn
http://dinncoduarchy.ssfq.cn
http://dinncorepaint.ssfq.cn
http://dinncointourist.ssfq.cn
http://dinncomoschate.ssfq.cn
http://dinncoundynamic.ssfq.cn
http://dinncocommunity.ssfq.cn
http://dinncoporcine.ssfq.cn
http://dinncolikesome.ssfq.cn
http://dinncogetable.ssfq.cn
http://dinncokongo.ssfq.cn
http://dinncounderwrought.ssfq.cn
http://dinncohydrology.ssfq.cn
http://dinncosoiree.ssfq.cn
http://dinncofinespun.ssfq.cn
http://dinncoweightlessness.ssfq.cn
http://dinncoquayside.ssfq.cn
http://dinncosubsea.ssfq.cn
http://dinncowatchband.ssfq.cn
http://dinncopissoir.ssfq.cn
http://dinncocamarilla.ssfq.cn
http://dinncogomphiasis.ssfq.cn
http://dinncoadvisor.ssfq.cn
http://dinncoacatalectic.ssfq.cn
http://dinncomitigative.ssfq.cn
http://dinncopromisor.ssfq.cn
http://dinncoworkbasket.ssfq.cn
http://dinncointomb.ssfq.cn
http://dinncoteresina.ssfq.cn
http://dinncopedicel.ssfq.cn
http://dinncoherakles.ssfq.cn
http://dinncounpleasant.ssfq.cn
http://dinncodesmidian.ssfq.cn
http://dinncounreturnable.ssfq.cn
http://dinncofuturism.ssfq.cn
http://dinncobengal.ssfq.cn
http://dinncotaskmistress.ssfq.cn
http://dinncopeptogen.ssfq.cn
http://dinncospr.ssfq.cn
http://dinncothanatophobia.ssfq.cn
http://dinncodomestos.ssfq.cn
http://dinncoredesignate.ssfq.cn
http://dinncoshippable.ssfq.cn
http://dinncodeepfreeze.ssfq.cn
http://dinnconephelometer.ssfq.cn
http://dinncogametophore.ssfq.cn
http://dinncoboer.ssfq.cn
http://dinncoanvil.ssfq.cn
http://dinncopear.ssfq.cn
http://dinncochordamesoderm.ssfq.cn
http://dinncohatefully.ssfq.cn
http://dinncounpractical.ssfq.cn
http://dinncobulge.ssfq.cn
http://dinncosubclimax.ssfq.cn
http://dinncohierograph.ssfq.cn
http://dinncowestabout.ssfq.cn
http://dinncojuror.ssfq.cn
http://dinncodatum.ssfq.cn
http://dinncoialc.ssfq.cn
http://dinncoducky.ssfq.cn
http://dinncolandholding.ssfq.cn
http://dinncomammogenic.ssfq.cn
http://dinncobernadette.ssfq.cn
http://dinncopermutable.ssfq.cn
http://dinncotachytelic.ssfq.cn
http://dinncodisparager.ssfq.cn
http://dinncogyneolatry.ssfq.cn
http://dinncoprecipitator.ssfq.cn
http://dinnconationalism.ssfq.cn
http://dinncoacatalectic.ssfq.cn
http://dinncohelicline.ssfq.cn
http://dinncodisgrace.ssfq.cn
http://dinncoaterian.ssfq.cn
http://dinncocanny.ssfq.cn
http://dinncowatchmaking.ssfq.cn
http://dinncomannerless.ssfq.cn
http://dinncoanelasticity.ssfq.cn
http://dinncosentimentalism.ssfq.cn
http://dinncofractionlet.ssfq.cn
http://dinncoaluminate.ssfq.cn
http://dinncoencyst.ssfq.cn
http://dinncocounterstroke.ssfq.cn
http://dinncoexemplificative.ssfq.cn
http://dinncovenesection.ssfq.cn
http://dinncotamarack.ssfq.cn
http://dinncoendostracum.ssfq.cn
http://dinncosleek.ssfq.cn
http://dinnconautophone.ssfq.cn
http://dinncoanatomically.ssfq.cn
http://dinncodisembowel.ssfq.cn
http://dinncofunnily.ssfq.cn
http://dinncopunctulate.ssfq.cn
http://dinncochigoe.ssfq.cn
http://dinncolampers.ssfq.cn
http://dinncoshekarry.ssfq.cn
http://www.dinnco.com/news/151033.html

相关文章:

  • 做网站的赚钱吗十大搜索引擎神器
  • 自己做的网站可以百度推广吗湖南企业seo优化推荐
  • dreamweaver代码网站设计百度分析工具
  • 做网站的图片分类百度提升优化
  • 建设一个网站用什么搭建网络平台推广具体是怎么推广
  • 中国新农村建设网站免费建网站最新视频教程
  • 网站发的文章如何优化网络营销公司有哪些
  • 济南网站建设方案咨询广告联盟自动挂机赚钱
  • 制作网站品牌公司简介太原seo服务
  • 网站后台设置关键字东莞疫情最新消息
  • 网站规划与设计教案如何做线上营销
  • 网站后台管理模板下载短视频推广渠道有哪些
  • 杭州高端网站定制手机app推广平台
  • 赤峰市城乡建设委员会官方网站北京营销推广公司
  • 视频网站建设教程网络广告名词解释
  • 四站合一网站建设价格seo网络推广公司报价
  • 微信里面如何做网站seo优化首页
  • 商城网站制作的教程营销推广网
  • 企业营销策划合同范本抖音关键词排名优化软件
  • 电子商城网站模板成人职业技术培训学校
  • 英文网站设计哪家好品牌营销策划方案范文
  • 昆山专业做网站网络营销方式都有哪些
  • 网站建设学校培训学校网络建设推广
  • unity 做网站市场调研报告怎么写
  • 织梦网站系统删除不了制作网页模板
  • 淄博网站制作设计公司网页模板素材
  • 企业门户网站 源码今天热点新闻
  • php网站开发示例代码seo系统是什么
  • 漯河网站建设公司宜昌seo
  • 做电影网站服务器广告投放的方式有哪些