[還不會搭建博客嗎?]centos7系統部署hexo博客新手入門-進階,看這一篇就夠了

      網友投稿 730 2022-05-30

      @TOC

      *本文說明 請大家務必查看

      目錄結構:重點是簡潔版、錯誤記錄詳情查看自我總結

      本文有兩個版本,詳細版、簡潔版。

      前者適合新手,后者適合老手**(方便大家查找,從而過濾掉某些步驟,節約時間成本)** 所以大家按需查看喲。

      簡潔版:包含所有步驟,以及命令的執行過程(適合新手)

      簡潔版:只包含命令(適合有一定熟練度的人)

      前言

      大家有羨慕過別人的博客網站嗎?自己最初接觸電腦的時候,看見一個朋友的博客就很是羨慕。

      今天就教大家如何搭建自己的博客網站,非常簡單,小白輕松上手。

      首先介紹一下主角:Hexo

      什么是 Hexo?

      Hexo 是一個快速、簡潔且高效的博客框架。Hexo 使用 Markdown(或其他渲染引擎)解析文章,在幾秒內,即可利用靚麗的主題生成靜態網頁。

      Markdown是一種輕量級標記語言,排版語法簡潔 ,不到半小時就能完全掌握。這里就不做過多介紹了。

      環境準備

      配置yum源,不會的看這里:(35條消息) linux+centos7 配置本地yum源_YG-刻骨銘心的博客-CSDN博客_為什么要配置本地yum源

      詳細版

      入門:搭建步驟

      [root@localhost ~]# rm -rf /etc/yum.repos.d/* #刪除本地repo文件 [root@localhost ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo ## 下載阿里云centos7鏡像源 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2523 100 2523 0 0 5701 0 --:--:-- --:--:-- --:--:-- 5721 [root@localhost ~]# yum clean all ; yum makecache #清理緩存、建立緩存 [root@localhost ~]# yum install -y git # yum源 下載安裝git Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:1.8.3.1-23.el7_8 will b

      node官網-Index of /dist/ (nodejs.org) # (Node.js 版本需不低于 10.13,建議使用 Node.js 12.0 及以上版本)

      [root@localhost ~]# yum install wget -y # 下載安裝wget Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================ Package Arch [root@localhost ~]# wget https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.xz # 下載 node.js 軟件壓縮包 --2022-04-14 20:32:21-- https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.xz Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2606:4700:10::6814:162e, ... Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 21941244 (21M) [application/x-xz] Saving to: ‘node-v16.14.2-linux-x64.tar.xz’ 100%[======================================================================================>] 21,941,244 950KB/s in 21s 2022-04-14 20:32:44 (999 KB/s) - ‘node-v16.14.2-linux-x64.tar.xz’ saved [21941244/21941244] [root@localhost ~]# tar -vxf node-v16.14.2-linux-x64.tar.xz # 解壓node.js軟件壓縮軟件包 node-v16.14.2-linux-x64/ node-v16.14.2-linux-x64/bin/ [root@localhost ~]# mv node-v16.14.2-linux-x64 /usr/local/bin # 移動node到/usr/local/bin目錄下 [root@localhost ~]# cd /usr/local/bin/ # 進入/usr/local/bin [root@localhost bin]# ll # 查看當前目錄下的文件、目錄 total 0 drwxr-xr-x. 6 1001 1001 108 Mar 18 05:52 node-v16.14.2-linux-x64 [root@localhost bin]# mv node-v16.14.2-linux-x64/ node #修改node-v16.14.2-linux-x64 名稱為 node [root@localhost bin]# vi /etc/profile # vi修改配置文件 添加node.j2軟件環境變量 export NODE_HOEM=/usr/local/bin/node # 設置node軟件家目錄的環境變量 export PATH=$PATH:$NODE_HOEM/bin # 設置node軟件到bin目錄下環境變量 實現bin目錄下命令的全局使用 [root@localhost bin]# source /etc/profile # 使配置文件生效 [root@localhost bin]# node -v # 查看node版本 說明安裝配置成功 v16.14.2 [root@localhost bin]# npm -v # 查看npm版本 說明安裝配置成功 8.5.0

      [root@localhost bin]# cd # 切換到/root目錄 [root@localhost ~]# npm install -g cnpm --registry=https://registry.npm.taobao.org # 安裝cnpm模塊 、設置國內taobao倉庫地址 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 added 372 packages in 37s 3 packages are looking for funding run `npm fund` for details npm notice npm notice New minor version of npm available! 8.5.0 -> 8.6.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.6.0 npm notice Run npm install -g npm@8.6.0 to update! npm notice [root@localhost ~]# cnpm -v # 查看cnpm模塊版本 cnpm@7.1.1 (/usr/local/bin/node/lib/node_modules/cnpm/lib/parse_argv.js) npm@6.14.16 (/usr/local/bin/node/lib/node_modules/cnpm/node_modules/npm/lib/npm.js) node@16.14.2 (/usr/local/bin/node/bin/node) npminstall@5.8.0 (/usr/local/bin/node/lib/node_modules/cnpm/node_modules/npminstall/lib/index.js) prefix=/usr/local/bin/node linux x64 3.10.0-862.el7.x86_64 registry=https://registry.npmmirror.com [root@localhost ~]# cnpm install -g hexo-cli # 安裝hexo博客 Downloading hexo-cli to /usr/local/bin/node/lib/node_modules/hexo-cli_tmp Copying /usr/local/bin/node/lib/node_modules/hexo-cli_tmp/_hexo-cli@4.3.0@hexo-cli to /usr/local/bin/node/lib/node_modules/hexo-cli Installing hexo-cli's dependencies to /usr/local/bin/node/lib/node_modules/hexo-cli/node_modules [1/10] abbrev@^1.1.1 installed at node_modules/_abbrev@1.1.1@abbrev [2/10] bluebird@^3.5.5 installed at node_modules/_bluebird@3.7.2@bluebird [3/10] tildify@^2.0.0 installed at node_modules/_tildify@2.0.0@tildify [4/10] command-exists@^1.2.8 installed at node_modules/_command-exists@1.2.9@command-exists [5/10] chalk@^4.0.0 installed at node_modules/_chalk@4.1.2@chalk [6/10] hexo-log@^2.0.0 installed at node_modules/_hexo-log@2.0.0@hexo-log [7/10] minimist@^1.2.5 installed at node_modules/_minimist@1.2.6@minimist [8/10] resolve@^1.11.0 installed at node_modules/_resolve@1.22.0@resolve [9/10] hexo-fs@^3.0.1 installed at node_modules/_hexo-fs@3.1.0@hexo-fs [10/10] hexo-util@^2.0.0 installed at node_modules/_hexo-util@2.6.0@hexo-util All packages installed (58 packages installed from npm registry, used 3s(network 3s), speed 622.85KB/s, json 58(276.43KB), tarball 1.73MB, manifests cache hit 0, etag hit 0 / miss 0) [hexo-cli@4.3.0] link /usr/local/bin/node/bin/hexo@ -> /usr/local/bin/node/lib/node_modules/hexo-cli/bin/hexo [root@localhost ~]# mkdir test # 創建test目錄 [root@localhost ~]# cd test/ # 進入 test目錄 [root@localhost test]# hexo init # hexo初始化當前為工作目錄 INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.git INFO Install dependencies INFO Start blogging with Hexo! [root@localhost ~]# npm install # npm install命令根據package.json 文件的 dependencies 字段配置安裝所有的依賴包 [root@localhost ~]# systemctl stop firewalld ;systemctl disable firewalld # 停止、關閉防火墻 [root@localhost ~]# setenforce 0 # 臨時關閉selinux [root@localhost test]# hexo server # 啟動hexo博客 前臺啟動 INFO Validating config INFO Start processing INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop. [root@localhost test]# nohup hexo server & # 啟動hexo博客 后臺啟動 按兩次enter健 [root@loalhost ~]# jobs # 列出系統作業號和名稱 [1]+ Running nohup hexo server & (wd: ~/hexo/blog) [root@loalhost ~]# kill %1 # 結束作業號為1的進程

      瀏覽器訪問主機 ip:4000 如下圖所示:

      進階:hexo基本操作

      [root@localhost test]# hexo new "My New Post---test hello" # 新建一篇文章 INFO Validating config INFO Created: ~/test/source/_posts/My-New-Post-test-hello.md [root@localhost test]# echo "hello world --- this is a test" >> ~/test/source/_posts/My-New-Post-test-hello.md # 在My-New-Post-test-hello.md文件最后追加hello world --- this is a test [root@localhost test]# hexo clean # 清除緩存文件 INFO Validating config INFO Deleted database. [root@localhost test]# hexo generate # 生成靜態文件 INFO Validating config INFO Start processing INFO Files loaded in 234 ms (node:2270) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) (node:2270) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:2270) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency (node:2270) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (node:2270) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:2270) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency INFO Generated: archives/index.html INFO Generated: archives/2022/index.html INFO Generated: archives/2022/04/index.html INFO Generated: index.html INFO Generated: fancybox/jquery.fancybox.min.css INFO Generated: js/script.js INFO Generated: css/fonts/fontawesome-webfont.woff2 INFO Generated: css/style.css INFO Generated: fancybox/jquery.fancybox.min.js INFO Generated: js/jquery-3.4.1.min.js INFO Generated: css/fonts/FontAwesome.otf INFO Generated: css/fonts/fontawesome-webfont.eot INFO Generated: css/fonts/fontawesome-webfont.ttf INFO Generated: css/fonts/fontawesome-webfont.woff INFO Generated: css/images/banner.jpg INFO Generated: 2022/04/14/My-New-Post-test-hello/index.html INFO Generated: css/fonts/fontawesome-webfont.svg INFO Generated: 2022/04/14/hello-world/index.html INFO 18 files generated in 704 ms

      進入瀏覽器頁面 按F5 刷新頁面:

      [root@localhost test]# cd /root/test # 進入 /root/test目錄 [root@localhost test]# git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia # git克?。ㄏ螺d)hexo-theme-yilia.git項目放入themes/yilia目錄下 Cloning into 'themes/yilia'... remote: Enumerating objects: 2037, done. remote: Counting objects: 100% (1/1), done. remote: Total 2037 (delta 0), reused 0 (delta 0), pack-reused 2036 Receiving objects: 100% (2037/2037), 10.53 MiB | 1.40 MiB/s, done. Resolving deltas: 100% (1079/1079), done. [root@localhost test]# vi _config.yml # 修改博客配置文件 #theme: landscape # 注釋字段 theme: yilia # 添加字段 [root@localhost test]# hexo server INFO Validating config INFO Start processing INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop. (node:2222) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) (node:2222) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:2222) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency (node:2222) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (node:2222) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:2222) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency ^CINFO Have a nice day [root@localhost test]# hexo server #ctrl+c停止之前的前臺進程,之后重啟hexo服務 INFO Validating config INFO Start processing WARN Trying to "create" _posts/My-New-Post-test-hello.md, but the file already exists! INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.

      進入瀏覽器頁面 按F5 刷新頁面,主題修改成功:

      [root@localhost test]# ssh-keygen # 生成密鑰:私鑰和公鑰 Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: SHA256:2U+9DP3wcgJKZb3So8yoOWhsiQ8BQR/HL8F7RKO/30w root@localhost.localdomain The key's randomart image is: +---[RSA 2048]----+ | .o .o..o | | o o+... . | | . . .= o . | | . o.oo o + . | | . oS o = B | | . o B * * | | .o o. o E = +| | ..* .+ + + | | +. o.. o | +----[SHA256]-----+ [root@localhost test]# cat /root/.ssh/id_rsa.pub # 查看公鑰文件內容 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDgxY4+7mlK4gVaadT6WPVua/gSslYoIYbF9FQmZmsTZ4oxZzpTiDndH05xdN1LJ8qs4Xm56IuDKAdUWYe6kqEtNVkoqYB3SCTMdaTYN6IqQMOFcFzhsI4k/FMsN3D3mDmaJ3gTvUDUHsuu27i9r5FcpZqbPEN78tJ2FkodQgbqp8z/fTJ8r2aI5CUVMDgQ6ZzKGaKgHF/oLEiNncyPHq6TMw/kZgLCA0s3wpfe/jGx9EtxgRPTj69ZR/31IAOs6sG20M75+KZelSSOzg9RoyMn3Y/zXPq10yZr0VrGm/UwGdom7K/haSS3tWL96tgLgmi1sj1MFOfLLdifQf4vbumn root@localhost.localdomain

      賬號自行創建

      在github上添加我們的ssh公鑰地址**(/root/.ssh/id_rsa.pub)**:

      復制粘貼我們的ssh公鑰文件(**/root/.ssh/id_rsa.pub)**的內容:

      在github上創建一個倉庫存放我們本地的代碼文件:

      倉庫名稱格式 <你的 GitHub 用戶名>.github.io 等會我們的站點會通過這個名稱實現域名訪問

      如圖所示:

      這里務必使用ssh地址否則會報錯:具體信息查看本文檔的 錯誤標題 選項

      [root@localhost test]# git init # 當前目錄建立一個git代碼庫 Reinitialized existing Git repository in /root/test/.git/ [root@localhost test]# git add . # 當前目錄代碼推送到暫存空間 [root@localhost test]# git commit -m "first commit" # 提交到資源庫 [master e162d0b] first commit 1 file changed, 2 insertions(+), 1 deletion(-) [root@localhost test]# git remote add origin git@github.com:yjcadmin/yjcadmin.github.io.git [root@localhost test]# git push -u origin master # 推送代碼到目的倉庫 Counting objects: 24, done. Delta compression using up to 2 threads. Compressing objects: 100% (19/19), done. Writing objects: 100% (24/24), 49.82 KiB | 0 bytes/s, done. Total 24 (delta 4), reused 0 (delta 0) remote: Resolving deltas: 100% (4/4), done. To git@github.com:yjcadmin/yjcadmin.github.io.git * [new branch] master -> master Branch master set up to track remote branch master from origin.

      F5刷新頁面:

      [root@localhost test]# cnpm install --save hexo-deployer-git # 安裝hexo-deployer-git模塊 ? Installed 1 packages ? Linked 52 latest versions ? Run 0 scripts ? All packages installed (53 packages installed from npm registry, used 8s(network 8s), speed 396.04KB/s, json 53(289.51KB), tarball 2.86MB, manifests cache hit 0, etag hit 0 / miss 0) [root@localhost test]# vi _config.yml deploy: type: git repo: git@github.com:yjcadmin/yjcadmin.github.io.git [root@localhost test]# hexo clean && hexo deploy # 清除緩存、遠程部署 INFO Validating config INFO Deleted database. INFO Deleted public folder. INFO Validating config INFO Start processing INFO Files loaded in 292 ms INFO Generated: archives/index.html INFO Generated: archives/2022/index.html INFO Generated: archives/2022/04/index.html INFO Generated: index.html INFO Generated: fonts/default-skin.b257fa.svg INFO Generated: img/default-skin.png INFO Generated: fonts/iconfont.16acc2.ttf INFO Generated: fonts/iconfont.45d7ee.svg INFO Generated: fonts/iconfont.8c627f.woff INFO Generated: fonts/iconfont.b322fa.eot INFO Generated: fonts/tooltip.4004ff.svg INFO Generated: img/preloader.gif INFO Generated: img/scrollbar_arrow.png INFO Generated: main.0cf68a.css INFO Generated: main.0cf68a.js INFO Generated: mobile.992cbe.js INFO Generated: slider.e37972.js INFO Generated: 2022/04/14/My-New-Post-test-hello/index.html INFO Generated: 2022/04/14/hello-world/index.html INFO 19 files generated in 84 ms INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder... INFO Copying files from extend dirs... # On branch master nothing to commit, working directory clean Counting objects: 34, done. Delta compression using up to 2 threads. Compressing objects: 100% (27/27), done. Writing objects: 100% (34/34), 151.02 KiB | 0 bytes/s, done. Total 34 (delta 6), reused 0 (delta 0) remote: Resolving deltas: 100% (6/6), done. To git@github.com:yjcadmin/yjcadmin.github.io.git + fccc4b8...50105b6 HEAD -> master (forced update) Branch master set up to track remote branch master from git@github.com:yjcadmin/yjcadmin.github.io.git. INFO Deploy done: git

      等待120秒F5刷新

      卸載Hexo

      npm uninstall hexo-cli -g # 卸載 hexo博客

      再找到文件夾中的blog,手動刪除即可。

      錯誤

      這是自己遇到的錯誤信息以及解決方案(經供參考)

      問題1

      安裝Hexo(標題)hexo init 之后

      [還不會搭建博客嗎?]centos7系統部署hexo博客新手入門-進階,看這一篇就夠了

      4高嚴重性漏洞

      [root@master blog]# npm install up to date, audited 248 packages in 2s 18 packages are looking for funding run `npm fund` for details 4 high severity vulnerabilities To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details.

      審計修復——強制

      [root@master blog]# npm audit fix --force npm WARN using --force Recommended protections disabled. npm WARN audit Updating hexo-renderer-ejs to 1.0.0,which is a SemVer major change. removed 3 packages, changed 2 packages, and audited 245 packages in 2s 18 packages are looking for funding run `npm fund` for details found 0 vulnerabilities [root@master blog]# npm install up to date, audited 245 packages in 1s 18 packages are looking for funding run `npm fund` for details found 0 vulnerabilities

      問題2

      github域名訪問(標題),推送本地倉庫時

      密碼驗證的支持在2021年8月13日被刪除。使用個人訪問令牌(ssh密鑰)。

      remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authentication failed for 'https://github.com/yjcadmin/yjcadmin.github.io.git/'

      配置github免密登錄(ssh免密)

      問題3

      安裝node(標題),解壓node-v16.14.2-linux-x64.tar.xz時

      不是gzip格式

      [root@master ~]# tar -vzxf node-v16.14.2-linux-x64.tar.xz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now

      -z 參數 :通過gzip指令壓縮/解壓縮文件

      所以不使用-z參數

      tar -vxf node-v16.14.2-linux-x64.tar.xz

      自我總結

      看到這里肯定是英俊瀟灑、溫柔大方的帥哥、美女?。。?/p>

      目錄結構是昨晚(2022/4/14)想到de包含:介紹、詳細版、簡潔版、卸載、錯誤記錄。特點是包含簡潔版、錯誤記錄

      這樣設置目錄結構我認為就是一個在線電子筆記本,在忘掉某些技術的時候,可以在各大平臺搜索 小葉的技術Logs (微信工作號、CSDN、簡書、稀土掘金、segmentfault思否、博客源)查看簡潔版可以讓你快速回憶起整篇文章的內容。大大節約時間成本。

      之后個人的所有博客都將會使用這種方式. 所以你或許需要關注這莫一個在線電子筆記本。 小葉的技術Logs

      最后十分感謝大家能看到最后?。。?/p>

      簡潔版

      入門:搭建步驟

      [root@localhost ~]# rm -rf /etc/yum.repos.d/* [root@localhost ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo [root@localhost ~]# yum clean all ; yum makecache [root@localhost ~]# yum install -y git

      [root@localhost ~]# yum install wget -y [root@localhost ~]# wget https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.xz [root@localhost ~]# tar -vxf node-v16.14.2-linux-x64.tar.xz [root@localhost ~]# mv node-v16.14.2-linux-x64 /usr/local/bin [root@localhost ~]# cd /usr/local/bin/ [root@localhost bin]# mv node-v16.14.2-linux-x64/ node [root@localhost bin]# vi /etc/profile export NODE_HOEM=/usr/local/bin/node export PATH=$PATH:$NODE_HOEM/bin [root@localhost bin]# source /etc/profile [root@localhost bin]# node -v v16.14.2 [root@localhost bin]# npm -v 8.5.0

      [root@localhost bin]# cd [root@localhost ~]# npm install -g cnpm --registry=https://registry.npm.taobao.org [root@localhost ~]# cnpm -v [root@localhost ~]# cnpm install -g hexo-cli [root@localhost ~]# mkdir test [root@localhost ~]# cd test/ [root@localhost test]# hexo init [root@localhost ~]# systemctl stop firewalld [root@localhost ~]# setenforce 0 [root@localhost test]# hexo server

      進階:hexo基本操作

      [root@localhost test]# hexo new "My New Post---test hello" [root@localhost test]# echo "hello world --- this is a test" >> ~/test/source/_posts/My-New-Post-test-hello.md [root@localhost test]# hexo clean [root@localhost test]# hexo g

      [root@localhost test]# cd /root/test [root@localhost test]# git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia [root@localhost test]# vi _config.yml #theme: landscape # 注釋字段 theme: yilia # 添加字段 [root@localhost test]# hexo server #重啟服務 [root@localhost test]# hexo server #重啟服務

      [root@localhost test]# ssh-keygen [root@localhost test]# cat /root/.ssh/id_rsa.pub ## github設置ssh免密 ## github創建自己 github用戶名.github.io 格式命名的倉庫,格式不能改變 [root@localhost test]# git init [root@localhost test]# git add . [root@localhost test]# git commit -m "first commit" [root@localhost test]# git remote add origin git@github.com:yjcadmin/yjcadmin.github.io.git [root@localhost test]# git push -u origin master [root@localhost test]# cnpm install --save hexo-deployer-git [root@localhost test]# vi _config.yml deploy: type: git repo: git@github.com:yjcadmin/yjcadmin.github.io.git [root@localhost test]# hexo clean && hexo deploy

      卸載Hexo

      npm uninstall hexo-cli -g

      CentOS Hexo Linux 云計算

      版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。

      上一篇:excel把工作表另存為單獨文檔的方法(如何把excel中的一個工作表單獨保存為excel文件)
      下一篇:ThinkPHP數據庫查詢之Db類深度解析(thinkphp db類)
      相關文章
      偷自拍亚洲视频在线观看99| 亚洲欧美日韩中文字幕一区二区三区 | 在线观看国产一区亚洲bd| 亚洲精品一卡2卡3卡三卡四卡| 亚洲国产精品久久久天堂 | 亚洲AV无码国产精品色午友在线| 亚洲精品无码久久久久去q | 亚洲av无码久久忘忧草| 亚洲一区二区三区夜色| 亚洲ⅴ国产v天堂a无码二区| 久久久久久亚洲精品中文字幕| 黑人精品videos亚洲人| 亚洲国产精品无码久久久不卡 | 亚洲午夜久久久久妓女影院 | 亚洲人成7777| 亚洲成人激情小说| 激情综合亚洲色婷婷五月| 亚洲AV中文无码乱人伦下载 | 久久精品国产亚洲av四虎| MM1313亚洲精品无码久久| 77777亚洲午夜久久多喷| 亚洲天堂视频在线观看| 久久精品国产69国产精品亚洲| 中文字幕亚洲一区| 亚洲精品V欧洲精品V日韩精品| 亚洲精品综合久久| 国产亚洲美女精品久久久2020| 精品亚洲一区二区三区在线观看 | 亚洲无线观看国产精品| 亚洲一区二区三区无码中文字幕| 国产aⅴ无码专区亚洲av| 亚洲人成在线播放网站岛国| 亚洲高清无在码在线电影不卡| 亚洲国产精品成人综合色在线婷婷 | 亚洲精品韩国美女在线| 亚洲免费在线视频观看| 国产99在线|亚洲| 精品国产日韩亚洲一区在线| 亚洲国产成人精品91久久久| 国产gv天堂亚洲国产gv刚刚碰| 久久亚洲精品中文字幕无码|