aptitude -y install mrtg mkdir /usr/local/bin/mrtgx/ vim /usr/local/bin/mrtgx/mem.sh#!/bin/sh USED=`free -b|grep cache:|cut -d : -f2|cut -c1-11` #FREE=`free -b|grep cache:|cut -d : -f2|cut -c12-22` echo $USED echo $USED (more…).. อ่านต่อ ( read more» )
Pages 2 Command | tags
Command | How to install MRTG without SNMP
MRTG Debian CommandCommand | How to upgrade PHP5.2|5.3|5.4|5.5 with DirectAdmin
Command DirectAdmin PHPวิธีการติดตั้ง php 5.3.x ให้ใช้งานได้บน server ที่ลง 5.2.x เดิมอยู่แล้ว โดยใช้ทริคที่ว่าให้ระบบมอง php5.3 เป็น php6 โดยมีขั้นตอนตามนี้ *This trick will work with CustomBuild 1.2 (PHP5.2 as CLI and 5.3 as CGI (suPHP)): cd /usr/local/directadmin/custom.. อ่านต่อ ( read more» )
Command | How to install mod_evasive (block DDoS Apache)
DirectAdmin Security Debian CommandMod_evasive คือ module เสริม ชนิดหนึ่งของ apache ซึ่งทำหน้าที่ ตรวจจับ การ request ผ่าน service apache โดย มีขั้นตอนการทำงาน คือ ถ้า IP ใด มีการ request เข้ามาขอบริการ เป็นจำนวนมาก ผิดปรกติ แล้ว mod ตัวนี้ จะทำการ ban IP ดังกล่าว ซึ่งจะเป็นการช่วยป้อ.. อ่านต่อ ( read more» )
Command | Extract filename UNIX all in one
Linux CommandAdd this to your ~/.bashrc extract () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xvjf $1 && cd $(basename $1 .tar.bz2);; *.tar.gz) tar xvzf $1 && cd $(basename $1 .tar.gz);; *.tar.xz) tar Jxvf $1 && cd $(basename $1 .tar.xz);; *.bz2) bunzi.. อ่านต่อ ( read more» )
Command | How to Install wine in CentOS 5 (4|6)
Command CentOSProblem: no package wine in Yum install yum install wine Loading “fastestmirror” plugin Loading mirror speeds from cached hostfile * base: centose.centos.org * updates: centosj.centos.org * addons: centosh3.centos.org * extras: centose-msync-dvd.cent.. อ่านต่อ ( read more» )
Command | How to Install Memcached & PHP-Memcache on Debian 5.0.x 64bit DirectAdmin installed
Command Debian DirectAdmin PHP#1. Install library libevent cd /tmp #wget http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz #tar xzvf libevent-1.4.13-stable.tar.gz #cd libevent-1.4.13-stable curl -O -L https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.t.. อ่านต่อ ( read more» )
Command | How to Install ionCube Loader on Debian 5.0.x 64bit DirectAdmin installed
Debian PHP Command DirectAdmin#1. Install file module cd /tmp/ wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar xvfz ioncube_loaders_lin_x86-64.tar.gz mv ioncube /usr/local/lib/ (more…).. อ่านต่อ ( read more» )
Command | How to Install Zend Optimize on Debian 5.0.x 64bit DirectAdmin installed
Command PHP DirectAdmin Debian#1. Install file module (PHP 5.2.x) cd /tmp/ wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz tar xvfz ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz cd ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_.. อ่านต่อ ( read more» )
Command | วิธี SSH ข้ามเซิฟเวอร์โดยไม่ใส่รหัสผ่าน
Command Linuxยกตัวอย่างเช่น ssh จากเครื่อง A ไปเครื่อง B โดยไม่ใช้รหัสผ่านในการ shell @เครื่อง A ssh-keygen -t rsa (มีอะไรขึ้นมาก็กด enter ผ่านไปให้หมด แล้วพิมพ์คำสั่งด้านล่าง เพื่อเตรียมก็อบค่าไว้) cat /root/.ssh/id_rsa.pub @เครื่อง B vim /root/.ssh/authorized_k.. อ่านต่อ ( read more» )
Command | Change charset in MySQL 5.5 with my.cnf
Command MySQL1.Login msyql command mode and query mysql check character below mysql> show variables like %character%;show variables like %collation%; 2.edit my.cnf [mysql] default-character-set=utf8 [mysqld] collation_server=utf8_general_ci character_set_serv.. อ่านต่อ ( read more» )
#Search \ keywords.
#Subscribe \ newsletter.
รับข้อมูลข่าวสารก่อนใคร กรอก email ได้เลย ไม่พลาดทุกบทความดีๆ จากเรา
*รบกวนยืนยันรับข่าวสารที่อีเมล์อีกรอบด้วยนะครับ **ไม่มีการสแปมใดๆ ทั้งสิ้น และสามารถยกเลิกรับข่าวสารได้ตลอดเวลา +1