剑道第一仙

导航

随笔分类 -  01linux

1 2 下一页

cron 表达式与crontab表达式详解
摘要:转:https://zhuanlan.zhihu.com/p/614584979 引言 CRON 表达式详解(阿里巴巴) 我们在定时任务中经常能接触到cron表达式,但是在写cron表达式的时候我们会遇到各种各样版本的cron表达式,比如我遇到过5位、6位甚至7位的cron表达式,导致我一度搞混这些 阅读全文

posted @ 2024-09-06 15:40 剑道第一仙 阅读(536) 评论(0) 推荐(0)

Linux文件、参数转字符集编码格式
摘要:Linux文件、参数转字符集编码格式 ## 参数GBK/ISO-8859转UTF8 target_context=$(echo "$source_context" | iconv -f GBK -t UTF-8) ## 文件GBK/ISO-8859转UTF8 iconv -f GBK -t UTF- 阅读全文

posted @ 2024-08-20 16:30 剑道第一仙 阅读(37) 评论(0) 推荐(0)

linux 启动crontab定时调度
摘要:1:从root切换到应用用户xxx sudo su - xxx 2:生成调度文件 crontab -e 3:保存调度文件 :wq 翻译 搜索 复制 阅读全文

posted @ 2024-08-13 17:33 剑道第一仙 阅读(21) 评论(0) 推荐(0)

查看服务器是X86服务器
摘要:XX@XXXX:~> uname -m x86_64 XX@XXXX:~> 翻译 搜索 复制 阅读全文

posted @ 2024-04-29 13:58 剑道第一仙 阅读(25) 评论(0) 推荐(0)

gaussdb通过编写shell脚本自动化执行查询和结果收集
摘要:转:https://support.huaweicloud.com/pwp-dws/dws_13_00033.html 1、登录ECS,进入到/opt目录下,使用vim命令生成query.conf和run_query.sh两个脚本文件。脚本内容如下,编辑后按:wq!保存脚本配置: run_query 阅读全文

posted @ 2024-04-18 14:20 剑道第一仙 阅读(800) 评论(0) 推荐(0)

