首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >strongSwan: /var/run/charon.vici文件不存在问题

strongSwan: /var/run/charon.vici文件不存在问题
EN

Stack Overflow用户
提问于 2017-10-11 14:50:10
回答 1查看 8.5K关注 0票数 1

我在VirtualBox中有一个UbuntuServer16.04VM,使用以下命令下载并安装了strongSwan:

代码语言:javascript
复制
sudo apt-get install gcc make libgmp3-dev build-essential

wget http://download.strongswan.org/strongswan-5.6.0.tar.bz2
tar xjvf strongswan-5.6.0.tar.bz2
cd strongswan-5.6.0

./configure --prefix=/usr --sysconfdir=/etc
sudo make
sudo make install

sudo make之后,它声明将安装vici插件:

代码语言:javascript
复制
strongSwan will be built with the following plugins
-----------------------------------------------------
libstrongswan: aes des rc2 sha2 sha1 md5 random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem fips-prf gmp curve25519 xcbc cmac hmac
libcharon:     attr kernel-netlink resolve socket-default stroke vici updown xauth-generic
libtnccs:     
libtpmtss:

但是在构建和安装swanctl --stats输出之后:

代码语言:javascript
复制
connecting to 'unix:///var/run/charon.vici' failed: No such file or directory
Error: connecting to 'default' URI failed: No such file or directory
strongSwan 5.6.0 swanctl

一切都是一步一步地完成,就像在strongSwan安装文档上一样。它不起作用的可能原因是什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-10-12 06:22:13

解决问题的方法是启动charon守护进程并启用强天鹅服务(因此,在重新启动之后,它将自动启动)。对于我的安装,我需要使用以下命令:

代码语言:javascript
复制
sudo /usr/libexec/ipsec/charon &
sudo systemctl enable strongswan.service

此外,我还将此选项添加到配置中,因为我在systemd中使用了Ubuntu 16.04:

sudo ./configure --prefix=/usr --sysconfdir=/etc --with-systemdsystemunitdir=/lib/systemd/system

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46691341

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档