假设我有一个部件foo有版本2.1,2.2,2.2.1和3.0可用。假设我已经安装了 version 2.1。我如何告诉 brew 获取该2.x行中的最新版本而不是 3.0?
有没有办法列出所有可用的版本?
有没有办法限制升级到最新版本2.x?
我的本地网络上有一台装有 OS X 10.8.4 的 mac-mini(2009 年秋季),我在端口 5000(或任何其他端口)上运行一个简单的 http 服务器。
我已经关闭了防火墙。我可以通过 ssh 连接到 mac 并对其进行 ping 操作。
我可以使用连接到 http 服务器
curl 127.0.0.1:5000
...I get the data...
Run Code Online (Sandbox Code Playgroud)
但是如果我使用本地路由器分配给这台 mac 的 IP,则无法连接到该端口。例如:
$ curl -v 192.168.178.26:5000
* About to connect() to 192.168.178.26 port 5000 (#0)
* Trying 192.168.178.26...
* Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
Run Code Online (Sandbox Code Playgroud)
这不适用于本地机器,也不适用于远程机器。
但是这有效:
$ ssh 192.168.178.26
Last login: ....
Run Code Online (Sandbox Code Playgroud)
防火墙关闭:
$ defaults read /usr/libexec/ApplicationFirewall/com.apple.alf.plist firewallunload
0
Run Code Online (Sandbox Code Playgroud)
和 …
我在哪里可以找到山狮 10.8.2 上的防火墙日志?
我遇到拒绝连接的问题,我想看看防火墙是否阻止我连接。