ARL灯塔搭建

ARL灯塔搭建

1
yum -y update
1
yum install -y yum-utils device-mapper-persistent-data lvm2
1
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
1
yum list docker-ce --showduplicates | sort -r
1
yum install -y docker-ce
1
2
3
4
docker version #查看版本
systemctl start docker  #启动docker
systemctl enable docker  #开机自启docker
systemctl status docker  #docker运行状态
1
2
3
sudo curl -L https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose #添加可执行权限
docker-compose --version #测试是否安装成功

1
sudo yum install -y git

1
2
3
4
5
git clone https://github.com/TophantTechnology/ARL #可能需要挂梯子
cd ARL/docker/
docker volume create arl_db
docker-compose pull
docker-compose up -d #启动

浏览器中访问https://ip:5003

默认账号密码为:admin / arlpass

灯塔默认无法扫描edu、org、gov网站

打开 /ARL/docker/config-docker.yaml,注释掉这三行

http://cdn.wutongliran.top/img/image-20240310201119006.png

打开 /ARL/app/config.py,删掉如图 # 和 列表里的内容

http://cdn.wutongliran.top/img/image-20240310204641412.png

打开 /ARL/app/config.yaml.example ,注释掉这三行

http://cdn.wutongliran.top/img/image-20240310205518838.png

输入 docker ps ,复制 arl_web 的 CONTAINER ID

http://cdn.wutongliran.top/img/image-20240310205828159.png

输入 docker exec -it [CONTAINER ID] /bin/bash

http://cdn.wutongliran.top/img/image-20240310210417315.png

cd /code/app ,将目录下的 config.yaml、config.py、config.yaml.example 这三个文件按之前的方法修改(vim不行就vi)

exit退出

重启灯塔

1
docker restart $(docker ps -q)