ghost@bboysoul:/etc/init.d$ sudo service ufw status ● ufw.service - Uncomplicated firewall Loaded: loaded (/lib/systemd/system/ufw.service; enabled; vendor preset: enabled) Active: active (exited) since Sat 2017-09-16 15:24:12 CST; 29min ago Main PID: 337 (code=exited, status=0/SUCCESS) CGroup: /system.slice/ufw.service
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
ghost@bboysoul:/var/www/ghost$ ghost install ✔ Checking system Node.js version ✔ Checking current folder permissions ✔ Checking operating system ✔ Checking MySQL is installed ✔ Checking for latest Ghost version ✔ Setting up install directory ✔ Downloading and installing Ghost v1.8.6 ✔ Finishing install process ? Enter your blog URL: http://localhost:2368 ? Enter your MySQL hostname: localhost ? Enter your MySQL username: root ? Enter your MySQL password: [hidden] ? Enter your Ghost database name: ghost ✔ Configuring Ghost ✔ Setting up instance Running sudo command: chown -R ghost:ghost /var/www/ghost/content [sudo] password for ghost: ✔ Setting up "ghost" system user ? Do you wish to set up Nginx? No ℹ Setting up Nginx [skipped] Task ssl depends on the 'nginx' stage, which was skipped. ℹ Setting up SSL [skipped] ? Do you wish to set up "ghost" mysql user? No ℹ Setting up "ghost" mysql user [skipped] ? Do you wish to set up Systemd? Yes ✔ Creating systemd service file at /var/www/ghost/system/files/ghost_localhost.service Running sudo command: ln -sf /var/www/ghost/system/files/ghost_localhost.service /lib/systemd/system/ghost_localhost.service Running sudo command: systemctl daemon-reload ✔ Setting up Systemd ✔ Running database migrations ? Do you want to start Ghost? Yes ✔ Validating config Running sudo command: systemctl start ghost_localhost ✔ Starting Ghost You can access your blog at http://localhost:2368/
Ghost uses direct mail by default To set up an alternative email method read our docs at https://docs.ghost.org/docs/mail-config
这样的话你在本地浏览器就可以打开自己的ghost网站,如果访问不了请耐心等一下,因为程序的启动可能会比较慢,如果你要在别的机器上访问自己的博客。那么修改它的配置文件,就像下面 vim config.production.json