随笔分类 -  linux

摘要:ps -ef | awk 'superset/ && ! /awk/{print $2}' | xargs kill -9 阅读全文
posted @ 2024-10-12 10:38 KeepSmiling_me 阅读(2) 评论(0) 推荐(0) 编辑
摘要:vim /etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: ethernets: ens33: dhcp4: no addresses: - 192.16 阅读全文
posted @ 2024-09-25 14:45 KeepSmiling_me 阅读(14) 评论(0) 推荐(0) 编辑
摘要:然后输入如下命令: /etc/init.d/network restart 阅读全文
posted @ 2024-07-05 13:28 KeepSmiling_me 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#在安装完docker前提下安装k3scurl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh -#安装argocd kubectl create namespace argoc 阅读全文
posted @ 2024-03-28 11:47 KeepSmiling_me 阅读(9) 评论(0) 推荐(0) 编辑
摘要:查找: yum -y list java* 安装: yum install -y java-1.8.0-openjdk* 自动安装java1.8.0所有程序 阅读全文
posted @ 2024-03-28 11:27 KeepSmiling_me 阅读(4) 评论(0) 推荐(0) 编辑
摘要:login_res=`curl -s -X POST "172.26.221.111:8082/api/user/login?username=wk&password=12122 ` echo "调用登录接口返回:$login_res" if [ $(echo "$login_res" | jq - 阅读全文
posted @ 2024-03-14 15:08 KeepSmiling_me 阅读(128) 评论(0) 推荐(0) 编辑
摘要:Start-Process powershell.exe -Verb runAs 阅读全文
posted @ 2023-11-20 15:11 KeepSmiling_me 阅读(9) 评论(0) 推荐(0) 编辑
摘要:#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; ev 阅读全文
posted @ 2023-02-27 17:14 KeepSmiling_me 阅读(753) 评论(0) 推荐(0) 编辑
摘要:sed命令应用广泛,使用简单,是快速文本处理的利器。它其实没多少技巧,背诵、使用是最合适的学习渠道,属于硬 技能。但它又很复杂,因为高级功能太多。本篇不去关注sed的高级功能,仅对常用的一些操作,进行说明。 一个简单的入门 如图,一个简单的sed命令包含三个主要部分:参数、范围、操作。要操作的文件, 阅读全文
posted @ 2023-02-11 14:31 KeepSmiling_me 阅读(48) 评论(0) 推荐(0) 编辑
摘要:grep 的全称是 global regular expression print,在 Linux 诸多命令行工具中可以说是最强大,最经常使用的。我们可以用 grep 来找到需要的文本信息。 搜索文件名 在某个目录下,寻找匹配某个名称的文件,可以结合 ls 和 grep 的能力来做。 $ ls -l 阅读全文
posted @ 2023-02-11 14:13 KeepSmiling_me 阅读(24) 评论(0) 推荐(0) 编辑
摘要:sed -i 's/原字符串/新字符串/' /home/1.txt sed -i 's/原字符串/新字符串/g' /home/1.txt 阅读全文
posted @ 2022-10-12 12:15 KeepSmiling_me 阅读(7) 评论(0) 推荐(0) 编辑
摘要:busybox.exe bash test.sh 阅读全文
posted @ 2022-08-12 14:41 KeepSmiling_me 阅读(38) 评论(0) 推荐(0) 编辑
摘要://安装gccsudo apt-get install software-properties-common python-software-properties sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get upd 阅读全文
posted @ 2022-03-15 17:09 KeepSmiling_me 阅读(33) 评论(0) 推荐(0) 编辑
摘要:1.$(realpath $0):当前脚本的绝对路径 2.$(dirname $(realpath $0)):当前脚本所在的文件夹 3.source filename或 . filename 导入模块 4.if [[ ! -f ${filepath} ]]; then fi-f指判断文件是否存在-d 阅读全文
posted @ 2022-03-03 11:09 KeepSmiling_me 阅读(433) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示