<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-150150277079671940</id><updated>2024-11-08T07:32:48.817-08:00</updated><category term="千方百計"/><category term="FreeBSD"/><category term="Lighttpd"/><category term="SoftEther"/><category term="VPN"/><category term="Cloud"/><category term="Google"/><category term="Linux"/><category term="PHP"/><category term="SSL"/><category term="AMP"/><category term="GitLab"/><category term="Go"/><category term="Linx"/><category term="Nginx"/><category term="Prpxy"/><category term="SEO"/><category term="Sendmail"/><category term="WordPress"/><category term="shell"/><category term="utils"/><title type='text'>與惡魔握手</title><subtitle type='html'>FreeBSD、Linux系統玩樂探究，Web技法研討的私藏。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/posts/summary'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/summary'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/summary?start-index=26&amp;max-results=25'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>127</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-6963845276681151481</id><published>2019-11-23T09:00:00.002-08:00</published><updated>2019-11-23T09:07:09.059-08:00</updated><title type='text'>在MAC（LINUX）利用指令手動檢測USB硬碟讀寫速度</title><summary type="text">買了2個不同廠牌的32G USB外接碟，但我很好奇到底USB 3.0 的速度到底有多快？標榜的廣告內容也該來核實一下。



不用下載或安裝任何工具，利用MAC/LINUX內定指令dd，即可為我們測試磁碟讀寫速度。

