Shadowsocks-libev使用AEAD加密时,系统开启后首次运行Shadowsocks-libev可能会出现如下字样的提示:

This system doesn't provide enough entropy to quickly generate high-quality random numbers
Installing the rng-utils/rng-tools or haveged packages may help.
On virtualized Linux environments, also consider using virtio-rng.
The service will not start until enough entropy has been collected.

原因也正如提示中所说,系统没有足够的熵,这时候可以通过安装rng-tools来解决这个问题
如果不安装rng-tools,等待一定的时间后,服务也可以正常运行,至于用还是不用,请自行取舍

安装rng-tools:

apt-get update
apt-get install rng-tools

编辑配置文件:

vi /etc/default/rng-tools

添加如下内容:

HRNGDEVICE=/dev/urandom

安装完成,rng-tools会在重新启动服务器后生效
重启服务器后,Shadowsocks-libev对应的提示便会消失,Shadowsocks-libev服务也会在系统启动后立即启动,不会再浪费时间去等待系统收集熵

标签: shadowsocks

添加新评论