{"id":28119,"date":"2022-12-15T04:26:47","date_gmt":"2022-12-02T03:52:33","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/"},"modified":"2025-08-12T06:26:06","modified_gmt":"2025-08-11T22:26:06","slug":"%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/","title":{"rendered":"\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a"},"content":{"rendered":"<p>\u8fd9\u662f\u5907\u5fd8\u5f55\u3002<br \/>\n\u6211\u5df2\u7ecf\u5728Ubuntu\u4e0a\u5b89\u88c5\u4e86Gitea\u3002<\/p>\n<p>Git\u7684\u57fa\u672c\u64cd\u4f5c\u662f\u901a\u8fc7\u547d\u4ee4\u884c\u8fdb\u884c\u7684\uff0c\u4f46\u50cfGitHub\u4e00\u6837\uff0c\u901a\u8fc7\u56fe\u5f62\u754c\u9762\u8fdb\u884c\u5217\u8868\u7ba1\u7406\u4f1a\u66f4\u65b9\u4fbf\u3002Gitea\u662f\u975e\u5e38\u9002\u5408\u7684\u9009\u62e9\u3002<\/p>\n<p>Gitea &#8211; \u4e00\u676f\u8336\u8207 Git<\/p>\n<h1>\u5b89\u88c5<\/h1>\n<p>\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<p>Installation from binary<br \/>\nhttps:\/\/docs.gitea.io\/en-us\/install-from-binary\/<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001Git\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"post-pre\"><code># apt-get install git\r\n<\/code><\/pre>\n<p>\u4ee5\u964d\u304c\u3001Gitea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"post-pre\"><code>$ wget -O gitea https:\/\/dl.gitea.io\/gitea\/1.12.2\/gitea-1.12.2-linux-amd64\r\n$ chmod +x gitea\r\n# cp gitea \/usr\/local\/bin\/gitea\r\n# adduser --system --shell \/bin\/bash --gecos 'Git Version Control' --group --disabled-password --home \/home\/git git\r\n# mkdir -p \/var\/lib\/gitea\/{custom,data,log}\r\n# chown -R git:git \/var\/lib\/gitea\/\r\n# chmod -R 750 \/var\/lib\/gitea\/\r\n# mkdir \/etc\/gitea\r\n# chown root:git \/etc\/gitea\r\n# chmod 770 \/etc\/gitea\r\n<\/code><\/pre>\n<p>\u81ea\u52d5\u8d77\u52d5\u306e\u305f\u3081\u3001systemd\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u7528vim\u7f16\u8f91\u5668\u6253\u5f00 \/etc\/systemd\/system\/gitea.service \u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=Gitea (Git with a cup of tea)\r\nAfter=syslog.target\r\nAfter=network.target\r\n###\r\n# Don't forget to add the database service requirements\r\n###\r\n#\r\n#Requires=mysql.service\r\n#Requires=mariadb.service\r\n#Requires=postgresql.service\r\n#Requires=memcached.service\r\n#Requires=redis.service\r\n#\r\n###\r\n# If using socket activation for main http\/s\r\n###\r\n#\r\n#After=gitea.main.socket\r\n#Requires=gitea.main.socket\r\n#\r\n###\r\n# (You can also provide gitea an http fallback and\/or ssh socket too)\r\n#\r\n# An example of \/etc\/systemd\/system\/gitea.main.socket\r\n###\r\n##\r\n## [Unit]\r\n## Description=Gitea Web Socket\r\n## PartOf=gitea.service\r\n##\r\n## [Socket]\r\n## Service=gitea.service\r\n## ListenStream=&lt;some_port&gt;\r\n## NoDelay=true\r\n##\r\n## [Install]\r\n## WantedBy=sockets.target\r\n##\r\n###\r\n\r\n[Service]\r\n# Modify these two values and uncomment them if you have\r\n# repos with lots of files and get an HTTP error 500 because\r\n# of that\r\n###\r\n#LimitMEMLOCK=infinity\r\n#LimitNOFILE=65535\r\nRestartSec=2s\r\nType=simple\r\nUser=git\r\nGroup=git\r\nWorkingDirectory=\/var\/lib\/gitea\/\r\n# If using Unix socket: tells systemd to create the \/run\/gitea folder, which will contain the gitea.sock file\r\n# (manually creating \/run\/gitea doesn't work, because it would not persist across reboots)\r\n#RuntimeDirectory=gitea\r\nExecStart=\/usr\/local\/bin\/gitea web --config \/etc\/gitea\/app.ini\r\nRestart=always\r\nEnvironment=USER=git HOME=\/home\/git GITEA_WORK_DIR=\/var\/lib\/gitea\r\n# If you want to bind Gitea to a port below 1024, uncomment\r\n# the two values below, or use socket activation to pass Gitea its ports as above\r\n###\r\n#CapabilityBoundingSet=CAP_NET_BIND_SERVICE\r\n#AmbientCapabilities=CAP_NET_BIND_SERVICE\r\n###\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001Gitea\u3092\u8d77\u52d5\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code># systemctl start gitea\r\n<\/code><\/pre>\n<p>\/etc\/gitea\u306bapp.ini\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n\u79c1\u306e\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30dd\u30fc\u30c8\u756a\u53f73000\u304c\u4ed6\u3068\u304b\u3076\u3063\u3066\u3044\u305f\u305f\u3081\u3001\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6253\u5f00`\/etc\/gitea\/app.ini`\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>\u30fb\u30fb\u30fb\r\n[server]\r\nHTTP_PORT = 3001\r\n\u30fb\u30fb\u30fb\r\n<\/code><\/pre>\n<p>\u91cd\u65b0\u542f\u52a8<\/p>\n<pre class=\"post-pre\"><code># systemctl restart gitea\r\n<\/code><\/pre>\n<h1>\u5728MySQL\u4e2d\u521b\u5efa\u6570\u636e\u5e93\u3002<\/h1>\n<p>Gitea\u7d4c\u7531\u3067\u8a2d\u5b9a\u3057\u305f\u60c5\u5831\u306e\u7ba1\u7406\u306e\u305f\u3081\u306b\u3001MySQL\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>DB\u540d\uff1agiteadb<br \/>\n\u7167\u5408\u9806\u5e8f\uff1autf8mb4_unicode_ci<\/p>\n<h1>\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30ed\u30b0\u30a4\u30f3<\/h1>\n<p>\u4ee5\u4e0b\u306eURL\u3092\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>http:\/\/\u3010\u5b89\u88c5\u7684PC\u4e3b\u673a\u540d\u3011:3000<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c182cd0c9c81e0f5aab47\/26-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u53f3\u4e0a\u306e\u767b\u9332\u304b\u3089\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0<br \/>\n\u203b\u4e00\u756a\u6700\u521d\u306b\u767b\u9332\u3057\u305f\u30e6\u30fc\u30b6\u306f\u7ba1\u7406\u8005\u3068\u3057\u3066\u767b\u9332\u3055\u308c\u308b\u3002\u4ee5\u964d\u306f\u4e00\u822c\u30e6\u30fc\u30b6\u3068\u3057\u3066\u767b\u9332\u3055\u308c\u308b\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c182cd0c9c81e0f5aab47\/28-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u6700\u521d\u306b\u63a5\u7d9a\u3059\u308bDB\u306e\u8a2d\u5b9a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u60c5\u5831\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30db\u30b9\u30c8\u540d\uff1a\u30dd\u30fc\u30c8\u756a\u53f7\u3001\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u540d\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3002\uff08\u30e1\u30fc\u30eb\u8a2d\u5b9a\u6b04\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4f7f\u308f\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u305d\u3053\u306b\u4f55\u3082\u5165\u529b\u3057\u306a\u3044\u3053\u3068\u3002\uff09<\/p>\n<p>\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c182cd0c9c81e0f5aab47\/31-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u9664\u6b64\u4e4b\u5916\uff0c\u4f60\u53ef\u4ee5\u6309\u7167GitHub\u7684\u76f8\u540c\u65b9\u6cd5\u64cd\u4f5c\u3002<\/p>\n<h1>\u6574\u7406\u5de5\u4f5c<\/h1>\n<p>\uff08\u53c2\u8003\uff09https:\/\/docs.gitea.io\/en-us\/config-cheat-sheet\/ \u7684\u4e2d\u6587\u91ca\u4e49\u5982\u4e0b\uff1a<\/p>\n<p>\u7981\u6b62\u81ea\u884c\u7528\u6237\u6ce8\u518c<\/p>\n<p>\u5728\u53f3\u4e0a\u65b9\u7684\u6ce8\u518c\u5904\uff0c\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u8fdb\u884c\u7528\u6237\u6ce8\u518c\u5e76\u767b\u5f55\u3002\u63a5\u4e0b\u6765\u5c06\u8fdb\u884c\u65e0\u6548\u5316\u5904\u7406\u3002<\/p>\n<p>\u6253\u5f00\/etc\/gitea\/app.ini\u6587\u4ef6<\/p>\n<pre class=\"post-pre\"><code><span class=\"py\">DISABLE_REGISTRATION<\/span> <span class=\"p\">=<\/span> <span class=\"s\">false<\/span>\r\n<span class=\"py\">ENABLE_OPENID_SIGNUP<\/span> <span class=\"p\">=<\/span> <span class=\"s\">true<\/span>\r\n<span class=\"err\">\u2192<\/span>\r\n<span class=\"py\">DISABLE_REGISTRATION<\/span> <span class=\"p\">=<\/span> <span class=\"s\">true<\/span>\r\n<span class=\"py\">ENABLE_OPENID_SIGNUP<\/span> <span class=\"p\">=<\/span> <span class=\"s\">false<\/span>\r\n<\/code><\/pre>\n<p>\u3007\u30d1\u30b9\u30ef\u30fc\u30c9\u5236\u9650\u306e\u7de9\u548c<\/p>\n<p>\u7d50\u69cb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5236\u9650\u304c\u304d\u3064\u3044\u306e\u3067\u3001\u7de9\u548c\u3057\u305f\u3044\u65b9\u5411\u3051\u3002<\/p>\n<p>\u6253\u5f00\/etc\/gitea\/app.ini\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nn\">[security]<\/span>\r\n<span class=\"py\">PASSWORD_COMPLEXITY<\/span> <span class=\"p\">=<\/span> <span class=\"s\">off<\/span>\r\n<\/code><\/pre>\n<p>\u4fdd\u62a4 \u3007app.ini \u6587\u4ef6<\/p>\n<p>DB\u7684\u8bbe\u7f6e\u5df2\u7ecf\u5b8c\u6210\uff0capp.ini\u5df2\u7ecf\u66f4\u65b0\uff0c\u56e0\u6b64\u4e0d\u518d\u9700\u8981\u901a\u8fc7Web\u8fdb\u884c\u66f4\u6539\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u9650\u5236\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n<pre class=\"post-pre\"><code># chmod 750 \/etc\/gitea\r\n# chmod 640 \/etc\/gitea\/app.ini\r\n<\/code><\/pre>\n<p>\u5176\u4ed6<\/p>\n<p>PC\u91cd\u542f\u540e\u5c06\u4f1a\u81ea\u52a8\u542f\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code># systemctl enable gitea\r\n<\/code><\/pre>\n<p>\u91cd\u65b0\u542f\u52a8Gitea\u3002<\/p>\n<pre class=\"post-pre\"><code># systemctl restart gitea\r\n<\/code><\/pre>\n<h1>\u5c06\u5b58\u50a8\u5e93\u914d\u7f6e\u4e3aNFS\u3002<\/h1>\n<p>\u5c06\u5b58\u50a8\u5e93\u6302\u8f7d\u5230\u5df2\u7ecf\u914d\u7f6e\u4e3aRAID\u7684\u53e6\u4e00\u4e2aNAS\u4e0a\u3002\u534f\u8bae\u9009\u62e9\u4e86NFS\u3002\uff08\u6b64\u6b65\u9aa4\u5e76\u975e\u5fc5\u9700\uff09<\/p>\n<pre class=\"post-pre\"><code># apt-get install nfs-common\r\n<\/code><\/pre>\n<p>\u5728idmapd.conf\u6587\u4ef6\u4e2d\u5199\u5165\u6b64\u8ba1\u7b97\u673a\u7684\u4e3b\u673a\u540d\u3002<\/p>\n<p>\u6253\u5f00 \/etc\/idmapd.conf \u6587\u4ef6\u5e76\u7f16\u8f91<\/p>\n<pre class=\"post-pre\"><code>Domain = \u3010\u3053\u306ePC\u306e\u30db\u30b9\u30c8\u540d\u3011\r\n<\/code><\/pre>\n<p>\u4e0b\u6b21\u542f\u52a8\u8ba1\u7b97\u673a\u540e\u5c06\u4fdd\u6301\u6709\u6548\uff0c\u5e76\u8ffd\u52a0\u4ee5\u4e0b\u5185\u5bb9\u3002<\/p>\n<p>\u6253\u5f00 \/etc\/fstab \u6587\u4ef6\u6765\u7f16\u8f91\u3002\uff08\u8bf7\u6ce8\u610f\uff0c\u8fd9\u662f\u4ee5\u4e2d\u56fd\u6bcd\u8bed\u7684\u65b9\u5f0f\u8868\u8fbe\uff09<\/p>\n<pre class=\"post-pre\"><code>\u3010NFS\u30b5\u30fc\u30d0\u306e\u30db\u30b9\u30c8\u540d\u3011:\/git_data \/home\/git\/gitea-repositories nfs defalts 0 0\r\n<\/code><\/pre>\n<p>\u4ee5\u4ee5\u4e0b\u65b9\u5f0f\u8fdb\u884c\u6302\u8f7d\uff0c\u5c06\u6570\u636e\u5b8c\u5168\u590d\u5236\u3002<\/p>\n<pre class=\"post-pre\"><code># cd \/home\/git\r\n# mv gitea-repositories gitea-repositories.org\r\n# mkdir gitea-repositories\r\n# mount \/home\/git\/gitea-repositories\r\n# cp -Ra \/home\/git\/gitea-repositories.org\/* \/home\/git\/git-repositories\/\r\n# chown git:git \/home\/git\/gitea-repositories\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0a<\/p>\n<p>Note: &#8220;\u4ee5\u4e0a&#8221; directly translates to &#8220;above&#8221; or &#8220;the above&#8221; in English and can be used as a general reference to the text or information mentioned previously.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u5907\u5fd8\u5f55\u3002 \u6211\u5df2\u7ecf\u5728Ubuntu\u4e0a\u5b89\u88c5\u4e86Gitea\u3002 Git\u7684\u57fa\u672c\u64cd\u4f5c\u662f\u901a\u8fc7\u547d\u4ee4\u884c\u8fdb\u884c\u7684\uff0c\u4f46\u50cfGitHub\u4e00 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-28119","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06gitea\u5b89\u88c5\u5230ubuntu\u4e0a\u3002-6\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06gitea\u5b89\u88c5\u5230ubuntu\u4e0a\u3002-6\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-02T03:52:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T22:26:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c182cd0c9c81e0f5aab47\/26-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/\",\"name\":\"\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-12-02T03:52:33+00:00\",\"dateModified\":\"2025-08-11T22:26:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"description\":\"\u5173\u4e8e\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06gitea\u5b89\u88c5\u5230ubuntu\u4e0a\u3002-6\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a","og_description":"\u5173\u4e8e\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06gitea\u5b89\u88c5\u5230ubuntu\u4e0a\u3002-6\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-12-02T03:52:33+00:00","article_modified_time":"2025-08-11T22:26:06+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c182cd0c9c81e0f5aab47\/26-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/","name":"\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-12-02T03:52:33+00:00","dateModified":"2025-08-11T22:26:06+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"description":"\u5173\u4e8e\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5c06Gitea\u5b89\u88c5\u5230Ubuntu\u4e0a"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86gitea%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e4%b8%8a%e3%80%82-6\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/28119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=28119"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/28119\/revisions"}],"predecessor-version":[{"id":83282,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/28119\/revisions\/83282"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=28119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=28119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=28119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}