前一陣子FreeNAS 說0.7 是最後一版了 以後會轉成Linux 平台上 叫coreNAS 後來 剛剛看到消息說iXsystem 的工程師會大幅度的改寫 而FreeNAS Project 也會繼續下去了 目前會先昇上FreeBSD 8 看起來 可以繼續下去~~
man winbindd SIGHUP Reload the smb.conf(5) file and apply any parameter changes to the running version of winbindd. This signal also clears any cached user and group information. The list of other domains trusted by winbindd is also reloaded. 所以只要 [sourcecode language='sh'] /usr/local/etc/rc.d/samba reload [/sourcecode] 就好了….
ldd -a /usr/local/bin/mysql ldconfig -r /sbin/ldconfig -m /usr/local/lib ldconfig -m Instead of replacing the contents of the hints file with those found in the directories specified, “merge” in new entries. Directories recorded in the hints file by previous runs of ldconfig are also rescanned for new shared libraries. 筆記一下…
忘了從 1.4.1X 開始 zh_TW編碼就是 設成UTF8 這樣big5 的mail 會是亂碼 簡單的改法就是 squirrelmail/functions/i18n.php [sourcecode language='php'] //$languages['zh_TW']['NAME'] = ‘Chinese Trad’; //$languages['zh_TW']['CHARSET'] = ‘utf-8′; //$languages['zh_TW']['LOCALE'] = ‘zh_TW.UTF-8′; //$languages['tw']['ALIAS'] = ‘zh_TW’; $languages['zh_TW']['NAME'] = ‘Chinese Trad’; $languages['zh_TW']['CHARSET'] = ‘Big5′; $languages['zh_TW']['LOCALE'] = ‘zh_TW.Big5′; $languages['tw']['ALIAS'] = ‘zh_TW’; [/sourcecode] 這樣就成了…..
SERVER Side 設定 # cd /usr/ports/mail/pop3gwd/ # make install clean # vim /etc/inetd.conf 加入 [sourcecode language='bash'] pop3 stream tcp nowait root /usr/libexec/tcpd /usr/local/libexec/pop3gwd [/sourcecode] # vim /etc/rc.conf 加入 [sourcecode language='bash'] inetd_enable=”YES” /etc/rc.d/inetd restart [/sourcecode] Client Side 設定 Pop3 主機請設安裝pop3gwd 的位置 例如 192.168.2.220 Outlook 帳號設定 username#server 例如 john#mail.green-computing.com
今天早上看到 這篇文章 覺得應該把..目前的公司的網站來 壓縮一下… 不過因為用的web server 是lighttpd 目前1.4.X沒有預設是沒有這個功能的 1.5 預設會有 所以只好自已上patch …. 我的作法是……….. [sourcecode language='sh'] #cd /usr/ports/www/lighttpd #make ………….. ………….. #cd work #cp -rp lighttpd-1.4.19 lighttpd-1.4.19-org #fetch http://trac.lighttpd.net/trac/raw-attachment/wiki/Mod_Deflate/lighttpd-1.4.19.mod_deflate.patch #cd lighttpd-1.4.19 #patch -p1 < ../lighttpd-1.4.19.mod_deflate.patch /* 以下是笨小孩用的方法 */ #diff -C 5 ../lighttpd-1.4.19-org/configure.in configure.in > patch-src__mod_deflate.c #diff -C 5 ../lighttpd-1.4.19-org/src/base.h src/base.h >> patch-src__mod_deflate.c #diff -C 5 ../lighttpd-1.4.19-org/src/chunk.c [...]
23:51 <@chxxxn> johnpupu: 那個要 make buildworld 跟 make installworld 啊, 23:51 <@chxxxn> 如何升級到7.0-p1 23:51 <@chxxxn> http://phorum.study-area.org/index.php/topic,51783.0.html 23:52 <@chxxxn> “你沒跳大版號…應該不用make world ..”……看了看問題標題:『如何升級到7.0-p1』 23:53 * chxxxn 不常逛 www forum, 也懶得那麼多站一個一個都註冊..以免又收到一些奇怪信件 23:54 <@chxxxn> johnpupu: 某長輩說的好:『至於有沒有大版號, 要不要 buildworld? 這是看到底是為甚麼改版號吧, 有的是 user land library 做 security patch, 關 kernel 鳥事, 只 make kernel 是把頭埋進沙裡的行為.』 Day changed to 04 Jun 2008 [...]
因為被slow query 搞的很煩….網站速度一直起不來 因為Database 設計上的問題…..(幾個比較常用的Table 大蓋都差不多有70萬個Record ) 且因為我Table Engine 是 MyISAM 用Rep 的話….若是crash 要修…好像很麻煩… 所以變成要用Rep 的話最好能先轉成InnoDB 不過因為我Slow Query 很多…若是我Rep Master Lock 的話 Slave 也會卡住….. 也不是完全的解決了Slow Query這問題…. 所以我想最完美的解法可能是 Rep + Aging… 不過要花不少時間來整個改…… 當前沒這麼多時間讓我來用這些… 所以我目前的解法是… 加Ram 然後把MySQL 的Ram 讓他吃愈多愈好… Ref MYSQL優化詳細介紹! 7.5.2. Tuning Server Parameters Section 5.1.3, “System Variables” 5.1.2. Command Options Section 5.1.5, “Status Variables”. 5.2.4. [...]
剛剛在Joehorn 的個人版上看到的…. 我整個很lag… ports 裡面已經有了…… 裝好後.. cp /usr/local/share/super-smack/* ~ 才會有 select-key.smack和update-select.smack 這兩個檔案…. 執行的話..就在console 下 #super-smack -d mysql select-key.smack 80 100 我的blog 機是FreeBSD 7.0 R CPU: Intel(R) Xeon(TM) CPU 2.60GHz (2591.61-MHz 686-class CPU), RAM:2G HD: 10K SCSI 36.4G FS: UFS2 數據是 Query_type num_queries max_time min_time q_per_s select_index 8000 102 0 1164.87 update_index 8000 73 0 1164.87 [...]