Centos6 set up GitBook environment

Set the yum source of Centos6 (you don’t need to set it)

[ root@centos6 ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[ root@centos6 ~]# rpm --import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6[root@centos6 ~]# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
[ root@centos6 ~]# rpm --import/etc/pki/rpm-gpg/RPM-GPG-KEY-remi

Install node and npm

[ root@centos6 ~]# curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -[root@centos6 ~]# yum install -y nodejs
[ root@centos6 ~]# node -v
v5.12.0[root@centos6 ~]# npm -v
3.8.6[ root@centos6 ~]# 

Install gitbook

[ root@centos6 ~]# npm install -g gitbook-cli
[ root@centos6 ~]# gitbook -V
CLI version:2.3.2
Installing GitBook 3.2.3
[email protected]../tmp/tmp-2780Rfk87ZPCz1OC/node_modules/gitbook
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]([email protected], [email protected])
├── [email protected]([email protected])
├── [email protected]([email protected])
├── [email protected]([email protected], [email protected])
├── [email protected]([email protected], [email protected])
├── [email protected]([email protected])
├── [email protected]
├── [email protected]([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]([email protected])
├── [email protected]
├── [email protected]([email protected], [email protected])
├── [email protected]([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]([email protected])
├── [email protected]([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]([email protected], [email protected])
├── [email protected]
├── [email protected]([email protected])
├── [email protected]([email protected], [email protected],[email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]([email protected], [email protected], [email protected])
├── [email protected]([email protected])
├── [email protected]([email protected])
├── [email protected]([email protected], [email protected], [email protected], [email protected])
├── [email protected]([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]([email protected], [email protected], [email protected])
├── [email protected]([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected]
GitBook version:3.2.3[root@centos6 ~]# 

Initialize Gitbook

[ root@centos6 gitbook]# gitbook init
warn: no summary file inthis book 
info: create README.md 
info: create SUMMARY.md 
info: initialization is finished 
[ root@centos6 gitbook]# 
[ root@centos6 gitbook]# ls
README.md  SUMMARY.md
[ root@centos6 gitbook]# 

Start Gitbook service##

[ root@centos6 gitbook]# gitbook serve
Live reload server started on port:35729
Press CTRL+C to quit ...

info:7 plugins are installed 
info: loading plugin "livereload"... OK 
info: loading plugin "highlight"... OK 
info: loading plugin "search"... OK 
info: loading plugin "lunr"... OK 
info: loading plugin "sharing"... OK 
info: loading plugin "fontsettings"... OK 
info: loading plugin "theme-default"... OK 
info: found 1 pages 
info: found 0 asset files 
info:>> generation finished with success in0.5s ! 

Starting server ...
Serving book on http://localhost:4000

Start gitbook serve specific port##

[ root@centos6 gitbook]# gitbook serve --port 4001
Live reload server started on port:35729
Press CTRL+C to quit ...

info:7 plugins are installed 
info: loading plugin "livereload"... OK 
info: loading plugin "highlight"... OK 
info: loading plugin "search"... OK 
info: loading plugin "lunr"... OK 
info: loading plugin "sharing"... OK 
info: loading plugin "fontsettings"... OK 
info: loading plugin "theme-default"... OK 
info: found 1 pages 
info: found 0 asset files 
info:>> generation finished with success in1.1s ! 

Starting server ...
Serving book on http://localhost:4001

Recommended Posts

Centos7 set up GitBook environment
Centos6 set up GitBook environment
centos6.9 rabbitmq set up SSL
CentOS 7 set up NTP, SSH service
CentOS 8 complete steps to set up automatic updates
Deploy GitBook under CentOS7
Hadoop environment construction (centos7)
Centos7.6 build LNMP environment
lamp (centos7) installation lamp environment
Centos6.9 install npm environment
Centos7 configure nodejs environment
Configure CentOS7 GPU environment
CentOS 7 build LNMP environment
Set up a CentOS network with Virtualbox on MacOS
[CentOS environment deployment] Java7/Java8 deployment under CentOS
How to set up an Apache virtual host on CentOS 7
CentOS 7 install JAVA environment (JDK 1.8)
SkyWalking study notes (CentOS environment)
CentOS 7.2 deploy Node.js development environment
CentOS install nginx+tomcat+java+mysql operating environment
How to set up a Masterless Puppet environment on Ubuntu 14.04
CentOS environment installation of Docker
Detailed steps to set up a Git server on CentOS
Centos7 deploys python3 virtual environment
Centos7.4 environment installation lamp-php7.0 tutorial
Set static IP under Centos
How to set up the Nginx server configuration block on CentOS 8
CentOS 7 configure Java language development environment
CentOS set ssh key login original
CentOS 7 configure Ruby language development environment
CentOS 7 configure php language development environment
CentOS7 compile and install L(A|N)MP environment
Build Nginx environment on Linux (CentOS)
Configure python3 environment on centos7 and
FFmpeg environment deployment record under centos7
CentOS6.8 Chinese/English environment switching tutorial illustration
CentOS 7 configure Python language development environment
PPTP environment deployment record under Centos
Tomcat configuration JMX in centos 6.5 environment