0

我正在跟踪 ec2 实例上的基本 Ghost 服务器安装,到目前为止,我可以通过运行 ghost 服务器npm start,我可以看到 ghost 服务器已启动并正在运行:

Ghost is running... 
Listening on 127.0.0.1:2368 
Url configured as: http://54.187.25.187/ 
Ctrl+C to shut down

这是幽灵配置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 问题,在我将它们设置为打开后端口仍然关闭。

4

1 回答 1

2

对于 Amazon EC2,我们发现您需要将端口更改为 0.0.0.0

http://www.howtoinstallghost.com/how-to-setup-an-amazon-ec2-instance-to-host-ghost-for-free-self-install/

于 2014-04-07T15:04:15.677 回答