← Tüm kılavuzlar
Ghost
Ghost is a fast, open-source publishing platform for blogs and newsletters; its officially recommended self-hosted install path is Ghost-CLI on Ubuntu with Node.js, MySQL, and Nginx.
Bu kılavuz, yukarıda bağlantısı verilen Ghost kendi resmi belgelerinden derlenmiştir — dağıtım ve proje sürümleri zamanla değiştiğinden, bu komutları bir üretim sunucusunda çalıştırmadan önce tam paket/sürüm adlarını her zaman orada kontrol edin.
1Install Node.js
sudo apt-get updatesudo apt-get install -y ca-certificates curl gnupgsudo mkdir -p /etc/apt/keyringscurl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpgNODE_MAJOR=22echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.listsudo apt-get updatesudo apt-get install nodejs -y2Install Ghost-CLI and MySQL
sudo npm install ghost-cli@latest -gsudo apt-get install mysql-server -yGhost's docs warn against using a system user named 'ghost' — it conflicts with Ghost-CLI's own conventions.
3Secure MySQL
sudo mysqlALTER USER 'root'@'localhost' IDENTIFIED WITH 'caching_sha2_password' BY 'your-new-root-password';FLUSH PRIVILEGES;exit4Create the site directory
sudo mkdir -p /var/www/sitenamesudo chown user:user /var/www/sitenamesudo chmod 775 /var/www/sitenamecd /var/www/sitename5Install Ghost
ghost-cli installs Ghost, creates the MySQL user/database, configures Nginx as a reverse proxy, and can request a free Let's Encrypt certificate for you interactively.
ghost install6Create your owner account
Visit https://<your-domain>/ghost to create your account as the site owner and start publishing.