摘要:
系统负载 # mount | column -t # 查看挂接的分区状态 # fdisk -l # 查看所有分区 # swapon -s # 查看所有交换分区 # hdparm -i /dev/hda # 查看磁盘参数(仅适用于IDE设备) # dmesg | grep IDE # 查看启动时IDE 阅读全文
posted @ 2015-10-16 12:02
SandKing
阅读(4)
评论(0)
推荐(0)
摘要:
ps x 查看在跑的进程 kill -9 对应得进程号 查看错误日志 tail -f error201505100000000 grep "reset ok" -wn * grep "reset ok" -wn *debug.log grep "recv client \[123\], cmd = 阅读全文
posted @ 2015-10-16 12:01
SandKing
阅读(6)
评论(0)
推荐(0)
摘要:
#!/bin/bash function down_load_file(){ source_ip="$1$2" command="scp -P10022 $source_ip@$source_ip:~/$4 $5" expect -c " set timeout 36000; spawn $comm 阅读全文
posted @ 2015-10-16 11:56
SandKing
阅读(4)
评论(0)
推荐(0)
摘要:
user_list abc 100 def 200 #!/bin/bash db_name="game_s1" db_user="db_user_s1" db_password="123456" db_host="127.0.0.1" title="000" body="1111" while re 阅读全文
posted @ 2015-10-16 11:42
SandKing
阅读(5)
评论(0)
推荐(0)
摘要:
date命令将日期设置为2014年6月18日 date -s 06/18/14 将时间设置为14点20分50秒 date -s 14:20:50 将时间设置为2014年6月18日14点16分30秒(MMDDhhmmYYYY.ss) date 0618141614.30 //2010年4月5日 dat 阅读全文
posted @ 2015-10-16 10:53
SandKing
阅读(8)
评论(0)
推荐(0)
摘要:
1.登录MySQL mysql -uroot -p123456 db_1 参数:u用户名 p密码 数据库名 2. 导入数据库 drop database if exists game_s1; create database game_s1; use game_s1; select database( 阅读全文
posted @ 2015-10-16 10:51
SandKing
阅读(9)
评论(0)
推荐(0)

浙公网安备 33010602011771号