由于網(wǎng)絡(luò)問題,OpenStack官方文檔時常不能正常訪問或者加載速度非常慢,于是就想辦法把文檔下載到本地,這樣查看更加便捷。
URL=http://docs.openstack.org
NAMES=admin-guide arch-design networking-guide security-guide ops-guide image-guide ha-guide
VERSION=liberty
for NAME in ${NAMES[@]}
do
wget -r -p -np -k $URL/$NAME/
done
wget -r -p -np -k $URL/$VERSION/networking-guide/
常用選項
-r --recursive specify recursive download.
-k --convert-links make links in downloaded HTML point to local files.
-p --page-requisites get all images, etc. needed to display HTML page.
-np --no-parent don't ascend to the parent directory.
-nc 外斷點續(xù)傳
-o 日志