廠牌1：S32(比較貴20%價格）

廠牌2：BANQ



測試寫入200M大小的檔案10次

time dd if=/dev/random of=/Volumes/S32/test1.img bs=200m count=10 &amp;amp;&amp;amp; time dd if=/dev/random of=/Volumes/BANQ/test1.img bs=200m count=10


測試寫入結果&amp;nbsp;


10+0 records in
10+0 records out
2097152000 bytes transferred in 208.953879 secs</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/6963845276681151481/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2019/11/maclinuxusb.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/6963845276681151481'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/6963845276681151481'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2019/11/maclinuxusb.html' title='在MAC（LINUX）利用指令手動檢測USB硬碟讀寫速度'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-1831008978273756487</id><published>2018-12-30T19:07:00.002-08:00</published><updated>2018-12-30T19:07:32.484-08:00</updated><title type='text'>Welcome file</title><summary type="text">  
    
      

Welcome to StackEdit!
Files

Create files and folders
Switch to another file
Rename a file
Delete a file
Export a file


Synchronization

Open a file
Save a file
Synchronize a file
Manage file synchronization


Publication

Publish a File
Update a publication
Manage file publication


Markdown extensions

SmartyPants
KaTeX
UML diagrams




    
  
  
    
      Welcome to </summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/1831008978273756487/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2018/12/welcome-file_13.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/1831008978273756487'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/1831008978273756487'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2018/12/welcome-file_13.html' title='Welcome file'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-5304240708528142105</id><published>2017-06-13T11:17:00.001-07:00</published><updated>2017-06-13T11:17:42.059-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><category scheme="http://www.blogger.com/atom/ns#" term="GitLab"/><title type='text'>FreeBSD安裝GitLab</title><summary type="text">

前言


  環境參數:
  
  
  OS：FreeBSD i386 , 10.3-RELEASE-p11
  CPU：Intel(R) Core(TM)2 Duo CPU @ 3.00GHz 
  RAM：4096 MB
  




Gitlab需要以下的系統元件

要正常運作 Gitlab ，依照文件所載明，系統上需安裝以下的元件並能正常運行。


Packages / Dependencies
Ruby
System Users
Database
Redis
GitLab
Nginx




安裝必要套件



更新系統符合utf-8



$ pkg update
$ pkg upgrade



安裝系統套件

以下的指令是一次下達完成，當然也可以一個個的下（略過已經安裝或不想升級的套級）



$ pkg install sudo bash icu cmake </summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/5304240708528142105/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/06/freebsdgitlab_13.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/5304240708528142105'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/5304240708528142105'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/06/freebsdgitlab_13.html' title='FreeBSD安裝GitLab'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkmU-wn5pHvQtEX9qml-ilJziasWLpWpiPU5kNFzFLwp0Z_YOv4ci-hIy_N_XNXnxLcwnSImVBsAMqsUOGjMzLLTARzPZM0wmR3rs1xXiRKSEF1hXf0QnFQWkuTiE5KIbw0Yj-pEiO-_YJ/s72-c/gitlab-freebsd.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-3033439807821509619</id><published>2017-05-24T18:36:00.001-07:00</published><updated>2017-05-24T18:51:33.298-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><title type='text'>Box推出新功能 Box Note</title><summary type="text"> 
Box 這老牌的雲端儲存，提供免費的網路硬碟服務，免費帳號有10 GB可使用，在使用經驗上：速度算快，但客戶端同步的CPU耗用較高。 
當然不能只靠免費的儲存在經營，所以Box推出了新功能：Box Note，只要以原帳號登入後即可使用，主要的特點有：

1. 線上多人一同編輯

這個功能很好用，尤其是在列清單或在團隊腦力激盪時更有加分效果。以往我們在列清單重點時，常遇到幾點困難：

1. 通常只能自己列好項目後再傳送給其它成員閱讀或修改。
2. 更改過的項目，也不知道是誰變更？當然如果使用Word的修訂記錄功能也可以追蹤。
3. 在思考或腦力激盪時無法共同作業，大多由一人負責列表或書寫。


使用 Box Note後，以上的問題就通通解決了。果然好的產品就是站在如何為人類解決問題的角度，希望這個產品能發展成功。

2. 分享容易

提供了多種版本可供下戴安裝，目前還沒找到 Linux</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/3033439807821509619/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/05/box-box-note.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/3033439807821509619'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/3033439807821509619'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/05/box-box-note.html' title='Box推出新功能 Box Note'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwsQ7l-6dXesUKwkKoJcLrO0iIZ5h1kw-L8ugGz8gmNVLtF6G6lAWBh3acV7Bo3_KHD6Ae_DY9WT_cPKk5REukruv11L1m47UNkG7EfjdqaT59srp9uebftr59pFTrEJX-bruLXnyryS-g/s72-c/screenshot-app.box.com-2017-05-25-09-32-41.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-6299912779709915224</id><published>2017-05-22T09:32:00.001-07:00</published><updated>2017-05-22T09:42:51.284-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><title type='text'>syslog 與 newsyslog 的設定方式</title><summary type="text">
  環境參數: 
  *  工作：設定 tinyproxy.log整合於syslog並自動壓縮 (logrotate) 
  *   OS：FreeBSD i386 , 10.3-RELEASE-p11 
  * CPU：Intel(R) Core(TM)2 Duo CPU @ 3.00GHz  
  * RAM：4096 MB


整合於syslog與壓縮歸檔

常常在發生問題或需要資訊時，log檔就變的很重要；但是平時它卻是個佔用空間的元凶。如果你還沒遇上過動輒幾GB的寵然大檔，可能未曾心動，當然不會心痛。 
因為一旦空間被吃掉，很多工作就停擺，雖然現在的儲存空間的成本大大降低，不過我們還是養成好習慣，把log整理，方便查詢追踪也不用擔心空間被佔用太多。 
日後應該建置 Log Server 來統一存檔，但今天先把syslog與newsyslog ( Log Rotate )搞定！</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/6299912779709915224/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/05/syslog-newsyslog.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/6299912779709915224'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/6299912779709915224'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/05/syslog-newsyslog.html' title='syslog 與 newsyslog 的設定方式'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-4097161047708408297</id><published>2017-05-18T11:12:00.001-07:00</published><updated>2017-05-19T10:19:26.859-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="utils"/><title type='text'>利用 sitecopy 經由FTP同步網站</title><summary type="text">


  環境參數:
  
  
  OS：FreeBSD i386 , 10.3-RELEASE-p11
  CPU：Intel(R) Core(TM)2 Duo CPU @ 3.00GHz 
  RAM：4096 MB
  sitecopy ：0.16.6
  


sitecopy 自動同步網站內容



安裝 sitecopy



FreeBSD:



$ pkg install sitecopy-0.16.6_4



Ubuntu:



$ apt-get install sitecopy



建立 sitecopy 檔案快照目錄及設定檔

sitecopy啟用前，需建立檔案快照資料庫( .sitecopyrc)及編輯相關設定( /usr/local/etc/sitecopy/~)才能正常運行。



建立快照資料庫的目錄（自訂路徑即可）

.sitecopy 是用來</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/4097161047708408297/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/05/sitecopy-ftp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/4097161047708408297'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/4097161047708408297'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/05/sitecopy-ftp.html' title='利用 sitecopy 經由FTP同步網站'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja86oTEyMs1f8hFVzdDxDFPGwqU_iop2x_IGYC2pyynKs4MkuWGk6MNFpZeCrzYnvv75_pvDFvNRzTKax4_YVxvMHIwcc-yQq6DLylVSP09S1MsG_bu0jtPI3meUIddoNwibMycSWsJmne/s72-c/170518_sitecopy.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-8166793011027357434</id><published>2017-05-16T09:27:00.001-07:00</published><updated>2017-05-19T10:28:27.021-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WordPress"/><title type='text'>如何更改 WordPress 的綁定網址</title><summary type="text">


  環境參數:
  
  
  WordPress：v 4.2.5
  




編輯 config.php

找到網站根目錄下的 config.php，加入以下二行程式碼：

define(&#39;WP_HOME&#39;,&#39;http://newdomain.com&#39;);
define(&#39;WP_SITEURL&#39;,&#39;http://newdomain.com&#39;);

但這只是官方建議為了不讓你在後台主畫面中，不小心又輸入錯的新網址（也就是禁止更改的意思）



編輯 function.php

最重要的是這個動作，找到佈景主題下的 functions.php，通常位於 wp-content/themes/your-theme/functions.php，在最上方（

update_option( &#39;siteurl&#39;, &#39;http://newdomain.com&#39; );
update_option(</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/8166793011027357434/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/05/wordpress.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/8166793011027357434'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/8166793011027357434'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/05/wordpress.html' title='如何更改 WordPress 的綁定網址'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj6ovgJZsdEudMzzBVo1xsaMOcCXu8N6rsyGH4Se1JXaFHRhLyh9C1Zk7AOjT5xgznfjwIvcvtQqRyQQegOouvUj9bGaR_u1f1uOiLw5heBdwHGNx1bI8PkQb77m-da6sHSEBjfFlHGUg-/s72-c/wordpress-tips-tricks.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-1926217836356719267</id><published>2017-05-11T10:34:00.001-07:00</published><updated>2017-05-11T10:34:11.728-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Prpxy"/><title type='text'>使用 Privoxy 搭配 Tor 加強上網隱私及廣告過濾</title><summary type="text">
  環境參數:
  
  
  OS：Windows 10 Home Edition
  CPU：Intel(R) Core(TM)i7-6500U @ 2.50GHz 2.60GHz 
  RAM：16 GB
  




Privoxy 過濾



Privoxy：下載並安裝相關軟體



（Windows 版本）Pvivoxy

Privoxy v3_0_26 (Stable) 
可選擇安裝版本或免安裝綠色版本 
以port安裝



FreeBSD 10.3 安裝 Privoxy



# cd /usr/ports/www/privoxy
# make all install clean

或pkg安裝



# pkg install privoxy-3.0.26



Privoxy設定



(Win32)編輯 config.txt



(FreeBSD) # vi </summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/1926217836356719267/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/05/privoxy-tor.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/1926217836356719267'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/1926217836356719267'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/05/privoxy-tor.html' title='使用 Privoxy 搭配 Tor 加強上網隱私及廣告過濾'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7bObBrZeS8cU-cTcgkRb5cAt0hyhlqwUjxQFDEm1tWEAdRQ61Xnl-YvwvHpcRs0RnYiXlPEQDV62a19CdBAoBZH3RpijL4-86eJcp13rLfzTjT24XVJ9a6ypFoSQBhIi7B2dTL3K7BvLt/s72-c/screenshot-p.p-2017-04-29-01-33-43.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-1166799393841699789</id><published>2017-03-25T22:08:00.001-07:00</published><updated>2017-03-25T22:09:45.169-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><title type='text'>利用shell同時執行遠方主機群命令</title><summary type="text">
  工作目的:
  
  
  OS：FreeBSD i386 , 10.3-RELEASE-p11
  CPU：Intel(R) Core(TM)2 Duo CPU @ 3.00GHz 
  RAM：4096 MB
  


ssh 執行遠方主機

有的時候不是懶，是效率問題。 
基於安全機制，很多服務主機並未直接對外連線，只能經由授權連線的IP或主機再轉入進行維護。 
當然只有幾台時，沒遇到困難及問題；然而當主機群數量幾十台甚或幾百台的規劃時，效率還有精確就是要好生思量了。 
所以利用/etc/hosts檔案內容及sudo命令，簡單作一個script來幫忙吧！

#!/bin/sh
# file : execCmdAll.sh
# Execute command on all remote machines

# 檢查有無輸入命令
if [  -z &quot;$1&quot; -a &quot;$1&quot; == </summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/1166799393841699789/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/03/shell.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/1166799393841699789'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/1166799393841699789'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/03/shell.html' title='利用shell同時執行遠方主機群命令'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-2774618395399357407</id><published>2017-02-27T08:09:00.001-08:00</published><updated>2017-02-27T08:09:03.457-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SSL"/><title type='text'>Cpanel 安裝CloudFlare SSL 憑證授權組合: (CABUNDLE)</title><summary type="text">
  環境參數:
  
  
  cPanel 版本：    62.0 (build 15)
  SSL：CloudFlare 免費
  


申請了 CloudFlare 免費提供的SSL憑証後，除了放在自己主機外，也可以放在代管空間。 
除了上傳 Certificate 和 Private Key外，還需要上傳 Original CA。

在 Cpanel SSL主機設定加上root ca



下載 root ca

直接下載 CloudFlare 準備好的 root ca 檔後，再貼入憑証授權組合 （CABUNDLE）欄位即可。 
* cloudflare_origin_ecc.pem (940 Bytes) 
* cloudflare_origin_rsa.pem (1 KB) 
一般的SSL設定會用到的是 RSA Root(cloudflare_origin_rsa.pem)</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/2774618395399357407/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/cpanel-cloudflare-ssl-cabundle.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/2774618395399357407'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/2774618395399357407'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/cpanel-cloudflare-ssl-cabundle.html' title='Cpanel 安裝CloudFlare SSL 憑證授權組合: (CABUNDLE)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju2myVbOgFUdbBsssD25a57scS3ntDiTXtoNhxqWpiOcILe0KkhaoIdlTviQMwVdmvwZGCDF6y0IdfhhybyUY99OtIjrpL2Vc-klE-eOH9f7hlBSLffYdMuId5ePTLysaB7bSgm4fAjT21/s72-c/ssl-cloudflare-root-ca.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-8375984854172983391</id><published>2017-02-19T16:00:00.029-08:00</published><updated>2017-02-20T09:17:08.391-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><category scheme="http://www.blogger.com/atom/ns#" term="SoftEther"/><category scheme="http://www.blogger.com/atom/ns#" term="VPN"/><title type='text'>架設SoftEther作為VPN翻牆主機（FreeBSD）</title><summary type="text">FreeBSD最常見的VPN應用大多是利用PPP為基礎而建構的MPD5，其實還有更好的選擇 -  SoftEther。這是一套由日本東京附近的筑波大學所研發的開源免費軟體，除了提供學術研究外，並也開放給外界使用，功能非常強大。

筑波大學離東京很近



SoftEather 具備以下特色，所以推薦能與大家一起學習如何運用它。


  
  免費使用。   
  提供開放源碼。
  而SoftEther的應用更廣泛免費的，日本學術，功能強大。
  VPN連線功能。
  安全性高。
  連接速度快。
  易於管理。（更提供Windows管理介面）
  


本篇是以FreeBSD為Server端，也可以參考Windows端的SoftEther安裝方式。 
有興趣可看看官網介紹


  環境參數:
  
  
  OS：FreeBSD i386 , 10.3-RELEASE-p11
  </summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/8375984854172983391/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/softether-vpn-server-freebsd.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/8375984854172983391'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/8375984854172983391'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/softether-vpn-server-freebsd.html' title='架設SoftEther作為VPN翻牆主機（FreeBSD）'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGgs6cHywhgTcD2ZAA-C7KVYTlOKbrBIX7W-QQefnW2r8YjBtPsa0VQddQuxrlhpRGnSGVkbmC7WecqOc63B41Fk_16vkVxIfnjQF6T5vYg7E_IVutEuYwHorSIBgztlocxUPsrgtoXyrT/s72-c/" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-8764439014110221165</id><published>2017-02-19T16:00:00.027-08:00</published><updated>2017-02-19T16:00:15.310-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SoftEther"/><category scheme="http://www.blogger.com/atom/ns#" term="VPN"/><title type='text'>架設SoftEther作為VPN翻牆主機（Windows）</title><summary type="text">
  環境參數:
  
  
  OS：Windows 10 (64位元)
  


下載Windows版本 SoftEther Server

SoftEther 是一套很完整的跨平台 VPN Server，在 Windows 上有很穩定質優的 GUI 介面免費提供使用。FreeBSD上的安裝請參考架設SoftEther作為VPN翻牆主機（FreeBSD）。

下載Windows穩定版本

Windows 介面的Server端同時也包含了管理介面： 
SoftEther VPN Server for Windows下載 



安裝 Windows SoftEther Server

按照一般程序，跟著安裝嚮導指示即可完成安裝。 
 
 
 
 
 
 
 
 




設定 SoftEther VPN Server

安裝完成後，預設建立了一個本機端（localhost）的 </summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/8764439014110221165/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/softether-vpn-server-windows.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/8764439014110221165'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/8764439014110221165'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/softether-vpn-server-windows.html' title='架設SoftEther作為VPN翻牆主機（Windows）'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLoTuJhFzymzDbllkpgyTPGX4Km2uvCU_1pWSKC_uE9KKWib7EeiXoiDhkEgYHxFSR5hXK3jr-p3jYZGVCrkQdEWGM993xnKDZSZ28Hsl9dKhOkfBygmgcdD5xPXxUZ3V-Y5y4S2AAXwXf/s72-c/" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-8185520410324543188</id><published>2017-02-19T16:00:00.023-08:00</published><updated>2017-02-19T16:00:00.300-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SoftEther"/><category scheme="http://www.blogger.com/atom/ns#" term="VPN"/><title type='text'>SoftEther VPN 翻牆（管理篇）</title><summary type="text">
  環境參數:
  
  
  OS：Windows 10 (64位元)
  


在完成 安裝 FreeBSD SoftEther Server 或 安裝 Windows SoftEther Server 後，接著只要利用 Windows 管理即可輕鬆管理 VPN Server。 
其實，Windows 圖形化介面很方便，但它也只是在執行vpncmd相關指令罷了。

SoftEther VPN 管理程式下載

SoftEther Server 的管理介面已包含在 Windows 版本的伺服端程式了，安裝完 Windows 版之後，就同時擁有 Server 及 Management 功能，如果已經完成安裝 Windows SoftEther VPN Server，即可省略安裝。



下載穩定版本

Windows 介面的Server端同時也包含了管理介面： 
SoftEther </summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/8185520410324543188/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/oftether-vpn-server-manage.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/8185520410324543188'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/8185520410324543188'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/oftether-vpn-server-manage.html' title='SoftEther VPN 翻牆（管理篇）'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiANqyahyphenhypheno4l3OGf1BGvuI78-EmkkcRZmo8b4w5Addh6EOmxkjez8OvUXbaTLb8jOQMY4CYJqeozVw_E2_L7mT3NeJb-r4UJ2NS-ZC-JBHZdYl4EWnDKjoTZAu484ryXk2a5g4dBTolrWcq/s72-c/" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-3039834419953230919</id><published>2017-02-13T16:00:00.001-08:00</published><updated>2017-02-13T16:00:03.151-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><category scheme="http://www.blogger.com/atom/ns#" term="Sendmail"/><title type='text'>利用ssmtp設置Sendmail經由Gmail寄信</title><summary type="text">即時聊天傳訊軟體在手機上屢屢出新，但很多時候還是email可靠方便。幾年前手機正在漫延這個世界時，自己想架設 Mil Server 已不容易，不但要面對 Sendmil 或 Postfix 複雜的設定，同時又要抵檔垃圾信（當然也要想辦法要其它的 Mail Server 願意收你自己架的 Mail Server 所寄出去的信），自從 Gmail 普遍之後，似乎鮮少有人會討論 Mail Server 的架設技術了。 
不過地球還真的有點圓，科技突飛猛進，但感覺在2015年終後開始有點復古的走法，這只是個人感受，進入主題吧！

設定rc.conf，取消sendmail



$ sudo vi /etc/rc.conf
sendmail_enable=&quot;NO&quot;
sendmail_submit_enable=&quot;NO&quot;
sendmail_outbound_enable=&quot;NO&quot;
</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/3039834419953230919/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/ssmtpsendmailgmail.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/3039834419953230919'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/3039834419953230919'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/ssmtpsendmailgmail.html' title='利用ssmtp設置Sendmail經由Gmail寄信'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-5543235408565046862</id><published>2017-02-12T21:54:00.001-08:00</published><updated>2017-02-12T22:37:18.910-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Lighttpd"/><category scheme="http://www.blogger.com/atom/ns#" term="SSL"/><title type='text'>申請免費的Cloudflare SSL搭架Lighttpd Proxy為網站加密</title><summary type="text">


  環境參數:
  
  
  前端：lighttpd-1.4.41 
  Hostname：SRV1
  IP：10.11.11.1
  後端：lighttpd-1.4.41 
  Hostname：Srv2
  IP：10.11.11.2
  加密網址：domain.com.tw
  


前後端都利用 Lighttpd 來達成 SSL Reverse Proxy目的。



Created with Raphaël 2.1.2架構概念圖domain.com.tw（SRV1前端Lighttpd）domain.com.tw（SRV1前端Lighttpd）domain.com.tw（SRV2後端Lighttpd）domain.com.tw（SRV2後端Lighttpd）-&amp;gt; 透過Lighttpd proxy



製作主機憑証

依序製作好rootca.key、</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/5543235408565046862/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/cloudflare-ssllighttpd-proxy.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/5543235408565046862'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/5543235408565046862'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/cloudflare-ssllighttpd-proxy.html' title='申請免費的Cloudflare SSL搭架Lighttpd Proxy為網站加密'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSgSzhoc_2iQokAtU6af72nBogQViP1puAn09FkJbkLeF4SLTjl8AF938qy6Sy1uC0mKPlX2Bbl85rnAtcPElzP1HXzHoPDw6NTIG6JyNw3pCg8OIpjdabRo_ALhXbal1HnqnFnnHnYCLG/s72-c/" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-7257248883202501123</id><published>2017-02-11T21:26:00.001-08:00</published><updated>2017-02-16T13:37:26.867-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><title type='text'>Nextcloud 個人雲端系統</title><summary type="text">
  環境參數:
  
  
  OS：FreeBSD i386 , 10.3-RELEASE-p11
  CPU：Intel(R) Core(TM)2 Duo CPU @ 3.00GHz 
  RAM：4096 MB
  主機網站：http://10.11.11.28
  




安裝NextCloud Server端



以套件安裝

Nextcloud在很多平台都有專用的套件可供安裝，可依照系統需求來下戴，同時也有最新版本可供喜歡搶新者下載。 
各平台的套件下載：


Archlinux
Ubuntu
Fedora
OpenSUSE
FreeBSD pkg安裝




$ sudo pkg install nextcloud
# 以pkg安裝後，檔案預設路徑為：/usr/local/www/nextcloud



Web Installer

NextCloud也提供更方便的</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/7257248883202501123/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/nextcloud_97.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/7257248883202501123'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/7257248883202501123'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/nextcloud_97.html' title='Nextcloud 個人雲端系統'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC4hxwh_QVXAXVVUVSPacydsye0vOEgzfND4n6WnQhvs5ont89A9hVLCGw0yxiQhTYneHad6BbS_VNbE6XjLEGKCbVVk4Azph_GkFBJL_hXv1J7L2Jisp8D-bDxawb8I0kWD4b_ry0M-W5/s72-c/" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-7455267294886377863</id><published>2017-02-10T07:15:00.001-08:00</published><updated>2017-02-10T07:16:52.160-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>如何解決PHP Startup: Unable to load dynamic library</title><summary type="text">
  環境參數:
  
  
  PHP：PHP 5.6.18
  


安裝了nextcloud之後，出現了錯誤訊息，簡單的寫支test.php來測試就看到錯誤：

&amp;lt;?php
# filename: test.php
echo &quot;test&quot;;
?&amp;gt;

在命令列執行test.php



$ php test.php
PHP Warning:  PHP Startup: Unable to load dynamic library &#39;/usr/local/lib/php/20131226/wddx.so&#39; - /usr/local/lib/php/20131226/wddx.so: Undefined symbol &quot;ps_globals&quot; in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load </summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/7455267294886377863/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/php-startup-unable-to-load-dynamic.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/7455267294886377863'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/7455267294886377863'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/php-startup-unable-to-load-dynamic.html' title='如何解決PHP Startup: Unable to load dynamic library'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-5460148740530305763</id><published>2017-02-08T09:03:00.001-08:00</published><updated>2017-02-12T03:30:16.152-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="SEO"/><title type='text'>網頁升級為AMP行動超速化</title><summary type="text">

Google搜尋引擎已經支援新的AMP HTML加速技術（AMP：Accelarated Mobile Pages，行動裝置加速頁面），能將符合AMP標準的網頁在搜尋結果中以飛也的速度顯示。 
AMP HTML標準簡單的說明就是以AMP JS程式庫以更快速的方式將網頁顯示在行動裝置上，而Google建置了AMP的快取，能預先將符合的網頁儲存，包含網頁的文字內容、圖片及JavaScript檔案，在使用者點擊連結開啟網頁時以幾乎『秒開』的速度開啟該網頁（HTTP2.0）。



Google官方說法



在Google搜尋結果中，只要網頁連結前有“AMP”的閃電符號，那就代表Google已將該網頁的AMP版本預存在快取中，所以能將AMP網頁內容以更快速的方式呈現出來。 
到此為止，您應該能意識到這個機制的重要性： 
1. 只要製作符合AMP標準的網頁，就能達到行動裝置加速開啟的效果。</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/5460148740530305763/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/amp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/5460148740530305763'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/5460148740530305763'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/amp.html' title='網頁升級為AMP行動超速化'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMqP5dCYMVJw-t4CV1GCTHp0BcLj5aYdZxeFV5HeDPlQCI5KfNI719_QEW1CQDyrF_RQ17VmGxBjAvThPfu3OXvGBT5LJrl_iCOb5BALO73GGySU1XNJiDJGzJklU2OgGex73g2JCNlo_F/s72-c/google-amp-2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-3542593206118230853</id><published>2017-02-07T06:15:00.001-08:00</published><updated>2017-02-07T06:15:44.215-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Lighttpd"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Lighttpd 執行phpMyAdmin出現Cannot start session without errors…錯誤</title><summary type="text">浪費太多時間在用這個笨問題!

在REHL el6.x86_64執行phpMyAdmin時出現錯誤訊息： 
連登入畫面都無法正常出現？




  環境參數:
  
  
  OS：Linux RHEL , 6.x86_64.
  lighttpd.x86_64 , v1.4.44-1.e16
  lighttpd-fastcgi.x86_64.
  php56-php-fpm.x86_64 , v5.6.30-1.el6.remi
  




 解決方法


session路徑
確認/etc/php.ini下的session路徑設定應為：session.save_path = &quot;/var/lib/php/session/&quot;

session權限
檢查路徑權限應為777可讀寫，若非如此請修正： 
#chmod 777 /var/lib/php/session


這是基本的解決</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/3542593206118230853/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/lighttpd-phpmyadmincannot-start-session.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/3542593206118230853'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/3542593206118230853'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/lighttpd-phpmyadmincannot-start-session.html' title='Lighttpd 執行phpMyAdmin出現Cannot start session without errors…錯誤'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh3.googleusercontent.com/-8G6SdiMW9jI/WIwGcM0_bRI/AAAAAAAAAAM/kMoVMTA6X-kaz7kr9KTtDXeonp9LnF-3wCLcB/s72-c/2BNOr88.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-6707762974536004227</id><published>2017-02-07T06:08:00.001-08:00</published><updated>2017-02-07T06:08:43.431-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Lighttpd"/><category scheme="http://www.blogger.com/atom/ns#" term="Linx"/><title type='text'>Linux RHEL 6 安裝 Lighttpd</title><summary type="text">Lighttpd 輕量級網站伺服器

眾所皆知 Nginx號稱是不會超載而導致當機的輕量級伺服器，在這之前早已有 Lighttpd 的存在。雖然目前 Apache 仍是市佔率最多的伺服端，但 Nginx 急起直追中。有開這3套主流伺服端的效能比較如下： 






圖片來源



測試報告

而如果你只是想要單純的架設網站，最輕量的 Lighttpd 是可以考慮的第一選擇，近日要在 MariaDB Server 安裝 phpMyAdmin 介面，所以就用 Lighttpd 搭配 PHP FastCGI 來執行就好，一來簡單，二來保留更多資源給資料庫使用。


  環境參數:
  
  
  OS：Linux RHEL , 6.x86_64.
  




Linux Repo設置

為能順利以yum安裝，要先將前置工作準備好。



EPEL及RPM安裝

在CentOS 6下先確認</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/6707762974536004227/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/linux-rhel-6-lighttpd_7.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/6707762974536004227'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/6707762974536004227'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/linux-rhel-6-lighttpd_7.html' title='Linux RHEL 6 安裝 Lighttpd'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh3.googleusercontent.com/-TccEm_-dllQ/WIwOh4GlV1I/AAAAAAAAAAg/siDAUn9gnFMWJzrwl5hBo9xbnlcyJYoUgCLcB/s72-c/Webserver_memory_graph.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-7808393534550491554</id><published>2017-02-05T03:56:00.001-08:00</published><updated>2017-02-08T10:10:18.554-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><category scheme="http://www.blogger.com/atom/ns#" term="Lighttpd"/><category scheme="http://www.blogger.com/atom/ns#" term="Nginx"/><title type='text'>Lighttpd Reverse Proxy To Nginx</title><summary type="text">


  環境參數:
  
  
  OS：FreeBSD i386 , 10.3-RELEASE-p11
  CPU：Intel(R) Core(TM)2 Duo CPU @ 3.00GHz 
  RAM：4096 MB
  主機： 
  外部主機：outside_ip1 , 192.168.0.1
  內部主機：192.168.0.2(lighttpd),192.168.0.3(nginx)
  其它主機：8.8.8.8
  網址1：url1.com.tw
  網址2：url2.com.tw
  網址3：url3.com.tw
  網址a：external.com.tw
  




任務目的及架構

現有與外面連接的外部主機（192.168.0.1），以PPPOe撥接ADSL，並透過Hub與內部網路主機（192.168.0.2）相連接。 
我們不希望內部主機直接與網路連接，並透過</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/7808393534550491554/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/lighttpd-reverse-proxy-to-nginx.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/7808393534550491554'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/7808393534550491554'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/lighttpd-reverse-proxy-to-nginx.html' title='Lighttpd Reverse Proxy To Nginx'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyBIYf8dQfbzVVg9SRVVgZN45TX3I8TTgeUQK33n4_XC_iXiH0pRbZyOJn9HZGWLJpwgxFXFP3c5DgBPwjg9EWFFAZeEO7JcgD207Yvehmi2IlBmEWU8GNyZn6xNAx7JLaZck98Ih15Ue8/s72-c/lighttpd-nginx-reverse-proxy.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-1703803834383116038</id><published>2017-02-02T18:27:00.001-08:00</published><updated>2017-02-13T00:16:14.730-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeBSD"/><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><title type='text'>初探 Google 熱門語言：Go</title><summary type="text">Go 程式語言在近幾年市佔率竄起迅速，所以我對它很好奇，試著在FreeBSD下安裝執行環境，順便看看程式語言的排行統計:



Google Go的錢途排行





Google Go上升迅速





Go支援各平台安裝



安裝下載連結


  環境參數:
  
  
  OS：FreeBSD i386 , 10.3-RELEASE-p11.
  




安裝Go編譯器（舊版 1.4）

在安裝Go的語言工具之前，要先裝 Go 編譯器(Go compiler )，以便往後的編譯工作能順利進行，GOROOT_BOOTSTRAP 預設值是 $HOME/go1.4。 
我在家目錄中工作，所以預設的GOROOT_BOOTSTRAP = /home/jim/go。

在原始碼編譯過程中有二項選擇： 
1.all.bash會進行Go的很多測試工作，時間耗費較久。 
2.make.bash會</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/1703803834383116038/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/02/google-go.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/1703803834383116038'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/1703803834383116038'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/02/google-go.html' title='初探 Google 熱門語言：Go'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4yJXs54rI_0EZ5gYCGHiXhIShB1tYq9vZstmQhZcjH7gGQBblVIK_e3pjeHALX64XF9CqaVhrHxr4k38QW07NE7IL9JPJInTU8ybO4YNbx9HYy2OoFSqKIBdPqKz1t0058s2C22MqbAeh/s72-c/screenshot-spectrum.ieee.org-2017-01-30-17-16-26.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-4423861237853488459</id><published>2017-01-30T02:04:00.001-08:00</published><updated>2017-01-31T12:40:41.389-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>YUM套件管理命令常用命令介紹</title><summary type="text">


  環境參數:
  
  
  OS：Linux RHEL , 6.x86_64.
  




YUM基本常用指令

1.列出所有可更新的軟件清單 
 $ yum check-update

2.安裝所有更新軟件 
 $ yum update

3.僅安裝指定的軟件 
 $ yum install &amp;lt;package_name&amp;gt;

4.僅更新指定的軟件

$ yum update &amp;lt;package_name&amp;gt; 
5.列出所有可安裝的軟件清單

$ yum list 
用YUM安裝刪除軟件

在完成了系統安裝後，常常需要添加或移除軟件。Linux除了可以rpm來進行軟體的管理，yum同樣可以勝任這個任務，前提是該軟件是可經由rpm套件管理系統進行安裝或移除。

yum&amp;gt;安裝的命令是，yum install ，yum會先查詢數據庫，檢測其中是否有這一套件</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/4423861237853488459/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2017/01/yum_30.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/4423861237853488459'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/4423861237853488459'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2017/01/yum_30.html' title='YUM套件管理命令常用命令介紹'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIVFpxRbvVpIvcTQQQ1Wqo7ldd20m36O-rOmkYyWB6PIg_oUfwang02ZeQuNYGCeSUwgmhfO4gnuX5nB4pCeF7Rj590HpEhENUnKkgbGBqY1UWmsNgfTrz_h-Kc7cWX4U_T1wm9MFKX_PB/s72-c/Linux-Android.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-768309331403766437</id><published>2014-09-28T23:33:00.000-07:00</published><updated>2017-02-06T17:55:10.977-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="千方百計"/><title type='text'>擁抱20秒</title><summary type="text">每擁抱２０秒，就能消耗１００卡路里的熱量。</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/768309331403766437/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2014/09/20.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/768309331403766437'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/768309331403766437'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2014/09/20.html' title='擁抱20秒'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0DGdkfAC6pMwQA9t5H8qN3Ir2wBgjU6PTVhKcBOCGEV4Dyr5IQ9xnbCQsmSrjYmuF8Mk24mwQCjbfTikq5R1T8FWKUTmFLFo44jguadr3XpIZz5HILh2BfDF3JJ9iTkw4idizvHthRZY/s72-c/59.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-150150277079671940.post-7070185860381167725</id><published>2014-09-28T23:31:00.001-07:00</published><updated>2017-02-06T17:55:48.119-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="千方百計"/><title type='text'>自製彈珠水晶項鍊</title><summary type="text">把彈珠用160℃～170℃溫度烤約20分鐘，然後放入冰水讓它內部產生龜裂後，就可以拿來作成項鍊，便宜又美觀。</summary><link rel='replies' type='application/atom+xml' href='https://jjnux.blogspot.com/feeds/7070185860381167725/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='https://jjnux.blogspot.com/2014/09/blog-post_67.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/7070185860381167725'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/150150277079671940/posts/default/7070185860381167725'/><link rel='alternate' type='text/html' href='https://jjnux.blogspot.com/2014/09/blog-post_67.html' title='自製彈珠水晶項鍊'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzqVQOaOadHAaqVpxUx8bUjqWAIcb0GmJoC196MXGvtUXgNZLmNE78ia8XeTpVFjbzK2LIOsJ8QdfOXkKo_VnPzmjNPNFTFu0idOFkddDQWBKAuG1IRsi66aEJfozgyd2sm_dQru8UThg/s72-c/107.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>