Centos6はGitBook環境をセットアップします

Centos6のyumソースを設定します(設定する必要はありません)##

[ 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

ノードと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 ~]# 

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

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

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

gitbookserveの特定のポートを開始します##

[ 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はGitBook環境をセットアップします
Centos6はGitBook環境をセットアップします
centos6.9rabbitmqがSSLを設定
CentOS 7はNTP、SSHサービスをセットアップします
自動更新を設定するためのCentOS8の完全な手順
CentOS7でGitBookを展開する
Hadoop環境の構築(centos7)
Centos7.6ビルドLNMP環境
ランプ(centos7)設置ランプ環境
Centos6.9インストールnpm環境
Centos7はnodejs環境を構成します
CentOS7GPU環境を構成する
CentOS7ビルドLNMP環境
MacOSでVirtualboxを使用してCentOSネットワークをセットアップする
[CentOS環境の展開] CentOSでのJava7 / Java8の展開
CentOS7でApache仮想ホストを設定する方法
CentOS 7インストールJAVA環境(JDK 1.8)
SkyWalking研究ノート(CentOS環境)
CentOS7.2はNode.js開発環境を展開します
CentOSインストールnginx + tomcat + java + mysqlオペレーティング環境
Ubuntu14.04でMasterlessPuppet環境をセットアップする方法
DockerのCentOS環境インストール
CentOSでGitサーバーをセットアップするための詳細な手順
Centos7はpython3仮想環境を展開します
Centos7.4環境インストールランプ-php7.0チュートリアル
Centosで静的IPを設定する
CentOS8でNginxサーバー構成ブロックを設定する方法
CentOS7はJava言語開発環境を構成します
CentOSセットsshキーログインオリジナル
CentOS7はRuby言語開発環境を構成します
CentOS7はphp言語開発環境を構成します
CentOS7はL(A | N)MP環境をコンパイルしてインストールします
LinuxでNginx環境を構築する(CentOS)
centos7でpython3環境を構成し、
centos7でのFFmpeg環境の展開記録
CentOS6.8中国語/英語環境切り替えチュートリアル図
CentOS7はPython言語開発環境を構成します
CentosでのPPTP環境の展開記録
centos6.5環境でのTomcat構成JMX