admin管理员组

文章数量:1646315

严格按照官方文档进行搭建 https://ghost/docs/install/ubuntu/

adduser ghost-elegant

sudo mkdir -p /var/www/elegant
sudo chown ghost-elegant:ghost-elegant /var/www/elegant
sudo chmod 775 /var/www/elegant

// 开始安装
ghost-elegant@iZwz9cx35156qjuf3z1zuyZ:/var/www/elegant$ ghost install
✔ Checking system Node.js version
✔ Checking logged in user
✔ Checking current folder permissions
✔ Checking system compatibility
✔ Checking for a MySQL installation
✔ Checking memory availability
✔ Checking free space
✔ Checking for latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v3.36.0
✔ Finishing install process
? Enter your blog URL: https://elegant
? Enter your MySQL hostname: localhost
? Enter your MySQL username: root
? Enter your MySQL password: [hidden]
? Enter your Ghost database name: elegant_prod
✔ Configuring Ghost
✔ Setting up instance
+ sudo chown -R ghost:ghost /var/www/elegant/content
✔ Setting up "ghost" system user
? Do you wish to set up "ghost" mysql user? Yes
✔ Setting up "ghost" mysql user
? Do you wish to set up Nginx? Yes
✔ Creating nginx config file at /var/www/elegant/system/files/elegant.conf
+ sudo ln -sf /var/www/elegant/system/files/www.elegant.conf /etc/nginx/sites-available/elegant.conf
+ sudo ln -sf /etc/nginx/sites-available/www.elegant.conf /etc/nginx/sites-enabled/elegant.conf
+ sudo nginx -s reload
✔ Setting up Nginx
? Do you wish to set up SSL? Yes
? Enter your email (For SSL Certificate) info@elegant
+ sudo /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --domain elegant --webroot /var/www/elegant/system/nginx-root --reloadcmd "nginx -s reload" --accountemail info@elegant
✔ Creating ssl config file at /var/www/elegant/system/files/www.elegant-ssl.conf
+ sudo ln -sf /var/www/elegant/system/files/elegant-ssl.conf /etc/nginx/sites-available/elegant-ssl.conf
+ sudo ln -sf /etc/nginx/sites-availab

本文标签: 环境ghostUbuntu