Amazon ec2 无法连接到ec2实例上的ghost服务器
我正在ec2实例上安装基本的Ghost服务器,到目前为止,我可以通过Amazon ec2 无法连接到ec2实例上的ghost服务器,amazon-ec2,ghost-blog,Amazon Ec2,Ghost Blog,我正在ec2实例上安装基本的Ghost服务器,到目前为止,我可以通过npm start运行Ghost服务器,并且我可以看到Ghost服务器已启动并正在运行: Ghost is running... Listening on 127.0.0.1:2368 Url configured as: http://54.187.25.187/ Ctrl+C to shut down 这里是ghost配置config.js: // ### Development **(default)** deve
npm start
运行Ghost服务器,并且我可以看到Ghost服务器已启动并正在运行:
Ghost is running...
Listening on 127.0.0.1:2368
Url configured as: http://54.187.25.187/
Ctrl+C to shut down
这里是ghost配置config.js
:
// ### Development **(default)**
development: {
// The url to use when providing links to the site, E.g. in RSS and email.
url: 'http://54.187.25.187/',
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-dev.db')
},
debug: false
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
}
最后,当我键入http://54.187.25.187:2368
在浏览器上。我非常欣赏关于如何正确设置ghost的指导原则
编辑:问题已经解决,是EC2 SG问题,在我将端口设置为打开后,端口仍然关闭。对于Amazon EC2,我们发现您需要将端口更改为0.0.0.0
您是否打开了EC2安全组上的端口?是的,所有TCP端口都已打开。您是否打开了防火墙上的端口,而不仅仅是VM安全组中的端口?多年前就应该关闭这个问题,但最后还是EC2 SG问题。