在linux Server 中部署 Jekyll
在linux Server 中部署 Jekyll
- Login via SSH and update the system
1
ssh root@IP_Address -p Port_number
1
yum -y update
- Install Ruby
1
yum install ruby
1 2 3 4
ruby -v ruby 2.0.0p648 (2015-12-16) [x86_64-linux] gem -v 2.6.14
- Install Jekyll on CentOS 7
1
gem install jekyll
1 2
jekyll -v jekyll 3.8.0
- Create Jekyll blog
1
2
3
4
5
cd /opt/
jekyll new blog
cd blog/
bundle exec jekyll serve
1 2 3 4 5 6 7 8 9Configuration file: /opt/blog/_config.yml Source: /opt/blog/ Destination: /opt/blog/_site Incremental build: disabled. Enable with --incremental Generating... done in 0.342 seconds. Auto-regeneration: enabled for '/opt/blog' Server address: http://127.0.0.1:4000/ Server running... press ctrl-c to stop.The new Jekyll blog will be created and it accessible at http://127.0.0.1:4000 . You will be able to access it only from the localhost. If you want to make it publicly available, use the following command
1 jekyll serve --host IP_Address &
参考文档
How to install Jekyll on CentOS 7
解决SSH退出登陆后保持进程继续在后台运行
Tmux 使用教程
This post is licensed under
CC BY 4.0
by the author.