随笔分类 -  Linux

摘要:#!/bin/bash . /etc/profile.d/modules.sh CDDIR="$(cd "$(dirname "$0")" ; pwd -P)" #软件安装包 BISHENG="BiSheng-compiler-2.5.0.1-aarch64-linux.tar.gz" HYPERM 阅读全文
posted @ 2024-08-26 14:08 vmsysjack 阅读(75) 评论(0) 推荐(0) 编辑
摘要:root@ubuntu:~# cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netpl 阅读全文
posted @ 2024-08-23 14:34 vmsysjack 阅读(62) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash osversion=kylin_HPC cdromdir="/mnt" tftpdir="/var/lib/tftpboot" dhcpNet="168.7.10.0" netMask="255.255.255.0" dhcpRange="168.7.10.100 168.7 阅读全文
posted @ 2024-08-19 20:14 vmsysjack 阅读(13) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash cdromdir="/mnt" tftpdir="/var/lib/tftpboot" dhcpNet="168.7.10.0" netMask="255.255.255.0" dhcpRange="168.7.10.100 168.7.10.200" nextServer= 阅读全文
posted @ 2024-07-01 16:08 vmsysjack 阅读(14) 评论(0) 推荐(0) 编辑
摘要:NFS配置: [root@localhost ~]# echo "/aa *(rw)" >>/etc/exports [root@localhost ~]# mkdir /aa && chmod 777 -R /aa [root@localhost ~]# systemctl start nfs & 阅读全文
posted @ 2024-05-16 15:09 vmsysjack 阅读(86) 评论(0) 推荐(0) 编辑
摘要:cat>/root/non.txt<<EOF n p 3 Z w q EOF fdisk /dev/vda </root/non.txt partprobe /dev/vda pvcreate /dev/vda3 vgextend centos /dev/vda3 lvextend /dev/map 阅读全文
posted @ 2023-09-11 16:24 vmsysjack 阅读(18) 评论(0) 推荐(0) 编辑
摘要:cat>/etc/yum.repos.d/CentOS-Base.repo<<EOF # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update stat 阅读全文
posted @ 2023-09-04 14:06 vmsysjack 阅读(82) 评论(0) 推荐(0) 编辑
摘要:ubuntu安装NFS # config NFS Server apt install -y nfs-common apt install -y nfs-kernel-server apt install -y rpcbind cat>/etc/exports<<EOF /data *(rw,no_ 阅读全文
posted @ 2023-08-31 20:21 vmsysjack 阅读(6) 评论(0) 推荐(0) 编辑
摘要:hostname > /etc/hostname cat>/etc/hosts<<EOF 127.0.0.1 localhost 168.7.10.234 master01 168.7.10.235 master02 168.7.10.236 cli 168.7.10.237 agent EOF # 阅读全文
posted @ 2023-08-25 19:10 vmsysjack 阅读(74) 评论(1) 推荐(0) 编辑
摘要:##################################################### # # 创建CA X509 version 1.0根证书 # ##################################################### #创建证书存放目录 C 阅读全文
posted @ 2023-08-19 22:38 vmsysjack 阅读(8) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash packagename=$1 which yumdownloader || yum install -y yum-utils &>/dev/null ls /bak/pkg || mkdir -p /bakpkg yumdownloader --resolve --destd 阅读全文
posted @ 2023-08-14 17:51 vmsysjack 阅读(8) 评论(0) 推荐(0) 编辑
摘要:!/bin/bash function tls3(){ #################################################### # # 创建CA X509 version 3.0根证书 # ###################################### 阅读全文
posted @ 2023-08-12 12:25 vmsysjack 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#################################################### # # 创建CA X509 version 3.0根证书 # #################################################### rm -rf /k8s/t 阅读全文
posted @ 2023-08-11 15:24 vmsysjack 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash set -ex su - ccp_master<<'EOFCC' cat>ldaptoportal.sh<<'EOFG' keystore_pd="Huawei@portal.com" ldapAdmin_pd="huawei@123" ldapadmin="root" LA 阅读全文
posted @ 2023-07-28 15:16 vmsysjack 阅读(28) 评论(0) 推荐(0) 编辑
摘要:#安装前配置 curl 168.7.10.2:8000/local.repo > /etc/yum.repos.d/kylin_aarch64.repo yum install -y libatomic environment-modules vim nfs-utils &>/dev/null mk 阅读全文
posted @ 2023-07-20 15:28 vmsysjack 阅读(181) 评论(0) 推荐(0) 编辑
摘要:[root@agent02 ccp_sysadmin]# man 5 x509v3_config | tee aaX509V3_CONFIG(5) OpenSSL X509V3_CONFIG(5) NAME x509v3_config - X509 V3 certificate extension 阅读全文
posted @ 2023-07-17 09:28 vmsysjack 阅读(99) 评论(0) 推荐(0) 编辑
摘要:windows安装 vnc viewer LinuxServer 配置以下脚本 #!/bin/bash rpm -q tigervnc-server >/dev/null 2>&1 if [ $? -ne 0 ] then yum install -y tigervnc* >/dev/null 2> 阅读全文
posted @ 2023-05-13 20:21 vmsysjack 阅读(497) 评论(0) 推荐(0) 编辑
摘要:#ldapserver #安装openldap setenforce 0 && systemctl stop firewalld && iptables -F yum install -y epel-release yum install -y openldap openldap-clients o 阅读全文
posted @ 2023-04-26 23:32 vmsysjack 阅读(94) 评论(0) 推荐(0) 编辑
摘要:tcpdump命令解析 命令格式 tcpdump [ -DenNqvX ] [ -c count ] [ -F file ] [ -i interface ] [ -r file ] [ -s snaplen ] [ -w file ] [ expression ] 抓包选项:-c:指定要抓取的包数 阅读全文
posted @ 2022-09-11 10:53 vmsysjack 阅读(238) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash # #Usage: sh bond.sh [0|1] eth0 eth1 # #################################################### if [ $# -ne 3 ];then echo "Usage: sh bond.sh [ 阅读全文
posted @ 2022-05-21 22:11 vmsysjack 阅读(56) 评论(0) 推荐(0) 编辑

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