我从MacPorts上安装并configuration了Mac上的nginx服务器 sudo port install nginx 遵循端口安装控制台的build议,为nginx创buildlaunchd启动项,然后启动服务器。 将nginx.conf重命名为nginx.conf ,并将mime.types.example重命名为mime.types 。 它工作正常,但我无法阻止它。 我尝试了sudo nginx -s stop ,但是这并不能阻止服务器,我仍然可以看到“Welcome to nginx!” 页面在我的浏览器上http://localhost/ ; 另外我还看到ps -e | grep nginx的nginx的master和worker进程 ps -e | grep nginx 。 在Mac上启动/停止nginx的最佳方式是什么? 顺便说一下,我已经添加了“守护进程”。 到nginx.conf中 – 按照各种资源的build议。
我不知道这是怎么发生的。 发行版是Scientific Linux 6.1,一切都设置为通过公钥执行validation。 然而,当sshd作为守护进程(service sshd start)运行时,它不接受公钥。 (要获得这段日志,我已经改变了sshd脚本来添加-ddd选项) debug1: trying public key file /root/.ssh/authorized_keys debug1: restore_uid: 0/0 debug1: temporarily_use_uid: 0/0 (e=0/0) debug1: trying public key file /root/.ssh/authorized_keys2 debug1: restore_uid: 0/0 Failed publickey for root from xxx.xxx.xxx.xxx port xxxxx ssh2 debug3: mm_answer_keyallowed: key 0x7f266e1a8840 is not allowed debug3: mm_request_send entering: type 22 debug3: mm_request_receive entering debug2: […]
我在syslog,rsyslog和syslog-ng中有点困惑。 从哪里可以得到syslog()的源代码? rsyslog和rsyslogd有什么不同吗?
Supervisord不带有init脚本,也不指示如何自动启动它, 重新启动后。 我试过一些用户提供的/etc/init.d脚本,但都失败了。 什么是首选的解决scheme?
我有一个服务foo目前开始在运行级别3和以上。 我该如何阻止它,而不使用update-rc.d foo stop 3 . (如果我理解正确的话)会在每次运行级别更改时closures服务。 (即,如果我在运行级别1并启用了foo ,那么当我改变到运行级别3时 ,它将被禁用,不是?) 运行Debian GNU / Linux Lenny。