Ubuntu18.04安裝Ghost
安裝Nginx/Mysql/Nodejs
參見基礎安裝
複製程式碼
建立新使用者
$ adduser peng //Create a new user and follow prompts
$ usermod -aG sudo peng //Add user to superuser group to unlock admin privileges
$ su peng //Then log in as the new user
複製程式碼
更新apt
$ sudo apt-get update //Update package lists
$ sudo apt-get upgrade //Update installed packages
複製程式碼
安裝Ghost-CLI
$ sudo npm install ghost-cli@latest -g
複製程式碼
安裝Ghost
$ sudo mkdir -p /var/www/ghost
$ sudo chown peng:peng /var/www/ghost/
$ sudo chmod 775 /var/www/ghost
$ cd /var/www/ghost
$ ghost install
複製程式碼