The TCP/IP and OSI Network Models

@See http://www.speedguide.net/articles/the-tcpip-and-osi-network-models-120 The OSI Network Model The OSI (Open System Interconnection) 7-layer reference model defines a concept of moving information… Continue reading
Posted in Network Protocol| Tagged , | 2 Comments

Subversion on Ubuntu Server

1. Environment Ubuntu Server 10.10 Subversion 1.6.6 2. Install Subversion [codesyntax lang="bash" lines="no" container="pre" tab_width="4"] $ su root $ apt-get install subversion [/codesyntax] 3. Loca… Continue reading
Posted in SVN| Tagged , | Leave a comment

Nginx and PHP-FPM for Ubuntu

1. Install and Start Nginx (a) use apt-get [codesyntax lang="bash" lines="no" container="pre" tab_width="4"] $ su $ apt-get install nginx $ update-rc.d nginx defaults $ /etc/init.d/nginx start [/codes… Continue reading
Posted in Nginx, PHP, Ubuntu| Tagged , , | Leave a comment

Shell – MySQL Query

[codesyntax lang="bash" lines="no" container="pre" tab_width="4"] #!/bin/bash # configs host='localhost'; user='kim'; pass='xxxxxx'; database='test_database'; # select from database query=`mysql -h$ho… Continue reading
Posted in Linux| Tagged , | Leave a comment

Sending email by crontab and sendmail

1. /home/www/mailq/sendmail.sh [codesyntax lang="bash" lines="no" container="pre" tab_width="4"] #!/bin/bash user='kim'; subject='hello kim'; content='this is just a test email.'; from='kim@example.co… Continue reading
Posted in Linux| Tagged , | Leave a comment

Custom PHP Extension in C

For Linux (Ubuntu Server) 1. Installation [codesyntax lang="bash" lines="no" container="pre" tab_width="4"] $ sudo apt-get install gcc $ sudo apt-get install php5-dev [/codesyntax] 2. PHP Source Packa… Continue reading
Posted in PHP, Ubuntu| Tagged , | Leave a comment

Shell – count the keyword

[codesyntax lang="bash" lines="no" container="pre" tab_width="4"] #!/bin/bash # perhaps the field to be analyted is the 2nd field log=/path/to/log; keyword=”the keyword”; cat $log | cut -f2 | grep $ke… Continue reading
Posted in Linux| Tagged | Leave a comment

SSH and SecureCRT

1. Environment Ubuntu Server 10.10 SecureCRT 6 OpenSSH 5.3 2. OpenSSH Installations [codesyntax lang="bash" lines="no" container="pre" tab_width="4"] $ sudo apt-get install openssh-server openssh-clie… Continue reading
Posted in Ubuntu| Tagged , , | Leave a comment