上一页 1 ··· 4 5 6 7 8
摘要: 功能: seq命令用于以指定增量从首数开始打印数字到尾数 格式: [2] seq [选项] 首数 尾数 [3] seq [选项] 首数 增量 尾数选项: 选项: -f, --format=FORMAT //指定格式格式 use printf style floating-point FORMAT - 阅读全文
posted @ 2019-12-09 20:44 Databasess 阅读(348) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashnginx=/usr/local/nginx/sbin/nginx #把nginx的启动定义成变量 方便被调用check(){ #check 检查 测试nginx是否启动 输出nginx的启动或关闭 netstat -ntlp |grep nginx if [ $? -eq 0 阅读全文
posted @ 2019-12-07 10:09 Databasess 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 作用: 用于找文件里符合的字符串是 Globally search a Regular Expression and Print的缩写,表示进行全局的正则匹配并进行打印 格式: grep [OPTIONS] [-e PATTERN | -f FILE] [FILE...] 参数: -a 或 --te 阅读全文
posted @ 2019-12-07 10:00 Databasess 阅读(1486) 评论(0) 推荐(0) 编辑
摘要: 功能: 用于shell启动进程所占用的资源 格式: 选项: -a:显示目前资源限制的设定; -c <core文件上限>:设定core文件的最大值,单位为区块; -d <数据节区大小>:程序数据节区的最大值,单位为KB; -f <文件大小>:shell所能建立的最大文件,单位为区块; -H:设定资源的 阅读全文
posted @ 2019-12-06 14:09 Databasess 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 示意图: 代码展示 [root@ localhost ~]# vim nginx.sh #!/bin/bash service iptables stop setenforce 0 netstat -ntlp |grep nginx if [ $? -eq 0 ];then echo "nginx安 阅读全文
posted @ 2019-12-05 20:10 Databasess 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 源码安装 1.yum -y install gcc gcc-c++ pcre-devel zlib-devel 安装相关依赖 2.导入 nginx 源码包 yum -y install lrzsz 3.解压源码包 解压到root下 tar -zxvf nginx-1.16.1.tar.gz 4. 编 阅读全文
posted @ 2019-12-05 14:32 Databasess 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8