问题描述
在我开始之前的一些规范:
我在 Windows 10 电脑上运行,为我的虚拟机使用 VirtualBox v5.2。
我在做什么:
在我 vagrant ssh
进入我的机器后,如果我运行 mailcatcher
,我会得到以下输出:
Starting MailCatcher
==> smtp://127.0.0.1:1025
==> http://127.0.0.1:1080/
MailCatcher runs as a daemon by default. Go to the web interface to quit.
它似乎开始了,如果我运行 sudo lsof -nP -iTCP:1080 -sTCP:LISTEN
,我会得到这个:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mailcatch 2852 vagrant 10u IPv4 24203 0t0 TCP 127.0.0.1:1080 (LISTEN)
因此,从该输出中,我可以看到它很可能已启动并使用端口 1080。我在浏览器上导航到我的本地主机到端口 1080 (http://127.0.0.1:1080) 并遇到 this screen,如果我运行service mailcatcher status
,我明白了:
● mailcatcher.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
这让我很困惑。我还卸载并重新安装了 gem 以进行仔细检查,没有发生安装问题。如果我使用 cat /etc/systemd/system/mailcatcher.service
检查目录,我会收到“没有这样的文件或目录”响应。
接下来我要尝试什么来运行 mailcatcher?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)