Last update at :2024-06-21,Edit by888u
Regarding the installation of the Ghost light blog program, there are still many tutorials on the Internet, but it is basically difficult to find a more complete tutorial. If netizens are not very familiar with the Linux environment, it may be difficult to install it. Last week, Snail had toyed with the system based on CentOS, and then installed Nginx/MYSQL/Node.js step by step. It took a long time.
PS: If we are just tossing, we can play with Ghost. If we really want to write logs for the website, we should use a normal CMS program. Today’s VPS is not very expensive. Don’t care about the so-called saving of resources, but it will be a waste of time. Own.
In this article, Snail shares a one-click command to quickly deploy a Ghost light blog based on Ubuntu and CentOS environments. It only takes 2 steps. Isn’t it very attractive to you?
First, install Ghost with one click package
wget https://soft.laozuo.org/ghost/installghost_ubuntu_centos.shsh installghost_ubuntu_centos.sh
Log in to SSH and then execute the above script.
After losing the script, all we can do is wait, and then it will be OK when we see the above interface.
Second, Ghost binds domain name
In fact, after the first step of installation is completed, we can see the deployed GHOST blog by entering the IP address in the browser.
We only need to modify the domain name that needs to be bound in the configuration file. The premise is that our domain name is resolved to the current VPS IP address, and then modified in the path file below.
/var/www/ghost/config.js
After modifying and saving, we can use the domain name we bound in the browser to see if it can be opened. After the installation is completed, we need to log in to http://website/ghost for the first time and log in to the website backend. For the first time, we need to set the blog information and password.
Set the information of our blog, login email and password, and the deployment will be completed after clicking. Then we can write our own articles in the background.
In summary, through one-click script installation, we can quickly deploy the Ghost light blog program, which is much easier than step-by-step deployment. PS: It’s so easy to come up with this stuff. It’s better to use normal procedures when making a website.
Recommended site search: domain name history, registration system, Shanghai virtual host, vps virtual host, server abroad, dynamic dial-up vps host, 6 yuan a year cloud server, Hong Kong server rental, registered domain name query, Korean independent server, < /p>
发表评论