前言:
danted是非常好用的socks 5代理工具,主页提供centos和debian的安装脚本,安装简单方便,还支持docker部署,下面是github主页:
https://github.com/Lozy/danted
安装遇到的问题及解决方法:
1、缺少gcc,安装即可(安装过程中遇见软件包冲突, 执行yum clean all && yum update):
yum install -y gcc-c++
2、swap没有分配空间(这个常见):
创建分区文件, 大小1g,这个只占用磁盘
dd if=/dev/zero of=/swapfile bs=1k count=1024000
生成swap 文件系统
mkswap /swapfile
激活swap 文件
swapon /swapfile
当安装完后,停用并删除
swapoff /swapfile
rm /swapfile
参考的文章:
gcc编译出现internal compiler error: Killed (program cc1plus)https://blog.youkuaiyun.com/zangba9624/article/details/118678416【问题解决】C++: fatal error: Killed signal terminated program cc1plus
https://blog.youkuaiyun.com/weixin_44796670/article/details/121234446