上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 34 下一页
  2015年1月26日
摘要: 查什么占用了端口 netstat -nlp |grep :80root@zzx:/usr/local/mysql# netstat -nlp |grep :80tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 25269/nginx.conf#查看mysql实例的状态[root... 阅读全文
posted @ 2015-01-26 19:51 寒星12345678999 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 创建或解压tar.xz文件的方法习惯了 tar czvf 或 tar xzvf 的人可能碰到 tar.xz也会想用单一命令搞定解压或压缩。其实不行 tar里面没有征对xz格式的参数比如 z是针对 gzip,j是针对 bzip2。创建tar.xz文件:只要先 tar cvf xxx.tar xxx/ ... 阅读全文
posted @ 2015-01-26 15:39 寒星12345678999 阅读(239) 评论(0) 推荐(0) 编辑
摘要: centos下载 http://ftp.sjtu.edu.cn/centos/7.9.2009/isos/x86_64/ http://isoredirect.centos.org/centos/7/isos/x86_64/?spm=a2c6h.12873639.article-detail.4.6 阅读全文
posted @ 2015-01-26 11:14 寒星12345678999 阅读(339) 评论(2) 推荐(0) 编辑
摘要: 因为是centos linux,默认可以采用yum方式安装,则采用如下命令安装gcc编译器即可:# yum -y install gcc安装更新了如下几个组件:gcc 4.1.2-44.el5binutils 2.17.50.0.6-9.el5cpp 4.1.2-44.el5glibc-devel ... 阅读全文
posted @ 2015-01-26 11:13 寒星12345678999 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Linux mint 12 修改加速软件源更新和安装 ubuntu 软件中心由于 linux mint 12 是基于 ubuntu 的,可以使用 ubuntu 的源(Ubuntu 11.10 代号 Oneiric Ocelot),要想 获得最快的下载速度可以把/etc/apt/sources.lis... 阅读全文
posted @ 2015-01-26 09:37 寒星12345678999 阅读(635) 评论(0) 推荐(0) 编辑
  2015年1月23日
摘要: hostnamectl status #查计算机名 系统版本[zzx@ZZXOS a]$ cat /etc/redhat-releaseCentOS Linux release 7.0.1406 (Core)[zzx@ZZXOS a]$ uname -aLinux ZZXOS 3.10.0-123.... 阅读全文
posted @ 2015-01-23 15:18 寒星12345678999 阅读(108) 评论(0) 推荐(0) 编辑
  2015年1月22日
摘要: 大家在使用find命令中的mtime参数时候,会看到官方的解释如下:-mtime n File's data was last modified n*24 hours ago. See the comments for -atime to understand how rounding ... 阅读全文
posted @ 2015-01-22 17:48 寒星12345678999 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 前言经常要查看进程的信息,包括进程的是否已经消亡,通过pgrep来获得正在被调度的进程的相关信息。pgrep通过匹配其程序名,找到匹配的进程重要选项-l 同时显示进程名和PID-o 当匹配多个进程时,显示进程号最小的那个-n 当匹配多个进程时,显示进程号最大的那个注:进程号越大,并不一定意味着进程的... 阅读全文
posted @ 2015-01-22 15:13 寒星12345678999 阅读(280) 评论(0) 推荐(0) 编辑
  2015年1月21日
摘要: 最常使用的前十个shell命令zzx@zzx120:~$ history | sort -k2 | awk '{print $2}' | uniq -c | sort -k1 -nr | head -n10 142 cat 96 echo 95 ls 86 find 78 vim 76 awk 68... 阅读全文
posted @ 2015-01-21 22:06 寒星12345678999 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 参考tr -dctr -d大小写替换echo abc|tr '[a-z]' '[A-Z]'str="This is a Bash Shell script."newstr=`tr '[A-Z]' '[a-z]' <<<"$str"` 阅读全文
posted @ 2015-01-21 21:49 寒星12345678999 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 34 下一页