sync; dd if=/dev/zero of=tmp4bench bs=1M count=1024; dd if=tmp4bench of=/dev/zero bs=1M count=1024; rm -f tmp4bench ; sync hdparm -Tt /dev/sda
centos 7 : cpu, mem info Hint
# free # cat /proc/meminfo | grep MemTotal # grep -c processor /proc/cpuinfo # grep ^processor /proc/cpuinfo | wc -l # grep 'cpu cores' /proc/cpuinfo | tail -1
apache : concurrent connection Hint
80 port concurrent connection count # netstat -nap | grep :80 | grep ESTABLISHED | wc -l 80 port connection count # netstat -n|grep -F :80|egrep '(ESTAB|SYN)'|awk '{print $5}'|sed 's/:[0-9]*//'|sort -u|wc -l all port connection count # netstat -nap | grep ESTABLISHED | wc -l
centos 7 : install node.js
# yum repolist check epel .... # yum install npm nodejs # node -v # npm -v
centos 7 : ntpd kernel level time sync Hint, NTP synchronized timedatectl
centos 7 NTP synchronized # timedatectl status # timedatectl set-ntp true More Hint! # timedatectl | grep -i 'time zone' # ls -l /etc/localtime # timedatectl list-timezones | grep Asia/Seoul # timedatectl set-timezone Asia/Seoul Asia/Seoul => KST yum install -y ntp firewall-cmd --add-service=ntp --permanent firewall-cmd --reload systemctl enable ntpd systemctl […]
mysql : process monitor Hint
# mysqladmin -u root -p passwd -i 1 processlist
linux : catch long processes with thread info Hint
# ps -e -T | grep mysql | grep "[0-9][0-9]:[0-9][1-9]:[0-9][0-9]\s"
linux : top with thread info Hint
# top -H -p `ps aux | grep mysql | awk '{print $2}' | paste -s -d ',' `
CentOS7 : /caucho-status setup with .htpasswd in VirtualHost, using pure php Hint
configurate apache-caucho /etc/httpd/conf/httpd.conf LoadModule caucho_module modules/mod_caucho.so <Location /caucho-status> AuthType Basic AuthName "restricted area" AuthUserFile /home/domain/.htpasswd require valid-user SetHandler caucho-status </Location> <Location /servlet/*> SetHandler caucho-request </Location> NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain.com DocumentRoot /home/domain/public_html php_admin_value open_basedir /home/domain:/tmp php_admin_value include_path /home/domain LimitRequestLine 81900 <FilesMatch "^((?!\.php).)*$"> ResinConfigServer localhost 6800 CauchoConfigCacheDirectory /etc/httpd CauchoStatus yes </FilesMatch> […]
CentOS 7 : /resin-admin setup Hint
/etc/resin/resin.properties app.http : 8080 web.http : 8080 remote_admin_enable : true web_admin_enable : true web_admin_external : true admin_external : true admin_secure : true http://www.domain.com:8080/resin-admin/login.php Generate encrypted password by [Create Configuration FIle] /etc/resin/admin-users.xml <resin:AdminAuthenticator xmlns="http://caucho.com/ns/resin" […]