我的云服务器是Ubuntu 14,在我安装jekyll并像sudo jekyll serve --port 80 --host 'my server ip address'
一样启动它之后,它会显示如下错误:
Configuration file: /home/ubuntu/mydomain.com/_config.yml
Deprecation: You appear to have pagination turned on, but you haven't included the `jekyll-paginate` gem. Ensure you have `gems: [jekyll-paginate]` in your configuration file.
Source: /home/ubuntu/mydomain.com
Destination: /home/ubuntu/mydomain.com/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 1.177 seconds.
Deprecation: You appear to have pagination turned on, but you haven't included the `jekyll-paginate` gem. Ensure you have `gems: [jekyll-paginate]` in your configuration file.
Auto-regeneration: enabled for '/home/ubuntu/mydomain.com'
Configuration file: /home/ubuntu/mydomain.com/_config.yml
jekyll 3.1.2 | Error: Cannot assign requested address - bind(2) for 'host:port'
那么我该如何解决这个问题。
我想定期将我的github页面拉到云端服务器,我发现有人这样做了
crontab -e
*/2 * * * * cd ~/mydomain.com/; git pull >> /tmp/github_blog_pull_record.log 2>&1;
我不知道*/2 * * * * cd ~/mydomain.com/; git pull >> /tmp/github_blog_pull_record.log 2>&1;
是什么意思?
答案 0 :(得分:0)
问题1 :您已经有一个使用80端口的进程,请尝试更改jekyll serve
端口sudo jekyll serve --port 81 --host 'my server ip address'
。注意:为什么用sudo运行jekyll?根本没有安全感!
问题2 :*/2 * * * * cd ~/mydomain.com/; ...
是一个cron task,每天都会在02:00为您提供github存储库。
注意:一次提出一个问题最好。