2016-03-31 50 views
0

我的雲服務器是Ubuntu的14,我安裝傑基爾並啓動它像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

問題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存儲庫。

注意:最好每次問一個問題。

+0

我重新啓動運行jekyll服務器的服務器,它顯示'找不到'jekyll'(> = 0),...從/ usr/local/bin/jekyll:22:在

'真的安裝了jekyll –