Loading

随笔分类 -  shell

摘要:https://crontab.guru/#01_*/2_*_*_* 阅读全文
posted @ 2021-03-03 17:24 Lust4Life
摘要:/lib64/libc.so.6: version `GLIBC_2.18' not found (required by fd) 1、下载文件 下载地址:https://mirrors.tuna.tsinghua.edu.cn/gnu/glibc/glibc-2.18.tar.gz 2、安装部署 阅读全文
posted @ 2020-11-24 21:38 Lust4Life 阅读(5562) 评论(0) 推荐(0)
摘要:1,环境安装 ## #编译环境 yum groupinstall -y "Development Tools" ##cat cpu_load #以下为代码 #include <iostream> #include <pthread.h> #include <time.h> #include <mat 阅读全文
posted @ 2020-11-22 16:09 Lust4Life 阅读(880) 评论(0) 推荐(0)
摘要:##python2 使用supervisor监控执行脚本,脚本意外退出后可被立即拉起 使用Python2 是因为系统默认的python版本, 不需要重新安装新版Python ###安装pip #离线包 [root@localhost pipackage]# ls -1 python2-pip-8.1 阅读全文
posted @ 2020-06-17 10:02 Lust4Life
摘要:centos直接yum安装nginx Ubuntu下安装nginx,直接apt get install nginx就行了 centos 配置源 1,CentOS 7 centos6 2,查看yum的nginx信息 3,安装并启动nignx 4,测试 阅读全文
posted @ 2020-03-14 17:00 Lust4Life 阅读(145) 评论(0) 推荐(0)
摘要:来源: https://www.cnblogs.com/mecca/p/4414474.html 阅读全文
posted @ 2020-03-05 19:44 Lust4Life 阅读(2233) 评论(0) 推荐(0)
摘要:巡检脚本 bash 1 !/bin/bash 2 3 File Name: 1.sh 4 Version: V1.0 5 Author: 6 Organization: 7 Created Time : date 8 Description: 9 10export PATH=/usr/local/s 阅读全文
posted @ 2020-02-04 22:27 Lust4Life 阅读(403) 评论(0) 推荐(0)
摘要:http2.4 http2.2 数据库 !/bin/bash ifubuntu=$(cat /proc/version | grep ubuntu) if14=$(cat /etc/issue | grep 14) if [ == "x86_64" ];then machine=x86_64 els 阅读全文
posted @ 2019-10-05 09:53 Lust4Life
摘要:xxxx 访问日志前十 本机连接的ip数前十 ss nt | tr s " " : | cut d : f6 ss nt State Recv Q Send Q Local Address:Port Peer Address:Port ESTAB 0 0 192.168.36.73:22 192.1 阅读全文
posted @ 2019-10-04 08:26 Lust4Life
摘要:sed ri.bk '/^SELINUX=/s/(SELINUX=)(. )/\1disabled/' /etc/selinuconfig 修改并备份 脚本打开关闭 selinux if [[ "$1" =~ ^[oO][Nn]$ ]] then sed ri.bk '/^SELINUX=/s/(S 阅读全文
posted @ 2019-10-03 23:18 Lust4Life 阅读(372) 评论(0) 推荐(0)
摘要:Hub 集线器 物理层设备 多端口中继器,不记忆MAC地址 以太网桥 OSI第二层数据链路层 1. 扩展了网络带宽 2. 分割了网络冲突域,使网络冲突被限制在最小的范围内 3. 交换机作为更加智能的交换设备,能够提供更多用户所要求的功能:优先级、虚拟网、远程检测 • 学习MAC地址,并记忆,端口转发 阅读全文
posted @ 2019-10-03 22:56 Lust4Life 阅读(374) 评论(0) 推荐(0)
摘要:cat /proc/partions cat /proc/mounts mount [options] o [option] t 文件类型 设备 挂载目录 设备: (1)设备文件:例如/dev/sr0,/dev/sdb1 (2)卷标: L '卷标名' (3)UUID: U 'UUID' (4)伪文件 阅读全文
posted @ 2019-10-03 22:52 Lust4Life 阅读(227) 评论(0) 推荐(0)
摘要:安装 升级 查询 导入公钥 rpm K|checksig rpmfile 检查包的完整性和签名 rpm import /etc/pki/rpm gpg/RPM GPG KEY CentOS 7 yum config manager add repo= http://172.16.0.1/cobble 阅读全文
posted @ 2019-10-03 22:48 Lust4Life 阅读(116) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2019-10-03 22:45 Lust4Life 阅读(13) 评论(0) 推荐(0)
摘要:1,用户组 2,脚本基础 变量命令 1、不能使程序中的保留字:例如if, for 2、只能使用数字、字母及下划线,且不能以数字开头 3、见名知义 4、统一命名规则:驼峰命名法 Shell中命名建议规则: 1、变量名大写 2、局部变量小写 3、函数名小写 4、用英文名字,并体现出实际作用 根据变量的生 阅读全文
posted @ 2019-10-03 22:40 Lust4Life 阅读(384) 评论(0) 推荐(0)
摘要:1,centos 7 最小化安装系统 !/bin/bash FileName: allinone.sh Description: The test script Copyright (C): 2019 All rights reserved miniyum () { yum install vim 阅读全文
posted @ 2019-10-03 21:38 Lust4Life