摘要: 首先使用dpkg命令查看自己需要的软件是否安装。 例如查看zlib是否安装: dpkg -l | grep zlib 解决依赖包openssl安装,命令: sudo apt-get install openssl libssl-dev 解决依赖包pcre安装,命令: [cpp] view plain 阅读全文
posted @ 2017-07-06 09:24 chent 阅读(1179) 评论(0) 推荐(0) 编辑
摘要: #查找含有字符串 '1234' 的文件 grep '1234' /opt/app/nginx/conf/vhosts/*.conf #查看文件大小 du -h --max-depth=1 阅读全文
posted @ 2017-03-31 14:25 chent 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1. 监控系统状态 – w, vmstat命令w, uptimesystem load averages 单位时间段内活动的进程数 查看cpu的个数和核数vmstat 1vmstat 1 10vmstat各指标含义:r :表示运行和等待cpu时间片的进程数,如果长期大于服务器cpu的个数,则说明cp 阅读全文
posted @ 2017-03-07 10:42 chent 阅读(2356) 评论(0) 推荐(0) 编辑
摘要: 输出所有的文件名(用空格分割) xargs就是将ls的输出,每10个为一组(以空格为分隔符),作为rm -rf的参数也就是说将所有文件名10个为一组,由rm -rf删除 阅读全文
posted @ 2017-03-06 17:36 chent 阅读(354) 评论(0) 推荐(0) 编辑
摘要: vi /opt/sh/nginx_cut_logs.sh 阅读全文
posted @ 2017-03-06 09:51 chent 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-03-02 11:59 chent 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.PHP安装 依赖安装 添加www账户 下载php源码 编译php PS:错误解决 make ZEND_EXTRA_LIBS='-liconv' a. configure: error: Cannot find ldap libraries in /usr/lib 解决办法: cp -frp /u 阅读全文
posted @ 2017-03-01 14:36 chent 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 1.错误提示 2.解决方法 阅读全文
posted @ 2017-03-01 12:08 chent 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1.查看要挂载的空间 2.添加分区 fdisk 对应分区 相继输入 n, p, 1, wq 3.查看当前分区情况 4.格式化分区 5.挂载硬盘 阅读全文
posted @ 2017-03-01 12:02 chent 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 1.当前终端后端运行 2.退出终端仍然后端运行 阅读全文
posted @ 2017-02-27 17:47 chent 阅读(200) 评论(0) 推荐(0) 编辑