linux虚拟机网络配置
摘要:我的装机环境是centos7版本 【1】安装虚拟机vmware之后,点击菜单栏编辑——虚拟网络编辑器,点击Vmnet8,查看子网IP地址段 【2】进入主机目录/etc/sysconfig/network-scripts,编辑ifcfg-ens33 [root@xxpcV7-01 network-sc 阅读全文

posted @ 2023-10-05 23:25 剑道第一仙 阅读(39) 评论(0) 推荐(0)

[Linux] shell文本处理记录 - 查找、增删特定行及附近行
摘要:转:https://blog.csdn.net/wy_hhxx/article/details/127416595 查找username所在行并删除此行,输出到新文件sed '/username/,+d' 04filename.log > 04filename_new.log 目录 1.grep查找 阅读全文

posted @ 2023-09-28 17:43 剑道第一仙 阅读(804) 评论(0) 推荐(0)

linux ftp服务启动命令
摘要:service vsftpd start #启动ftp服务相关操作命令:service vsftpd stop #停止ftp服务service vsftpd restart #重启ftp服务service vsftpd status #查看ftp服务运行状态 阅读全文

posted @ 2023-06-14 10:46 剑道第一仙 阅读(1029) 评论(0) 推荐(0)

linux下分析java程序占用CPU、内存过高
摘要:转:https://www.cnblogs.com/wu-wu/p/11923250.html CPU过高分析 1)使用TOP命令查看CPU、内存使用状态可以发现CPU占用主要分为两部分,一部分为系统内核空间占用CPU百分比,一部分为用户空间占用CPU百分比。其中CPU状态中标示id的为空闲CPU百 阅读全文

posted @ 2023-04-26 17:50 剑道第一仙 阅读(2072) 评论(0) 推荐(0)

linux查询进程占用的内存/CPU信息
摘要:转:https://www.cnblogs.com/lidabo/p/16643410.html 通过free名称查看内存使用情况 xxxx@xxxx:~> free total used free shared buffers cached Mem: 32882336 29192856 36894 阅读全文

posted @ 2023-04-21 10:06 剑道第一仙 阅读(295) 评论(0) 推荐(0)

linux服务器重启未自动挂载磁盘解决办法
摘要:【1】root用户登录,检查磁盘加载情况XXXX:~ # df -m Filesystem 1M-blocks Used Available Use% Mounted on devtxx 32066 1 32066 1% /dev/dev/xx2 69591 13440 56151 20% / /d 阅读全文

posted @ 2023-03-08 11:08 剑道第一仙 阅读(994) 评论(0) 推荐(0)

常用的Linux服务器各项性能指标查看方法
摘要:转:https://www.linuxprobe.com/linux-server-skill.html 硬盘查看命令df 硬盘查看命令df最常用参数是-h,以容易阅读的方式显示磁盘分区使用情况。 df -h df -h /root/#以易读方式显示目录所在分区的使用情况 其它常用参数: -a:显示 阅读全文

posted @ 2023-01-05 18:01 剑道第一仙 阅读(246) 评论(0) 推荐(0)

查看AIX操作系统CPU和内存
摘要:转:https://blog.csdn.net/oradbm/article/details/124565324 一、AIX下查看CPU1.查询AIX的硬件信息prtconf 12. 查看逻辑CPU个数#pmcycles -m CPU 0 runs at 4204 MHz CPU 1 runs at 阅读全文

posted @ 2023-01-05 17:55 剑道第一仙 阅读(3712) 评论(0) 推荐(0)

linux文本处理命令
摘要:【1】sed命令 文本替换 将文件中“|\N|”替换为“||”,即将“\N”替换为空, sed -i "s/|\\\N|/||/g" filename.unl 阅读全文

posted @ 2022-11-04 13:36 剑道第一仙 阅读(35) 评论(0) 推荐(0)

linux创建用户
摘要:mkdir /home/infa useradd -d /home/infa infa passwd infa 输入密码 chgrp -R users /home/infa chown -R infa /home/infa chown -R infa /data 阅读全文

posted @ 2022-11-03 15:07 剑道第一仙 阅读(50) 评论(0) 推荐(0)

centos postgresql命令行中文显示乱码
摘要:【1】查看当前系统语言 登陆linux系统打开操作终端之后,输入 echo $LANG可以查看当前使用的系统语言。 [root@localhost ~]# echo $LANG 查看安装的语言包 查看是否有中文语言包可以在终端输入 locale命令,如有zh cn 表示已经安装了中文语言 [root 阅读全文

posted @ 2022-10-30 18:19 剑道第一仙 阅读(410) 评论(0) 推荐(0)

VMware主机centos安装系列软件篇章02:系统官网CentOs7镜像下载详细步骤
摘要:参考:https://blog.csdn.net/qq_15110681/article/details/121831182 CentOs官网下载官网:https://www.centos.org/ 1. 官网进入后,点击Download。 2. 进去后,64位机选x86-64 3. 选择国内的阿里 阅读全文

posted @ 2022-09-05 17:12 剑道第一仙 阅读(114) 评论(0) 推荐(0)

centos kafka 集群配置
摘要:参考:https://www.cnblogs.com/zhangzl419/p/15842606.html 【1】配置zookeeper [root@xxxxpcV7-03 config]# pwd/usr/kafka_2.12-3.2.1/config [root@xxxxpcV7-03 conf 阅读全文

posted @ 2022-08-31 23:19 剑道第一仙 阅读(102) 评论(0) 推荐(0)

linux centos 7 vmware快照克隆后修改IP和主机
摘要:【1】修改IP配置: root@xxxxpcV7-03 network-scripts]# pwd/etc/sysconfig/network-scripts[root@xxxxpcV7-03 network-scripts]# cat ifcfg-ens33TYPE=EthernetPROXY_M 阅读全文

posted @ 2022-08-31 21:23 剑道第一仙 阅读(56) 评论(0) 推荐(0)

1 2 下一页