首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用Homebrew安装dnsmasq

用Homebrew安装dnsmasq
EN

Stack Overflow用户
提问于 2013-05-18 21:12:18
回答 1查看 8.2K关注 0票数 5

我用国产装了dnsmasq。所有的安装似乎都很好。

安装后我按照说明..。

cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist

问题: dnsmasq似乎不起作用。当我跑步时:

sudo dnsmasq

我得到:

dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use

当我跑步时:

sudo launchctl stop /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist

我得到:

launchctl stop error: No such process

有什么想法吗?是怎么回事,或者如何判断它是否正确安装和运行?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-05-18 23:41:53

launchctl stop使用作业标签,而不是路径(与launchctl的stoplist命令相同)。假设标签是homebrew.mxcl.dnsmasq,您可以使用sudo launchctl list homebrew.mxcl.dnsmasq检查守护进程的状态(如果它有PID列表,它正在运行),如果有必要,可以使用sudo launchctl stop homebrew.mxcl.dnsmasq停止它。如果这不是正确的标签,请在/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist中签入Label键后面的字符串。

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

https://stackoverflow.com/questions/16629003

复制
相关文章

相似问题

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