码迷,mamicode.com
首页 >  
搜索关键字:shell awk cat    ( 54363个结果)
shell脚本学习:入门
一:介绍 Shell是一种脚本语言,那么,就必须有解释器来执行这些脚本。Unix/Linux上常见的Shell脚本解释器有bash、sh、csh、ksh等,习惯上把它们称作一种Shell。我们常说有多少种Shell,其实说的是Shell脚本解释器。 二:第一行的解释 #! /bin/bash 此行称 ...
分类:系统相关   时间:2020-05-01 01:24:52    阅读次数:95
Linux中profile、bashrc、bash_profile之间的区别和联系
配置文件 说明 执行时间 是否重启 有效范围 /etc/profile 为系统的每个用户设置环境信息,从/etc/profile.d目录 的配置文件中搜集shell的设置. 当用户第一次登录时 重启或者source操作 所有 /etc/bashrc 为系统中的每个用户打开bash shell时执行. ...
分类:系统相关   时间:2020-05-01 01:08:37    阅读次数:76
Linux的自有服务-SSH服务(重点)
前置知识 全称secure shell,安全外壳协议。 常用作用:远程连接协议、远程文件传输协议。 协议使用端口号:默认22。(端口类似门) 端口号可以被修改,需要修改ssh服务的配置文件,位置/etc/ssh/ssh config,#开始是注释部分,改端口需要先去掉注释部分。port 22就是端口 ...
分类:系统相关   时间:2020-04-30 19:42:25    阅读次数:84
k8s部署ingress-nginx报错拍错
不是ingress-nginx不成功出现错误提示 kubectl describe pod nginx-ingress-controller-6ffc8fdf96-xtg6n -n ingress-nginx Normal Scheduled <unknown> default-scheduler ...
分类:其他好文   时间:2020-04-30 19:04:12    阅读次数:253
es查看集群信息命令_cat和_cluster
有kibana最好了。https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html 感兴趣的,英语OK的同学可以去官网自查································· ...
分类:其他好文   时间:2020-04-30 19:03:21    阅读次数:406
保留目录十个最新文件
#!/bin/bash Filelist=$(ls -l /data/backup/|egrep "^d"|awk '{print $9}') for i in $Filelist; do count=$(ls -l /data/backup/$i|grep -v total|wc -l) whil ...
分类:其他好文   时间:2020-04-30 19:00:59    阅读次数:69
The user limit for number of open files is too small.
允许打开的文件数目过小问题,解决: #查看当前系统允许打开文件数目 cat /proc/sys/fs/file-max #查看用户可以打开的文件数目 # Check Hard Limit in Linux ulimit -Hn # Check Soft Limits in Linux ulimit ...
分类:其他好文   时间:2020-04-30 17:24:19    阅读次数:60
impala 将查询数据导出为文件格式
impala 虽然说查询速度比 hive 快很多,查询出来的数据格式也很漂亮,但是这些数据不能直接复制到excel中使用,十分不方便。 在这里有一个命令可以将查询数据直接导出到文件中。 impala-shell -q "SELECT * from dw_center.order limit 20 " ...
分类:其他好文   时间:2020-04-30 17:17:45    阅读次数:169
AIX 输入lsdev -Cc disk 报错 lsdev: 0514-521 Cannot find information in the predefined device configuration database for the customized device hdisk2
客户新装AIX操作系统,需要将Netapp的存储映射到系统中,安装好Netapp MPIO后,发现多路径有问题,重装多路径软件后,系统识别lun正常,但是多了很多defined的信息,和 lsdev: 0514-521 Cannot find information in the predefine ...
分类:数据库   时间:2020-04-30 15:56:53    阅读次数:95
FastApi学习(二)开发环境安装
一、依赖项 Python 3.6+ FastAPI 站在这些巨人的肩膀上 Starlette :web部分 Pydantic :数据部分 二、安装 1、pip install fastapi 2、我们需要一个ASGI服务器,可以使用 Uvicorn 或 Hypercorn。 pip install ...
分类:Windows程序   时间:2020-04-30 15:43:18    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!