Archive for the ‘system’ Category

Edit ld.config on solaris 10

Posted: 28th July 2010 by admin in system

Edit Default Library Path on solaris 10 type “crle” for list Default Library Path crle Configuration file [version 4]: /var/ld/ld.config Default Library Path (ELF): /usr/local/lib:/lib:/usr/lib Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default) Command line: crle -c /var/ld/ld.config -l /usr/local/lib:/lib:/usr/lib type “crle -c /var/ld/ld.config -l /usr/local/lib:/lib:/usr/lib” to change Default Library Path crle -c /var/ld/ld.config -l /usr/local/lib:/lib:/usr/lib

ubuntu build essential

Posted: 2nd January 2010 by admin in system

apt-get install build-essential

command count tcp state

Posted: 8th June 2009 by admin in network, system
Tags:

netstat -tan | grep ‘:80 ‘ | awk ‘{print $6}’ | sort | uniq -c

ตัวอย่างนี้เป้นการป้องกันไม่ให้ user apache ใช้งาน crontab [root@demo01 ~]#echo “apache” >> /etc/cron.deny