杂七杂八

查看某进程连接状态
netstat -pna | grep 'nginx: worker' | awk '{print $5}' |awk -F: '{print $1 }' | sort | uniq -c
<pre id="best" -content-905017951"="" class="best-text mb-10">授权法。例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
如果你想允许用户myuser从ip为192.168.1.3的主机连接到mysql服务器,并使用mypassword作为密码
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

 
 

/usr/local/ganglia/bin/gmetric -g 分组名称   -c /usr/local/ganglia/etc/gmond.conf  --name="NUMBER_MAC_online_yesterday"  --value="$NUM_MAC" --type="int32" --units="day"


rrdtool查看rrd文件内容rrdtool fetch  anhuiyidong.rrd  AVERAGE


从mysqlbinlog导出某库的sql

mysqlbinlog  --database=db_name  --start-position='3217'  --stop-prsition='5284'  mysql-bin.000021 > /tmp/myback-0124.sql

你可能感兴趣的:(netstat)