#การใช้ netstat ตรวจสอบการถูกยิงด้วย syn คำสั่ง netstat -ntu | grep SYN_RECV | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nrอันนี้จะบอกว่า ณ ขณะเวลานั้นๆ มีคนส่ง syn เข้ามาเพื่อขอเชื่อมกับ server ของเรา โดยปกติไม่ควรเกิน 10 ครั้งต่อ 1 IP.. อ่านต่อ ( read more» )
Pages 4 Command | tags
Command | ป้องกันโดนยิงเครื่อง server
Security Linux CommandCommand | Install MRTG Directadmin CentOS 5 32/64bit
CentOS DirectAdmin Command MRTGProblem : MRTG Graph in DirectAdmin cp + CentOS Solutions: yum -y install gd gd-devel libpng libpng-devel zlib zlib-devel net-snmp net-snmp-utils mrtg chkconfig snmpd on cd /etc/snmp/ mv snmpd.conf snmpd.conf.bak vim snmpd.conf############ syslocatio.. อ่านต่อ ( read more» )
Command | Check PHP Warning Extension
PHP CommandPloblem: “PHP Warning: PHP Startup: Unable to load dynamic library ‘./usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so’ - ./usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so: cannot open shared object file: .. อ่านต่อ ( read more» )
Command | Change Localtime and Update Linux
PHP Command Linux CentOS DebianSolutions: Change and Update Time Zone (Bangkok ICT) on CentOS/Debian or other Linux rm -f /etc/localtime ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime #or #export TZ=Asia/Bangkok vim /usr/local/lib/php.ini date.timezone = Asia/Bangkok #or .. อ่านต่อ ( read more» )
Command | Driver Realtek CentOS
Realtek Command Driver CentOSProblem: M/B asus P5-Q-VM Driver or Atom Lan “Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller” not work in CentOS 5.3 , it’s ping time out and high. Solutions: Install Downgrade/upgrade wget -O /etc/yum.repos.d/t.. อ่านต่อ ( read more» )
Command | Install libpcre.so.0 (libpcre3) Debian
Command DebianProblem: ./map-server_sql: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory Solutions: aptitude install libpcre3 libpcre3-dev.. อ่านต่อ ( read more» )
Command | There is no public key available for the following key IDs
Command DebianProblem : I have problem when I run “apt-get update” on debian5(lenny). “There is no public key available for the following key IDs” Solution : “There is no public key available for the following key IDs” apt-get install debian-keyring debian-archive.. อ่านต่อ ( read more» )
Command | Search replace with find, perl, sed Linux command
Command Sed Perl Linux Find Regexuse “find” cgi/perl file in web server with directadmin find /home/*/domains/*/public_html/cgi-bin/ -iname *.cgi -ls find /home/*/domains/*/public_html/cgi-bin/ -iname *.pl -ls find /home/*/domains/*/private_html/cgi-bin/ -iname *.cgi -ls find /home/.. อ่านต่อ ( read more» )
Command | XsltProcessor is Off, you should install XsltProcessor DirectAdmin
CentOS DirectAdmin Command DebianOS CentOS yum install libxml2-devel libxslt-devel libgcrypt-devel OS Debian aptitude install libxslt1.1 libxslt1-dev libgcrypt11-dev libxml2 libxml2-dev Edit config for Custombuild DirectAdmin cd /usr/local/directadmin/custombuild vim configure/ap2/c.. อ่านต่อ ( read more» )
Command | Optimize MySQL all Databases mysqlcheck
Linux Database mysqlcheck Command MySQL DirectAdminหลังจากที่เราใช้ MySQL Tunner ไปแล้ว พบว่า จำเป็นต้อง optimize tables แต่จะทำไงให้ optimize database ได้ทุกตาราง ซึ่งมีวิธีง่ายๆ สามารถใช้คำสั่งนี้ในการ Optimize MySql ทุก databases ประมานี้ เครื่อง Linux ทั่วไป mysqlcheck -Aao --auto-repair --silent.. อ่านต่อ ( read more» )