前置准备
请先把 pominglee 的镜像站偷回来: 取得 pominglee 镜像站
或是从校外把镜像站偷回来: 取得校外镜像站
开始自干
0. 进入 root 权限
su -
1. 安装 apache2 伺服器套件
apt-get install -y apache2
2. 输入以下指令确认伺服器已经启用 (绿色 active 表示正常运作)
/etc/init.d/apache2 status
3. 编辑 apache2.conf 档案
nano /etc/apache2/apache2.conf
4. 找到 <Directory /var/www/> 这个段落结束处新增以下段落
<Directory /home/ftp/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
5. 编辑 000-default.conf 档案
nano /etc/apache2/sites-available/000-default.conf
6. 找到 DocumentRoot /var/www/html 处
改成
DocumentRoot /home/ftp
7. 重新启动 apache2 伺服器
/etc/init.d/apache2 restart
8. 编辑 sources.list
nano /etc/apt/sources.list
9. 在最上面加入以下的镜像站
deb http://127.0.0.1/debian/ buster main contrib non-free
10. 输入指令确定可以自干镜像站
apt-get update
Latest posts by SHXJ (see all)
- 受保护的内容: NAS 版 Mathbot 管理网站与 Linebot 启动方法 - 2024 年 11 月 15 日
- Realtime 啥鬼的 - 2021 年 6 月 15 日
- nodejs 数学游戏 - 2021 年 6 月 8 日



在〈架设自干镜像站〉中有 1 则留言