我有一个运行Ubuntu的AWS EC2实例。
我已经使用这些命令在github上安装了一个Parse Server:
$ npm install -g parse-server mongodb-runner
$ mongodb-runner start
$ parse-server --appId APPLICATION_ID --masterKey MASTER_KEY
当我启动服务器时,我得到了这个输出:
appId: APPLICATION_ID
masterKey: ***REDACTED***
port: 1337
mountPath: /parse
maxUploadSize: 20mb
serverURL: http://localhost:1337/parse
parse-server running on http://localhost:1337/parse
我已经打开了另一个终端,我已经使用sudo netstat -plnt
检查了我的端口上正在侦听的服务
这就是结果:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 937/sshd
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 924/mongod
tcp6 0 0 :::22 :::* LISTEN 937/sshd
如您所见,端口1337上没有运行Parse服务器。
我能做些什么来解决它?也许它的安装有问题吗?
答案 0 :(得分:0)
我刚刚制作并连接到服务器。显然,无论是倾听还是不倾听都没有关系。