我的云服务器是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'那么我该如何解决这个问题呢?
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;是什么意思?
发布于 2016-03-31 23:08:33
问题1:您已经有一个使用80端口的进程,请尝试更改您的jekyll serve端口sudo jekyll serve --port 81 --host 'my server ip address'。注意:为什么用sudo运行jekyll?一点都不安全!
问题2:*/2 * * * * cd ~/mydomain.com/; ...是一个cron task,它会在每天的2:00拉你的github存储库。
注意:最好一次问一个问题。
https://stackoverflow.com/questions/36336434
复制相似问题