Linux查看物理CPU个数、核数、逻辑CPU个数

总核数 = 物理CPU个数 X 每颗物理CPU的核数总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数查看物理CPU个数cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l查看每个物理CPU中core的个数(即核数)cat /proc/cpuinfo| grep "cpu cores&

- 阅读全文 -

mysqld dead but subsys locked

这种一般都是mysql不正常关闭造成的,可以先删除pid文件,之后再重新启动mysql就好了查看pid文件位置cat /etc/my.cnf|grep pidpid-file=/var/run/mysqld/mysqld.pid可以看到pid文件位置是/var/run/mysqld/mysqld.pid删除pid文件rm -f /var/run/mysqld/mysqld.pid重新启动mysql

- 阅读全文 -

git clone 报错 fatal: HTTP request failed

git clone https://github.com/cppla/ServerStatus.gitInitialized empty Git repository in /var/www/html/ServerStatus/.git/error: while accessing https://github.com/cppla/ServerStatus.git/info/refsfatal:

- 阅读全文 -

ServerStatus安装

安装所需要的环境yum install gcc gcc-c++ kernel-devel -yServerStatus代码我放在了html目录下了cd /var/www/html克隆代码git clone https://github.com/cppla/ServerStatus.git安装生成服务端安装文件sergatecd ServerStatus/server makeServer执行noh

- 阅读全文 -

CentOS使用yum安装redis

yum install redisLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfilebase: mirrors.usc.eduextras: repos.lax.quadranet.comupdates: mirrors.usc.eduSetting up Install ProcessNo package

- 阅读全文 -

腾讯注销账号功能正式开启

3月13日(今日),腾讯面向手机QQ安卓版用户推送了v7.9.9版本更新,本次更新主要带来了许多用户关注的QQ账号注销功能。对于这个功能,有网友表示,这不是注销QQ号,是注销一代人的青春。作为一款社交工具,QQ为一代人留下了深刻的记忆,尤其是现在的一批80、90后,什么时候申请的QQ号、在哪里申请的都记忆犹新。不过几年前网友们开始讨论,当自己去世的时候,QQ号该如何处理?子女也不知道自己的密码,那

- 阅读全文 -

iptables删除一条规则

查找所有规则/sbin/iptables -L INPUT --line-numbers删除一条规则(注意,这个11是行号,是iptables -L INPUT --line-numbers 所打印出来的行号)/sbin/iptables -D INPUT 11

- 阅读全文 -