Middleman 在运行';中间商&x27;什么意思?

Middleman 在运行';中间商&x27;什么意思?,middleman,Middleman,我遇到了这个中间人,并试图用bundle exec middleman server运行它,但在终端中得到了它 The source :rubygems is deprecated because HTTP requests are insecure. Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not. == The Middleman is load

我遇到了这个中间人,并试图用
bundle exec middleman server运行它,但在终端中得到了它

The source :rubygems is deprecated because HTTP requests are insecure. Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.

== The Middleman is loading
== Port 4567 is unavailable. Either close the instance of Middleman already running on 4567 or start this Middleman on a new port with: --port=4568

提前谢谢

第一个错误是关于GEM文件中的源声明

它可能说

来源:rubygems

在顶端。把这行改成

源代码“https://rubygems.org“

或使用
http://rubygems.org
如果您没有安装OpenSSL

第二个错误意味着端口4567上已经有其他东西在运行,这是默认的中间人端口。也许你有另一个中间商安装正在运行。确保关闭该端口或使用显式端口启动middleman(当然也必须是免费的),如:

bundle exec middleman--端口5000

如果找不到正在运行的middleman实例,请尝试搜索可能正在使用ps ax | grep ruby
端口的ruby进程。这将为您提供进程ID,然后您可以使用该ID终止进程:
kill
。希望有帮助

我在。。。 如果您这样做:

lsof-i:
在此处输入您的端口;就我而言,是4567“

上面的,将输出一个PID#,如果您在下面的

kill-9


您将能够重新启动服务器。

关闭已在4567上运行的Middleman实例,或在新端口上启动此Middleman,并使用--port=4568