
linux
清风半夜鸣蝉
一个NPC的日常。
展开
-
使用yum时报错
[root@iZ2535el0z8Z /]# yumrpmdb: unable to join the environmenterror: db3 error(11) from dbenv->open: Resource temporarily unavailableerror: cannot open Packages index using db3 - Resource temporar原创 2016-12-22 15:12:49 · 6531 阅读 · 0 评论 -
Shell脚本并杀死进程
#!/bin/shNAME=$1echo $NAMEID=`ps -ef | grep "$NAME" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`echo $IDecho "---------------"for id in $IDdokill -9 $idecho "killed $id"do原创 2016-12-20 20:47:16 · 24976 阅读 · 1 评论 -
服务器linux常用命令
1、查看所有端口占用情况netstat -ntlp2、查看具体端口的占用情况netstat -anltup|grep :36903、查看当前目录下所有文件包括隐藏文件ll -a4、防火墙关闭防火墙:service iptables stop查看防火墙状态:/etc/init.d/iptables status防火墙开放指定端口:iptables -I原创 2016-12-04 16:22:36 · 724 阅读 · 0 评论