漏的是屋 迟的是船
又怎怪 雨雨风风
看未来 一步步来了~~~仅仅为了记录,记下消逝和即将消逝的点点滴滴,在回首的时候,能够知道,我曾经来过……
$ sudo apt-get install nginx
/etc/nginx/sites-available 创建一个 ghost.conf 文件。server {
listen 80;
server_name example.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:2368;
}
}
server_name 的值改为你的域名。sites-enabled 文件夹下:$ sudo ln -s /etc/nginx/sites-available/ghost.conf /etc/nginx/sites-enabled/ghost.conf
$ sudo service nginx restart


申请到了office live服务的帐号 Office Live Domain
用了美国的地址邮编电话申请到了office live服务的帐号,那张废品龙卡终于有一点点用处了,当作身份验证码了,不过不知道所说的扣去一美元然后再返还的事情有没有发生。 由此申请到了我的第一个国际域名haovmail.com(一片空白,现在还懒得去修改),以及免费的500兆主机空间以及每月10G的网络带宽,,对于免费的服务来说真的还不错。 还有就是可以在haovmail.com下注册25个邮箱帐号,可以自恋的想要什么用户名用什么用户名了,--
512MB RAM 20GB SSD Disk 新加坡1号机房 Ubuntu14.04 x32系统
sudo apt-get update
sudo apt-get upgrade
sudo aptitude install build-essential zip
wget http://nodejs.org/dist/latest/node-v0.10.32.tar.gz
tar -zxvf node-v0.10.32.tar.gz
cd node-v0.10.32
./configure
make
sudo make install
/var/www ):sudo mkdir -p /var/www
cd /var/www
sudo wget https://ghost.org/zip/ghost-latest.zip
sudo unzip ghost-latest.zip
sudo npm install
/var/www 目录下运行 npm start 启动Ghost。然后可以访问http://128.199.174.200:2368 查看ghost是否运行正常。/var/www 下的config.js文件(Windows下可以使用WindSCP登录进服务器目录)。将 host 更改为自己服务器IP地址128.199.174.200,server port改为80。sudo nano /etc/init/ghost.conf
#/etc/init/ghost.conf
description "Ghost Blog"
author "Your Name"
# Start the service after everything loaded
start on (local-filesystems and net-device-up IFACE=eth0)
stop on shutdown
# Automatically restart service
respawn
respawn limit 99 5
script
# Navigate to your app directory
cd /var/www
# Run the script with Node.js and output to a log
export NODE_ENV=production
exec /usr/local/bin/npm start /var/www 2>&1 >> /var/log/ghost.log
end script
sudo service ghost start
sudo service ghost stop
sudo service ghost restart
sudo service ghost status
init 都能够自动启动一个新的Ghost实例,从而保证Ghost一直运行。sudo dpkg-reconfigure tzdata
Asia/Singapore 或者其它 UTC+8:00 的时区即可。sudo service ghost start

<header class="main-header {{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}"> 删掉no-cover,防止调用no-cover css。date显示Mon Oct 20 03:43:35 EDT 2014,美国东部时间。这样时差的问题就明确了。使用命令root@zhaohao:~# sudo dpkg-reconfigure tzdata设置时区为Asia/Shanghai,时间问题部分解决。{{date format="dddd, YYYY-MM-DD, HH:MM"}}结果本博客显示的 分钟 数字同实际发布时间仍旧相差几十分钟。甚是怪异。
Determine the best location for your Linode.《https://www.linode.com/speedtest》
It's best to choose the facility that is closest to you and your clients.
A closer facility will generally provide less latency and faster throughput.
| Facility | Hostname | Test Download |
|---|---|---|
| Tokyo | speedtest.tokyo.linode.com | 100MB-tokyo.bin |
| London | speedtest.london.linode.com | 100MB-london.bin |
| US East | speedtest.newark.linode.com | 100MB-newark.bin |
| US South | speedtest.atlanta.linode.com | 100MB-atlanta.bin |
| US Central | speedtest.dallas.linode.com | 100MB-dallas.bin |
| US West | speedtest.fremont.linode.com | 100MB-fremont.bin |