Switch to your regular user, or create a new user with regular account privileges and use this user to run 'ghost install'. For more information, see https://ghost.org/docs/install/ubuntu/#create-a-new-user-.
✔ Checking system Node.js version ✔ Checking current folder permissions ✔ Checking memory availability ✔ Checking for latest Ghost version ✔ Setting up install directory ✔ Downloading and installing Ghost v3.8.0 ✔ Finishing install process ✔ Configuring Ghost ✔ Setting up instance ✔ Starting Ghost
Ghost uses direct mail by default. To set up an alternative email method read our docs at https://ghost.org/docs/concepts/config/#mail
# For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf;
include /etc/nginx/mime.types; default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory. # See http://nginx.org/en/docs/ngx_core_module.html#include # for more information. include /etc/nginx/conf.d/*.conf;
Ghost 默认使用 SQLite3 数据库,数据存储在 Ghost目录/content/data 中,这里,我们为它部署 MySQL 数据库。
1 2 3 4 5 6 7 8 9 10
# 登录 MySQL mysql -u root -p # 新建数据库 create database ghost; # 为 ghost 数据库创建用户 ghost, 密码 passwd grant all on ghost.* to 'ghost'@'localhost' identified by 'passwd'; # 刷新权限相关表 flush privileges; # 登出 exit;