aboutsummaryrefslogtreecommitdiff
path: root/documentation/content/zh-tw/articles/hubs/_index.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/content/zh-tw/articles/hubs/_index.adoc')
-rw-r--r--documentation/content/zh-tw/articles/hubs/_index.adoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/documentation/content/zh-tw/articles/hubs/_index.adoc b/documentation/content/zh-tw/articles/hubs/_index.adoc
index 5942ce32a7..c461be0051 100644
--- a/documentation/content/zh-tw/articles/hubs/_index.adoc
+++ b/documentation/content/zh-tw/articles/hubs/_index.adoc
@@ -143,7 +143,7 @@ The best way to mirror the FTP area is rsync. You can install the port package:n
一個需要mirror FreeBSD官網的指令如下:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://ftp4.de.FreeBSD.org/FreeBSD/ /pub/FreeBSD/
....
@@ -157,7 +157,7 @@ FreeBSD 網站應只能透過 rsync 指令來mirror.
一個 mirror FreeBSD 網站的指令應該看起像這樣:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://bit0.us-west.freebsd.org/FreeBSD-www-data/ /usr/local/www/
....
@@ -167,14 +167,14 @@ FreeBSD 網站應只能透過 rsync 指令來mirror.
由於對頻寬,儲存空間和管理的要求非常高,FreeBSD 計畫決定不允許公眾 mirror 套件. 對於擁有大量伺服主機的網站,建議為 man:pkg[8] 使用 HTTP proxy 快取可能會有所幫助。或者,您可以使用以下指令獲得套件與相依套件:
-[source,bash]
+[source,shell]
....
% pkg fetch -d -o /usr/local/mirror vim
....
一旦這些套件包被下載,就必須執行以下命令來產生套件庫數據:
-[source,bash]
+[source,shell]
....
% pkg repo /usr/local/mirror
....