我安装了Tun使用:
modprobe tun
然后做:
lsmod | grep tun tun 83840 0
请如何使Tun在重新启动时运行?
这是写在Hamachi网站上:
...Then add tun to the list of modules by using your favorite text editor and Create /etc/modules-load.d/tun.conf #Load tun module at boot. tun
但是这个文件夹在我的/ etc中不存在
将“modprobe tun”行添加到/etc/rc.local中是否明智?
有一个名为/ etc / modules的文件吗? 如果是的话,你可以编辑在那里添加tun
对于CentOS,请查看http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-kernel-modules-persistant.html
执行这两个命令将创buildrc.modules命令,以在启动时加载tun模块
echo modprobe tun >> /etc/rc.modules chmod +x /etc/rc.modules