码迷,mamicode.com
首页 >  
搜索关键字:awk ping echo    ( 24629个结果
linux shell while循环
1、测试1 [root@centos7 test2]# i=0 [root@centos7 test2]# max=5 [root@centos7 test2]# while((i<max));do echo $i;((i++));done 0 1 2 3 4 ...
分类:系统相关   时间:2021-04-23 12:03:54    阅读次数:0
debian 升级内核
今天决定把Debian 10.1自带的4.19内核升级到5.2.14。 需要的工具automake、make、g++(包含gcc)、bison、flex、libelf-dev、libssl-dev、bc。 懒人命令: sudo apt install -y automake make g++ bis ...
分类:其他好文   时间:2021-04-23 11:58:49    阅读次数:0
linux shell if语句
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:系统相关   时间:2021-04-23 11:53:02    阅读次数:0
linux 系统中read命令
1、read从键盘读入 [root@centos7 test]# echo $a [root@centos7 test]# read a 123456 [root@centos7 test]# echo $a 123456 2、-p 参数 加入提示 [root@centos7 test]# unse ...
分类:系统相关   时间:2021-04-22 15:41:37    阅读次数:0
Django多数据库
Django版本2.2 Python版本3.7 第一步:在settings文件中配置多数据库 DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, ...
分类:数据库   时间:2021-04-22 15:41:22    阅读次数:0
如何快速批量创建文本文档?
在要创建文档的文件夹里新建一个文本文档。 打开该文档,把下面的命令复制粘贴进去。 命令: @echo off for /L %%x in (1,1,10) do @echo %%x>%%x.txt 按下ctrl+S键保存该内容后,关闭该文档。 选择该文档,按下f2键进行重命名。把后缀名改为bat。 ...
分类:其他好文   时间:2021-04-22 15:18:09    阅读次数:0
统计tomcat的access日志
统计tomcat的access日志的ip次数,并按次数排序 awk '{sum[$1]++}END{for(i in sum) print i "\t" sum[i]}' localhost_access_log.* | sort -n -k2 统计某个接口的调用时间 awk '{if($7~/.* ...
分类:数据库   时间:2021-04-21 12:18:10    阅读次数:0
多台主机的局域网中,只有某两台主机相互ping不通的一种可能
问题描述: Linux主机A 的ip地址192.168.0.100 Linux主机B 的ip地址192.168.0.101 Windows主机C的ip地址192.168.0.105 子网掩码都为255.255.255.0,A,B,C接到同一个无线路由器。 A和C能够ping通,B和C能够ping通, ...
分类:其他好文   时间:2021-04-21 12:11:50    阅读次数:0
linux 监控服务器流量
linux 监控服务器流量 #!/bin/bash ethn=$1 while true do RX_pre=$(cat /proc/net/dev | grep $ethn | sed 's/:/ /g' | awk '{print $2}') TX_pre=$(cat /proc/net/dev ...
分类:系统相关   时间:2021-04-21 12:03:54    阅读次数:0
?.nginx匹配不同的终端http_user-agent
####1.准备站点目录 for i in {android,iphone,firefox,chrome,default} ;do mkdir /html/terminal/${i} && echo $i >/html/terminal/${i}/index.html ;done ####2.准备配 ...
分类:Web程序   时间:2021-04-21 12:00:37    阅读次数:0
24629条   上一页 1 ... 15 16 17 18 19 ... 2463 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!