daed编译部署
Youtube视频
相关链接
安装编译工具
Centos/Fedora
# basic
sudo yum -y update && yum -y install epel-release git make clang
# golang
sudo yum -y install golang
# nodejs
update-crypto-policies --set DEFAULT:SHA1
sudo yum install https://rpm.nodesource.com/pub_21.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y
sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
update-crypto-policies --set DEFAULT
sudo npm install -g pnpm
Debian/Ubuntu
# basic
sudo apt update
sudo apt -y install git make clang
# golang
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt -y install golang-go
# nodejs
sudo apt install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_21.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt update
sudo apt -y install nodejs
sudo npm install -g pnpm
验证
go version
node -v
npm -v
pnpm -v
拉取源码
git clone https://github.com/daeuniverse/daed-revived-next.git /opt/daed
cd /opt/daed
git submodule update --init --recursive
dae-wing
编译
cd /opt/daed/wing
go mod tidy
make deps
go build -v -o dae-wing
mv dae-wing /usr/bin/
配置系统服务
新增
dae-wing
服务文件cat <<EOF> /etc/systemd/system/dae-wing.service [Unit] Description=dae-wing Service Documentation=https://github.com/daeuniverse/dae-wing After=network-online.target docker.service systemd-sysctl.service Wants=network-online.target [Service] Type=simple User=root LimitNPROC=512 LimitNOFILE=1048576 ExecStart=/usr/bin/dae-wing run -c /etc/dae-wing/ Restart=on-abnormal [Install] WantedBy=multi-user.target EOF
刷新服务
systemctl daemon-reload
服务管理
启动+自启
systemctl enable dae-wing.service --now
启动
systemctl start dae-wing.service
停止
systemctl stop dae-wing.service
下载Geo数据库文件
wget -O /etc/dae-wing/geoip.dat https://github.com/v2rayA/dist-v2ray-rules-dat/raw/master/geoip.dat
wget -O /etc/dae-wing/geosite.dat https://github.com/v2rayA/dist-v2ray-rules-dat/raw/master/geosite.dat
daed
配置daed环境变量(可选)
若需要修改dae-wing端点以及daed监听的地址和端口,可配置如下环境变量文件
cd /opt/daed/
cat <<EOF> .env.local
# 指定dae-wing API端点地址
WING_API_URL=http://<your_server_ip>:2023
# daed监听的主机地址
HOSTNAME=0.0.0.0
# daed监听的端口
PORT=3000
EOF
编译
cd /opt/daed
pnpm install
pnpm run build
配置系统服务
新增
daed.service
服务文件cat <<EOF> /etc/systemd/system/daed.service [Unit] Description=daed Service Documentation=https://github.com/daeuniverse/daed-revived-next After=network.target [Service] WorkingDirectory=/opt/daed ExecStart=/usr/bin/pnpm start StandardOutput=file:/var/log/daed_stdout.log StandardError=file:/var/log/daed_stderr.log ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target EOF
刷新服务
systemctl daemon-reload
服务管理
启动+自启
systemctl enable daed.service --now
启动
systemctl start daed.service
停止
systemctl stop daed.service
18 条评论
执行sudo npm install pnpm -g需要设置源否则会报错,设为:pnpm config set registry https://registry.npmmirror.com
以下是修改为8888端口后的提示:root@ubuntu:/opt/daed# cat /var/log/daed_stderr.log
(node:1653) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
t async setupFsCheck (/opt/daed/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/lib/router-utils/filesystem.js:145:19)
at async initialize (/opt/daed/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/lib/router-server.js:54:23)
at async Server. (/opt/daed/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/lib/start-server.js:236:36) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/opt/daed/.next/BUILD_ID'
}
.2.0_react@18.2.0/node_modules/next/dist/bin/next:150:54
at async main (/opt/daed/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/bin/next:150:5) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '::',
port: 8888
}
看报错信息好像是尝试监听ipv6的端口失败,我没遇到过这个问题,可能是你的系统的某些服务或者其他原因影响。抱歉,目前我无法重现该问题。
@elden ,按照你的教程编译了大鹅daed。但是有提示端口冲突。不管改了什么端口,都提示我所修改后的这个端口被占用。提示如下,向elden求助:root@ubuntu:/data# cat /var/log/daed_stderr.log
⨯ Failed to start server
Error: listen EADDRINUSE: address already in use :::3000
at Server.setupListenHandle [as _listen2] (node:net:1872:16)
at listenInCluster (node:net:1920:12)
at Server.listen (node:net:2008:7)
at /opt/daed/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/lib/start-server.js:268:16
at new Promise ()
at startServer (/opt/daed/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/lib/start-server.js:181:11)
at nextStart (/opt/daed/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/cli/next-start.js:50:40)
at /opt/daed/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/bin/next:150:54
at async main (/opt/daed/node_modules/.pnpm/next@14.0.3_@babel+core@7.23.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/bin/next:150:5) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '::',
port: 3000
}
49赞了
我要视频点赞,你们却都在这点赞
我换了两个账号,两边都点了,这周,每天上来看看OωO
辛苦了
昨天都打开了,今天咋又关了
昨天看40,今天看怎么只有39了,看来到50还要几天
我都给你点了 十几个了啊,密码私发给我好了OωO
还差十个
打开吧 点赞够了
不够,才35个赞
从你的第一集追到第四集,我的愿望是想在我的电视盒子armbian上吃大鹅,不知可否实现,我装的是这个https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_jammy_save_2023.12/Armbian_24.2.0_amlogic_s905l3a_jammy_5.15.142_server_2023.12.08.img.gz,大鹅说需要armbian系统安装这个https://github.com/daeuniverse/armbian-btf-kernel,可惜这里没有对应我这个系统和硬件的版本, 我是否可以自己编译,我没有编译经验。但是我特别想在这个设备上吃大鹅,请大神帮判断一下能否实现,如果不能实现我就断了这个念想。如果可以请指点一下。
在Armbian 操作系统上使用dae(大鹅) 搭建透明代理:https://www.hicairo.com/post/77.html在Armbian
这个网址有解决方法,可以一试
mzz最近很忙,估计没戏
没有armbian设备,无法测试。你可以到https://github.com/daeuniverse/armbian-btf-kernel仓库提issue,support你的设备