Sunday, June 24, 2012
Saturday, June 23, 2012
Install OpenSIPS SIP server
What OpenSIPS is
OpenSIPS (Open SIP Server) is a mature Open Source implementation of a SIP server. OpenSIPS is more than a SIP proxy/router as it includes application-level functionalities. OpenSIPS, as a SIP server, is the core component of any SIP-based VoIP solution. With a very flexible and customizable routing engine, OpenSIPS 'unifies voice, video, IM and presence services in a highly efficient way, thanks to its scalable (modular) design.
What OpenSIPS has to offer, comes in a reliable and high-performance flavour - OpenSIPS is one of the fastest SIP servers, with a throughput that confirms it as a solution up to enterprise or carrier-grade class.
Adding Debian package repository for the OpenSIPS project to your apt sources:
# vi /etc/apt/source.list
deb http://apt.opensips.org/ stable18 main
Adding the archive key to your keyring:
This archive self-signs packages uploaded to it (and packages uploaded are verified against a whitelist of trusted uploaders) using OpenPGP (GnuPG, to be more precise).
The key of the archive is in the key.asc file. You should add the key using something like this:
# wget http://apt.opensips.org/key.asc
# apt-key add key.asc
# apt-get update
# apt-get instal opensips
Reference:
http://www.opensips.org/
http://apt.opensips.org/
OpenSIPS (Open SIP Server) is a mature Open Source implementation of a SIP server. OpenSIPS is more than a SIP proxy/router as it includes application-level functionalities. OpenSIPS, as a SIP server, is the core component of any SIP-based VoIP solution. With a very flexible and customizable routing engine, OpenSIPS 'unifies voice, video, IM and presence services in a highly efficient way, thanks to its scalable (modular) design.
What OpenSIPS has to offer, comes in a reliable and high-performance flavour - OpenSIPS is one of the fastest SIP servers, with a throughput that confirms it as a solution up to enterprise or carrier-grade class.
Adding Debian package repository for the OpenSIPS project to your apt sources:
# vi /etc/apt/source.list
deb http://apt.opensips.org/ stable18 main
Adding the archive key to your keyring:
This archive self-signs packages uploaded to it (and packages uploaded are verified against a whitelist of trusted uploaders) using OpenPGP (GnuPG, to be more precise).
The key of the archive is in the key.asc file. You should add the key using something like this:
# wget http://apt.opensips.org/key.asc
# apt-key add key.asc
# apt-get update
# apt-get instal opensips
Reference:
http://www.opensips.org/
http://apt.opensips.org/
Password prompted slowly when using PuTTY to ssh into remote machine
It's most likely DNS issue. Here are few ways to solve:
Add DNS records to local and remote machine:
// on Windows
Edit c:\windows\system32\drivers\etc\hosts
192.168.0.10 debian.local
// on Linux or FreeBSD
# vi /etc/hosts
192.168.6.105 debian.local
Disable remote-controlled window title changing in PuTTY:
PuTTY Configuration > Terminal > Features > check "Disable remote-controlled window title changing".
Add this line to /etc/ssh/sshd_config file:
# vi /etc/ssh/sshd_config
UseDNS no
To restart sshd server:
On CentOS / RHEL / Fedora / Redhat:
# /etc/init.d/sshd restart
or
# service sshd restart
On Debian / Ubuntu:
# /etc/init.d/ssh restart
or
# service ssh restart
On FreeBSD:
# /etc/rc.d/sshd restart
On UNIX:
# kill -HUP `cat /var/run/sshd.pid`
Add DNS records to local and remote machine:
// on Windows
Edit c:\windows\system32\drivers\etc\hosts
192.168.0.10 debian.local
// on Linux or FreeBSD
# vi /etc/hosts
192.168.6.105 debian.local
Disable remote-controlled window title changing in PuTTY:
PuTTY Configuration > Terminal > Features > check "Disable remote-controlled window title changing".
Add this line to /etc/ssh/sshd_config file:
# vi /etc/ssh/sshd_config
UseDNS no
To restart sshd server:
On CentOS / RHEL / Fedora / Redhat:
# /etc/init.d/sshd restart
or
# service sshd restart
On Debian / Ubuntu:
# /etc/init.d/ssh restart
or
# service ssh restart
On FreeBSD:
# /etc/rc.d/sshd restart
On UNIX:
# kill -HUP `cat /var/run/sshd.pid`
Saturday, June 16, 2012
電烙鐵使用心得
電烙鐵使用心得
烙鐵三兄弟:「烙鐵、助焊油膏與調光器」。
烙鐵的價格
我購買的是100多元的普通烙鐵,材質極差,兩三下就會變黑氧化而無法使用,十分不耐用。日系電烙鐵的最大優點在於其電烙鐵頭在高溫下不易氧化變黑,但價格較高,因為我不常用,所以買台製的,不過現在有點後悔,因為才一下子,烙鐵頭就氧化變黑了。查了一下資料,用便宜的烙鐵,還要買「助焊油膏」,這類的烙鐵頭助焊油膏是用來保護烙鐵頭防止氧化的,用法是當烙鐵燒熱之後,三不五時將烙鐵頭直接插入油膏中,激起一陣清煙之後烙鐵頭自然恢復光亮如新的狀態。
好的日製烙鐵頭可以在高溫 400 度以上,不會氧化變黑,而整支烙鐵最重要的無非就是烙鐵頭,因為這關係到焊接時是否吃錫順利,當然日系烙鐵在恆溫還有其他方面也都做的比較好。
比較好的日系牌子有兩大廠,goot 以及 hakko。 我在拍賣找到goot 最便宜的一般恆溫型
40W: KS-40R (290 元)
30W: KS-30R (290 元)
另外一款goot tq-90 或 tq-95兩段式升溫快速烙鐵,20W/130W兩段式快速加熱,輸出功率:Low 15W / High 150W,售價大約600-700元,網路上很多人推薦這款。
烙鐵的瓦數
40W 的拿來對付主板和顯卡,會比較好用。但對電路板或訊號線材有可能過熱了些,可以買「調光器」,利用調光器可以控制電力輸出的功能來控制烙鐵的溫度。調光器 是什麼?您有經驗在卡拉OK包廂裡,見過電燈使用旋鈕開關控制亮度的玩意吧,這類的調光器可以在電氣行或水電行買到,最方便的產品是附上插座的調光器,將 電風扇、檯燈或烙鐵插上調光器,就可以自由控制輸出功率。當銲接電路板或小型接點時,將調光器的功率輸出減半,烙鐵就不會過熱;當銲接喇叭端子等大型接點 時,40瓦全力輸出就綽綽有餘。型狀種類
常見的電烙鐵有筆型和槍型,有塑膠柄 和木柄。木柄的通常比較便宜。不過便宜的東西好像特別容易壞.......除了外觀的不同之外,電烙鐵有分直熱型和旁熱型,旁熱型的電烙鐵很容易分辨,於 烙鐵尖端可以看到兩根螺絲鎖住烙鐵頭。直熱型的日製品最多,大家可以看到烙鐵頭是由套筒套住(烙鐵頭可交換)。其中以直熱式的效率最高。以下純為個人使用心得
- 焊電線時,電線應該完全包覆在焊鍚裡面,不可只焊在表面,否則容易脫落。
- 如果是很多細線組成的電線,應交岔捲成單一條線,再焊入焊鍚內,否則不好焊,也易鬆動。
- 烙鐵絕不可碰觸到其他零件、塑膠或電路板。
- 焊小零件可先用膠布將零件固定在桌上,避免晃動。
- 太精細的工作,不方便用手的話,可利用夾子。
- 焊的時間,儘量縮短,以免燒毀零件。
- 烙鐵頭過大,很容易造成過多的熱量而導致零件燒毀。如果烙鐵頭熱容量比被焊接物小,那麼加熱時間會變的很長,也很可能導致被焊接零件的塑膠部份先損毀。
- 可以將焊鍚加在電線上,再焊在電路板上,比較好焊。
- 如果電線太粗的話,那焊鍚的量不能太少,否則無法焊牢。但焊鍚避免塗到焊點以外的地方,可能造成短路。
- 其實不管哪一牌保養是一定要的。用完之後清除殘鍚,再上一點鍚包住烙鐵頭(這個動作很重要,一定要做)
- 如果真的烙鐵頭已經不能吃鍚了,可以去電子材料行買一種叫:烙鐵頭還原劑。
- 千萬不要拿東西去刮烙鐵頭,這樣用還原劑都救不了。
Reference:
http://save-coco.blogspot.tw/2009/11/blog-post.html
http://www.pcdvd.com.tw/showthread.php?t=971363&page=1&pp=10
烙鐵焊接圖文教學1.0版.pdf
youtube smd 解焊
Friday, June 15, 2012
搭配WLAN HomePlug發展潛力看好
搭配WLAN HomePlug發展潛力看好 | ||||
2005/7 陳冠宏 | ||||
|
Scrum - managing software projects and product
Scrum - is an iterative and incremental agile software development method for managing software projects and product or application development. Scrum has not only reinforced the interest in project management[citation needed], but also challenged the conventional ideas about such management. Scrum focuses on project management institutions where it is difficult to plan ahead. Mechanisms of empirical process control, where feedback loops that constitute the core management technique are used as opposed to traditional command-and-control oriented management.[citation needed] It represents a radically new approach for planning and managing projects, bringing decision-making authority to the level of operation properties and certainties.[1]
Reference:
http://en.wikipedia.org/wiki/Scrum_(development)
Reference:
http://en.wikipedia.org/wiki/Scrum_(development)
Kill kick out terminate a MySQL user session
Kill kick out terminate a MySQL user session
mysql> SHOW FULL PROCESSLIST;
mysql> KILL ID_PROCESS
mysql> SHOW FULL PROCESSLIST;
mysql> KILL ID_PROCESS
Thursday, June 14, 2012
How to shutdown mysql on Windows
You can use either the utility "net":
cmd> net start mysql
cmd> net stop mysql
, Or use the mysqladmin:
cmd> mysqladmin -u root -p shutdown
Note: The user must have the SHUTDOWN privileges.
cmd> net start mysql
cmd> net stop mysql
, Or use the mysqladmin:
cmd> mysqladmin -u root -p shutdown
Note: The user must have the SHUTDOWN privileges.
Wednesday, June 13, 2012
Install Virtualbox on FreeBSD 安裝
Sent to you by Danny via Google Reader:
via Hsian Studio by Anati on 5/23/11
* 從ports來安裝
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
* 裝完設定
# echo 'vboxdrv_load="YES"' >> /boot/loader.conf
# echo 'vboxnet_enable="YES"' >> /etc/rc.conf
# pw groupmod vboxusers -m who_want_to_use_virtual_box
* usb支援設定
# pw groupmod operator -m who_want_to_use_virtual_box
# vim /etc/devfs.rules 加入以下設定
[localrules=10]
add path 'usb/*' mode 0660
表示將usb的device node設為operator群組都可以讀寫# echo 'devfs_system_ruleset="localrules"' >> /etc/rc.conf
如果完成以上動作,只要建立vm的時候將usb controller開啟,那麼winxp啟動的環境下位於virtualbox視窗右下方有一個usb圖案,如果你有連結usb裝置的話,點選就會列出有那些usb裝置可以使用,只要點選了winxp就會偵測到有新裝置插入了
* 共用資料夾設定
當設好共用資料夾之後,要透過windows把這個共用資料夾當成網路磁碟來使用,因此我們要為此共用資料夾新增一個網路磁碟
start -> run -> cmd
C:\> net use z: \\vboxsvr\which_folder_want_to_share
* 直接啟動已建立的vm以xp為例
$ VBoxManage startvm winxp
How to run dd-wrt on VirtualBox
Go to dd-wrt's official website:
http://www.dd-wrt.com/site/support/router-database
search for "x86" in the input box.
Download dd-wrt for x86 platform:
DD-WRT X86 Public Vga: Console image
Convert the downloaded image file to virtualbox image:
cmd> "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" convertdd dd-wrt_public_vga.image dd-wrt.vdi
Create a new virtual machine on VirtualBox:
Opearting System: Linux
Version: Other Linux
Use existing virtual disk: dd-wrt.vdi
VirtualBox Network Setting:
Attached to: Host-only Adapter
Go to File > Preferences > Network > Select "VirtualBox Host-Only Ethernet Adapter" > Edit:
IPv4 Address: 192.168.1.254
IPv4 Network Mask: 255.255.255.0
default password is:
username: root
password: admin
or admin/admin
http://www.dd-wrt.com/site/support/router-database
search for "x86" in the input box.
Download dd-wrt for x86 platform:
DD-WRT X86 Public Vga: Console image
Convert the downloaded image file to virtualbox image:
cmd> "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" convertdd dd-wrt_public_vga.image dd-wrt.vdi
Create a new virtual machine on VirtualBox:
Opearting System: Linux
Version: Other Linux
Use existing virtual disk: dd-wrt.vdi
VirtualBox Network Setting:
Attached to: Host-only Adapter
Go to File > Preferences > Network > Select "VirtualBox Host-Only Ethernet Adapter" > Edit:
IPv4 Address: 192.168.1.254
IPv4 Network Mask: 255.255.255.0
default password is:
username: root
password: admin
or admin/admin
Tuesday, June 12, 2012
Install Nginx, PHP-FPM and Varnish on FreeBSD 8.2
Install Nginx, PHP-FPM and Varnish on FreeBSD 8.2
# cd /usr/ports/www/nginx
# make install clean
Note: make sure you select important option such as:
HTTP_REWRITE_MODULE=on
HTTP_SSL_MODULE=on
and others as per your requirements.
# echo '### Nginx' >> /etc/rc.conf
# echo 'nginx_enable="YES"' >> /etc/rc.conf
# vim /usr/local/etc/nginx/nginx.conf
# /usr/local/etc/rc.d/nginx start
Change this line for nginx:
# vim /usr/local/etc/php.ini
cgi.fix_pathinfo = 0
Note: If you are using drupal 7, you should have "cgi.fix_pathinfo = 0" in php.ini (but wait, according to PHP manual, we should modify the code instead?).
Install php and php-fpm:
// For PHP5.3
# cd /usr/ports/lang/php5 ; make install
// For PHP5.2
# cd /usr/ports/lang/php52 ; make install
===> The following configuration options are available for php5-5.3.8:
CLI=on "Build CLI version"
CGI=on "Build CGI version"
FPM=on "Build FPM version (experimental)"
APACHE=off "Build Apache module"
AP2FILTER=off " Use Apache 2.x filter interface (experimental)"
DEBUG=off "Enable debug"
SUHOSIN=on "Enable Suhosin protection system"
MULTIBYTE=on "Enable zend multibyte support"
IPV6=off "Enable ipv6 support"
MAILHEAD=on "Enable mail header patch"
LINKTHR=on "Link thread lib (for threaded extensions)"
===> Use 'make config' to modify these settings
// For PHP5.3
# cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini
// For PHP5.2
# cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini
Install PHP Extensions
// For PHP5.3
# cd /usr/ports/lang/php5-extensions ; make install
// For PHP5.2
# cd /usr/ports/lang/php52-extensions ; make install
Edit php-fpm.conf:
# vim /usr/local/etc/php-fpm.conf
; comment out following line and add the line below.
;listen = 127.0.0.1:9000
listen = /tmp/php-fpm.sock
request_terminate_timeout=30s
Edit rc.conf
# vim /etc/rc.conf
### php-fpm
php_fpm_enable="YES"
Change this line for nginx
# vim /usr/local/etc/php.ini
date.timezone = America/Vancouver
magic_quotes_gpc = Off
max_execution_time = 120
max_input_time = 60
memory_limit = 256M
upload_max_filesize = 20M
post_max_size = 30M
cgi.fix_pathinfo = 0
log_errors = On
error_log = /var/log/php_errors.log
Note: If you are using drupal 7, you should have "cgi.fix_pathinfo = 0" in php.ini (but wait, according to PHP manual, we should modify the code instead?).
# touch /var/log/php_errors.log
# chown www:www /var/log/php_errors.log
# chmod 660 /var/log/php_errors.log
# /usr/local/etc/rc.d/php-fpm start
# /usr/local/etc/rc.d/nginx restart
# tail /var/log/nginx-error.log
# tail /var/log/php-fpm.log
# tail /var/log/messages
Rotate Nginx and PHP log files:
# vim /etc/newsyslog.conf
/var/log/nginx-access.log 600 7 100000 * JC /var/run/nginx.pid
/var/log/nginx-error.log 600 7 100000 * JC /var/run/nginx.pid
/var/log/php-fpm.log 600 7 100000 * JC /var/run/php-fpm.pid
/var/log/php_errors.log 600 7 100000 * JC
# /etc/rc.d/newsyslog restart
Install Varnish
# cd /usr/ports/www/varnish ; make install clean
Reconfigure your web server to listen on localhost:8080
# echo 'varnishd_enable="YES"' >> /etc/rc.conf
# echo 'varnishd_flags="-s malloc,1G -a 127.0.0.1:80 -b 127.0.0.1:8080"' >> /etc/rc.conf
# echo 'varnishlog_enable="YES"' >> /etc/rc.conf
# /usr/local/etc/rc.d/varnishd start
# /usr/local/etc/rc.d/varnishncsa onestart
# tail /var/log/varnishncsa.log
# /usr/local/bin/varnishtest
# /usr/local/bin/varnishstat
# ls -lh /usr/local/varnish/`hostname`
Install webbench
# cd /usr/ports/benchmarks/webbench ; make install clean
# webbench -c 3000 -t 60 http://test.local/index.php
Reference:
Install Nginx, PHP-FPM and Varnish on FreeBSD 8.2
http://blog.ijun.org/2012/01/install-nginx-php-fpm-and-varnish-on.html
Apache MPM Worker + mod_fastcgi + PHP-FPM
http://gala4th.blogspot.com/2011/07/apache-mpm-worker-modfastcgi-php-fpm.html
Web Performance Tuning Tips Solutions for Drupal Sites
http://gala4th.blogspot.com/2010/12/web-performance-tuning-tips-solutions.html
Running Drupal with Nginx
http://wiki.nginx.org/Drupal
high performance caching reverse proxy: Varnish (安裝架設篇)
http://gala4th.blogspot.com/2010/12/high-performance-caching-reverse-proxy.html
[FreeBSD & Linux]網站分流:簡易架設 HAProxy 伺服器
http://blog.wu-boy.com/2008/06/freebsd-linux%E7%B6%B2%E7%AB%99%E5%88%86%E6%B5%81%EF%BC%9A%E7%B0%A1%E6%98%93%E6%9E%B6%E8%A8%AD-haproxy-%E4%BC%BA%E6%9C%8D%E5%99%A8/
Scaling Rails Site:Reading Material # 1
http://wp.xdite.net/?p=1597
# cd /usr/ports/www/nginx
# make install clean
Note: make sure you select important option such as:
HTTP_REWRITE_MODULE=on
HTTP_SSL_MODULE=on
and others as per your requirements.
# echo '### Nginx' >> /etc/rc.conf
# echo 'nginx_enable="YES"' >> /etc/rc.conf
# vim /usr/local/etc/nginx/nginx.conf
gzip on; gzip_min_length 1000; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; server { server_name mydomain1.com mydomain2.com mydomain3.com; root /usr/local/www/nginx/drupal7; ## <-- Your only path reference. client_max_body_size 20M; # Maximum allowed size for uploaded files location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } # This matters if you use drush location = /backup { deny all; } # Very rarely should these ever be accessed outside of your lan location ~* \.(txt|log)$ { allow 192.168.0.0/24; deny all; } location ~ \..*/.*\.php$ { return 403; } location / { # This is cool because no php is touched for static content try_files $uri @rewrite; } location @rewrite { # Some modules enforce no slash (/) at the end of the URL # Else this rewrite block wouldn't be needed (GlobalRedirect) rewrite ^/(.*)$ /index.php?q=$1; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; ### NOTE: If you are using drupal 7, you should have "cgi.fix_pathinfo = 0" in php.ini (but wait, according to PHP manual, we should modify the code instead?). include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; #fastcgi_pass 127.0.0.1:9000; #pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 fastcgi_pass unix:/tmp/php-fpm.sock; } ### disable PHP execution on upload attachement directory location /sites/default/files/ { location ~ .*\.(php)?$ { deny all; } } # Fighting with ImageCache? This little gem is amazing. location ~ ^/sites/.*/files/imagecache/ { try_files $uri @rewrite; } # Catch image styles for D7 too. location ~ ^/sites/.*/files/styles/ { try_files $uri @rewrite; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires max; log_not_found off; } # nginx status location /NginxStatus { stub_status on; access_log on; auth_basic NginxStatus; auth_basic_user_file conf/htpasswd; } }
# /usr/local/etc/rc.d/nginx start
Change this line for nginx:
# vim /usr/local/etc/php.ini
cgi.fix_pathinfo = 0
Note: If you are using drupal 7, you should have "cgi.fix_pathinfo = 0" in php.ini (but wait, according to PHP manual, we should modify the code instead?).
Install php and php-fpm:
// For PHP5.3
# cd /usr/ports/lang/php5 ; make install
// For PHP5.2
# cd /usr/ports/lang/php52 ; make install
===> The following configuration options are available for php5-5.3.8:
CLI=on "Build CLI version"
CGI=on "Build CGI version"
FPM=on "Build FPM version (experimental)"
APACHE=off "Build Apache module"
AP2FILTER=off " Use Apache 2.x filter interface (experimental)"
DEBUG=off "Enable debug"
SUHOSIN=on "Enable Suhosin protection system"
MULTIBYTE=on "Enable zend multibyte support"
IPV6=off "Enable ipv6 support"
MAILHEAD=on "Enable mail header patch"
LINKTHR=on "Link thread lib (for threaded extensions)"
===> Use 'make config' to modify these settings
// For PHP5.3
# cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini
// For PHP5.2
# cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini
Install PHP Extensions
// For PHP5.3
# cd /usr/ports/lang/php5-extensions ; make install
// For PHP5.2
# cd /usr/ports/lang/php52-extensions ; make install
Edit php-fpm.conf:
# vim /usr/local/etc/php-fpm.conf
; comment out following line and add the line below.
;listen = 127.0.0.1:9000
listen = /tmp/php-fpm.sock
request_terminate_timeout=30s
Edit rc.conf
# vim /etc/rc.conf
### php-fpm
php_fpm_enable="YES"
Change this line for nginx
# vim /usr/local/etc/php.ini
date.timezone = America/Vancouver
magic_quotes_gpc = Off
max_execution_time = 120
max_input_time = 60
memory_limit = 256M
upload_max_filesize = 20M
post_max_size = 30M
cgi.fix_pathinfo = 0
log_errors = On
error_log = /var/log/php_errors.log
Note: If you are using drupal 7, you should have "cgi.fix_pathinfo = 0" in php.ini (but wait, according to PHP manual, we should modify the code instead?).
# touch /var/log/php_errors.log
# chown www:www /var/log/php_errors.log
# chmod 660 /var/log/php_errors.log
# /usr/local/etc/rc.d/php-fpm start
# /usr/local/etc/rc.d/nginx restart
# tail /var/log/nginx-error.log
# tail /var/log/php-fpm.log
# tail /var/log/messages
Rotate Nginx and PHP log files:
# vim /etc/newsyslog.conf
/var/log/nginx-access.log 600 7 100000 * JC /var/run/nginx.pid
/var/log/nginx-error.log 600 7 100000 * JC /var/run/nginx.pid
/var/log/php-fpm.log 600 7 100000 * JC /var/run/php-fpm.pid
/var/log/php_errors.log 600 7 100000 * JC
# /etc/rc.d/newsyslog restart
Install Varnish
# cd /usr/ports/www/varnish ; make install clean
Reconfigure your web server to listen on localhost:8080
# echo 'varnishd_enable="YES"' >> /etc/rc.conf
# echo 'varnishd_flags="-s malloc,1G -a 127.0.0.1:80 -b 127.0.0.1:8080"' >> /etc/rc.conf
# echo 'varnishlog_enable="YES"' >> /etc/rc.conf
# /usr/local/etc/rc.d/varnishd start
# /usr/local/etc/rc.d/varnishncsa onestart
# tail /var/log/varnishncsa.log
# /usr/local/bin/varnishtest
# /usr/local/bin/varnishstat
# ls -lh /usr/local/varnish/`hostname`
Install webbench
# cd /usr/ports/benchmarks/webbench ; make install clean
# webbench -c 3000 -t 60 http://test.local/index.php
Reference:
Install Nginx, PHP-FPM and Varnish on FreeBSD 8.2
http://blog.ijun.org/2012/01/install-nginx-php-fpm-and-varnish-on.html
Apache MPM Worker + mod_fastcgi + PHP-FPM
http://gala4th.blogspot.com/2011/07/apache-mpm-worker-modfastcgi-php-fpm.html
Web Performance Tuning Tips Solutions for Drupal Sites
http://gala4th.blogspot.com/2010/12/web-performance-tuning-tips-solutions.html
Running Drupal with Nginx
http://wiki.nginx.org/Drupal
high performance caching reverse proxy: Varnish (安裝架設篇)
http://gala4th.blogspot.com/2010/12/high-performance-caching-reverse-proxy.html
[FreeBSD & Linux]網站分流:簡易架設 HAProxy 伺服器
http://blog.wu-boy.com/2008/06/freebsd-linux%E7%B6%B2%E7%AB%99%E5%88%86%E6%B5%81%EF%BC%9A%E7%B0%A1%E6%98%93%E6%9E%B6%E8%A8%AD-haproxy-%E4%BC%BA%E6%9C%8D%E5%99%A8/
Scaling Rails Site:Reading Material # 1
http://wp.xdite.net/?p=1597
Sunday, June 10, 2012
pretty BIOS GUI Interface - Unified Extensible Firmware Interface
pretty BIOS GUI Interface - Unified Extensible Firmware Interface
The Unified Extensible Firmware Interface (UEFI) is a specification that defines a software interface between an operating system and platform firmware. UEFI is meant as a replacement for the BIOS firmware interface, present in all IBM PC-compatible personal computers.[1][2] In practice, most UEFI images have legacy support for BIOS services. It can be used to allow remote diagnostics and repair of computers (and security exploits), even without another operating system. [3]
The original EFI (Extensible Firmware Interface) specification was developed by Intel. Some of its practices and data formats mirror ones from Windows.[4][5] In 2005, UEFI deprecated EFI 1.10 (final release of EFI). The UEFI specification is managed by the Unified EFI Forum.
Reference:
http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface
The Unified Extensible Firmware Interface (UEFI) is a specification that defines a software interface between an operating system and platform firmware. UEFI is meant as a replacement for the BIOS firmware interface, present in all IBM PC-compatible personal computers.[1][2] In practice, most UEFI images have legacy support for BIOS services. It can be used to allow remote diagnostics and repair of computers (and security exploits), even without another operating system. [3]
The original EFI (Extensible Firmware Interface) specification was developed by Intel. Some of its practices and data formats mirror ones from Windows.[4][5] In 2005, UEFI deprecated EFI 1.10 (final release of EFI). The UEFI specification is managed by the Unified EFI Forum.
Reference:
http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface
Subscribe to:
Posts (Atom)