teddysun / across

Across the Great Wall we can reach every corner in the world
https://teddysun.com
Apache License 2.0
4.97k stars 2.22k forks source link

wireguard 脚本在CentOS8 下编译和repository两种方法均失败 #52

Closed ghost closed 4 years ago

ghost commented 4 years ago
[Sat Dec  7 09:45:07 CST 2019] systemctl start wg-quick@wg0
Job for wg-quick@wg0.service failed because the control process exited with error code.
See "systemctl status wg-quick@wg0.service" and "journalctl -xe" for details.
[Sat Dec  7 09:45:07 CST 2019] Execution command (systemctl start wg-quick@wg0) failed, please check it and try again.
[root@bogon ~]# journalctl -xe
Dec 07 09:44:29 bogon systemd[1]: Starting man-db-cache-update.service...
-- Subject: Unit man-db-cache-update.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit man-db-cache-update.service has begun starting up.
Dec 07 09:44:32 bogon systemd[1]: Started man-db-cache-update.service.
-- Subject: Unit man-db-cache-update.service has finished start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit man-db-cache-update.service has finished starting up.
-- 
-- The start-up result is RESULT.
Dec 07 09:45:07 bogon systemd[1]: Reloading.
Dec 07 09:45:07 bogon systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
-- Subject: Unit wg-quick@wg0.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit wg-quick@wg0.service has begun starting up.
Dec 07 09:45:07 bogon wg-quick[25551]: [#] ip link add wg0 type wireguard
Dec 07 09:45:07 bogon wg-quick[25551]: RTNETLINK answers: Operation not supported
Dec 07 09:45:07 bogon wg-quick[25551]: Unable to access interface: Protocol not supported
Dec 07 09:45:07 bogon wg-quick[25551]: [#] ip link delete dev wg0
Dec 07 09:45:07 bogon wg-quick[25551]: Cannot find device "wg0"
Dec 07 09:45:07 bogon systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE
Dec 07 09:45:07 bogon systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
Dec 07 09:45:07 bogon systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.
-- Subject: Unit wg-quick@wg0.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit wg-quick@wg0.service has failed.
-- 

我用官网 的方法安装失败,后来就想用大佬的脚本测试,一看果然也是挂的。CentOS8自带内核感觉跑不动。

teddysun commented 4 years ago

你需要将自带内核升级到最新版,然后重启一下,然后再用脚本来安装。