我有一个Ubuntu服务器,它试图连接到远程MongoDB服务器。当我试图通过以下方法连接到远程MongoDB服务器时:
mongo -u user -p pass yourdb.com:27017
它返回以下错误:
2018-06-04T20:41:36.667-0400 W NETWORK [thread1] Failed to connect
to 35.170.208.181:27017 after 5000ms milliseconds, giving up.
2018-06-04T20:41:36.667-0400 E QUERY [thread1] Error: cou
为新用户在远程机器(Ubuntu)上成功安装Apache2使用sudo apt-get update sudo apt-get install apache2检查apache是否正在新用户的远程机器上运行。
studentthree@vagrant-ubuntu-trusty-32:/$ service apache2 status
* apache2 is running
已检查在设置防火墙时是否打开了端口80。
studentthree@vagrant-ubuntu-trusty-32:/$ sudo ufw status
Status: active
To Action From
我正在尝试在WSL2中使用GUI。我遵循了这里的指令,最初运行良好。重新启动我的笔记本之后,我打开Ubuntu终端并输入:
sudo /etc/init.d/xrdp start
在“远程”计算机上启动xrdp。然后我检查了状态:
service xrdp status
* xrdp-sesman is running
* xrdp in running
因此,当我转到Windows桌面并连接到localhost:3390时,我会得到以下错误:
1) Remote access to the server is not enables
2) The remote computer is tu