Skip to content

Sådan implementeres Ghost CMS på Rocky Linux 9

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

I denne vejledning vil vi gennemgå, hvordan du kan implementere Ghost CMS, en populær platform til blogging og publicering, på en Rocky Linux 9-server. Denne installation kan være særligt nyttig for brugere af en VPS-server.

Forudsætninger

  • Rocky Linux 9 installeret på din server.
  • Root-adgang eller sudo-rettigheder.
  • En aktiv internetforbindelse.
  • Node.js og npm installeret.
  • MySQL eller SQLite som database.

Trin 1: Opdater systemet

Først skal du opdatere dit system for at sikre, at alle pakker er opdaterede:

sudo dnf update -y

Trin 2: Installer Node.js og npm

Installer NodeSource repository for at få den nyeste version af Node.js:

curl -sL https://rpm.nodesource.com/setup_16.x | sudo bash -
sudo dnf install nodejs -y

Trin 3: Installer Ghost CLI

Installer Ghost CLI globalt ved hjælp af npm:

sudo npm install -g ghost-cli@latest

Trin 4: Opret en mappe til Ghost

Opret en mappe til din Ghost-installation:

mkdir -p /var/www/ghost
cd /var/www/ghost

Trin 5: Installér Ghost

Kør Ghost-installationskommandoen:

ghost install

Trin 6: Konfigurer webserveren (Nginx)

Opret en ny Nginx-konfigurationsfil til Ghost:

Visual overview of Sådan implementeres Ghost CMS på Rocky Linux 9
Visual overview: Sådan implementeres Ghost CMS på Rocky Linux 9
sudo nano /etc/nginx/conf.d/ghost.conf

Tilføj følgende indhold til konfigurationsfilen:

server {
        listen 80;
        server_name your-domain.com;

        location / {
            proxy_pass http://127.0.0.1:2368;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }
    }

Trin 7: Test Nginx-konfigurationen

Kør følgende kommando for at teste Nginx-konfigurationen:

sudo nginx -t

Trin 8: Genstart Nginx

Genstart Nginx for at anvende ændringerne:

sudo systemctl restart nginx

Afslutning

Dine Ghost CMS-applikationer er nu tilgængelige via din webbrowser. Naviger til:

http://your-domain.com/

Denne installation kan være særligt nyttig for dem, der ønsker at hoste deres egen blog eller publiceringsplatform fra en VPS-server.

 

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Key topics covered in Sådan implementeres Ghost CMS på Rocky Linux 9
Key topics covered in this NetCloud24 guide.

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Practical checklist for Sådan implementeres Ghost CMS på Rocky Linux 9
Practical checklist for applying the guidance in this article.

Windows RDS (Remote Desktop Services)

Windows VPS

Sådan implementeres Ghost CMS på Rocky Linux 9
Sådan implementeres Ghost CMS på Rocky Linux 9
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.