use GHOST
learn too much command of Linux
for example:
adduser
userdel
modified user password : passwd username
Ghost use failed,fuck。 need another way to try on centOS;
solve the problem
I place my website files in the vps room where the dictionary's name is called /usr/share/nginx/www/
You can use cd /usr/share/nginx/www/
,
then use git clone [something your website resource]
finally,to modified the nginx.conf ,just like this ---> vim /etc/nginx/site-available/default
the configuration of default is:
\# You may add here your
server {
listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
root /usr/share/nginx/www/website;
index first.html index.htm;
# Make site accessible from http://localhost/
#server_name localhost;
server_name www.komolei.cn ;
location / {
# Firstattempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
}
now,you can preview my website
plan,stand a flag
learn nginx ,and finish configuration file
网友评论