【過海製麵所】曾拌麵限量優惠組(香蔥椒麻*2袋+胡麻醬*1袋) (1袋4包入)
定價:675元
優惠價:465元
優惠期限:2017年07月11日止

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
Varnish cache,或稱Varnish,是一套高效能的反向網站快取伺服器(reverse proxy server)。
其他的類似產品還有Nginx 或是 Squid 可供選擇
官方網站
https://www.varnish-cache.org/
安裝步驟
# vi /etc/yum.repos.d/varnish.repo
[varnish]
name=Varnish for Enterprise Linux 6
baseurl=https://repo.varnish-cache.org/redhat/varnish-4.0/el6/
enabled=1
gpgkey=https://repo.varnish-cache.org/GPG-key.txt
gpgcheck=1
存檔離開

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
更新ports tree
# portsnap fetch extract update
安裝 mongodb
# cd /usr/ports/databases/mongodb34

helloworld 發表在 痞客邦 留言(0) 人氣()

假設如果要在freebsd透過ports 安裝apache24
除了是漫長的compile 過程外
再來就是不時會被其他相依套件中斷,提醒你要勾選相依套件的選項
想要好好去廁所大個便都不行
如果要解決這個問題,好好的去蹲廁所
可以參考以下步驟
# cd /usr/ports/www/apache24
# make config-recursive
===> Setting user-specified options for apache24-2.4.26 and dependencies
接下來一一勾選相依套件的選項後
# make insall clean
即可

helloworld 發表在 痞客邦 留言(0) 人氣()

如果你除了內建的openssl 又自行安裝比較新版的openssl 
在安裝其他套件時出現以下警告訊息
/!\ WARNING /!\

helloworld 發表在 痞客邦 留言(0) 人氣()

[root@test] ~# echo stats | nc memcached-server 11211
STAT pid 16817
STAT uptime 181573
STAT time 1499060450
STAT version 1.4.4
STAT pointer_size 64
STAT rusage_user 186.459653
STAT rusage_system 581.109657
STAT curr_connections 12
STAT total_connections 163313
STAT connection_structures 71
STAT cmd_get 8260007
STAT cmd_set 811378
STAT cmd_flush 0
STAT get_hits 7935925
STAT get_misses 324082
STAT delete_misses 0
STAT delete_hits 1
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 7135925788
STAT bytes_written 14480451759
STAT limit_maxbytes 2147483648
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 4
STAT conn_yields 0
STAT bytes 283099957
STAT curr_items 211892
STAT total_items 811378
STAT evictions 0
END
^C
 

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
wget -R jpg,gif,css,js -r -l 2 --delete-after http://myip.pass.tw/ | & tee wget.log
-R: 排除某些檔案不抓
-r: 遞迴抓取網頁
-l: 抓到第幾層
--delete-after: 移除暫存網頁
網站擷取:使用Python
Web Scraping with Python
作者: Ryan Mitchell  
譯者:Studio Tib.
出版社:歐萊禮  
出版日期:2016/10/03
語言:繁體中文

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
安裝好nginx + php-fpm 後,ngixn error log出現以下錯誤訊息
2017/06/28 10:06:46 [error] 949#100116: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.77.252, server: ng.test.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "example.com:8080"
預設參考範例
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
            include        fastcgi_params;
        }
修改為以下設定
        location ~ \.php$ {
            #root           html;
            root             "你的網頁路徑";
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            #fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
重新啟動nginx 即可
MIS 一定要懂的82個伺服器建置與管理知識
作者: きはし まさひろ  
譯者: 陳禹豪, 黃瑋婷
出版社:旗標

helloworld 發表在 痞客邦 留言(0) 人氣()

varnishadm
ban req.http.host == "example.com" && req.url ~ "\.png$"

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
【2017/6/20 MUJI無印良品x博客來 開館8週年慶 不限金額結帳81折】

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
【2017/6/20 MUJI無印良品x博客來 開館8週年慶 不限金額結帳81折】

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
雖然說4G網路或是wifi 少了接線,方便許多
但有些時候我們需要一個比較穩定的網路品質,比如說直播需求
就建議設備接上有線的網路
為 apple iphone , ipad 接上有線網路
可以先準備一個 Apple  lightning to usb 轉接器
USB 隔壁也提供lightning 孔可以供手機或平板充電,不用擔心上網時太過耗電
另外再自備一條 usb to RJ45 網路卡即可

helloworld 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。