[ 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
[ 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 ~]#
[ 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 ~]#
[ 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]#
[ 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
[ 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