随笔分类 - 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
阅读全文
摘要:root@ubuntu:~# cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netpl
阅读全文
摘要:#!/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
阅读全文
摘要:#!/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=
阅读全文
摘要:NFS配置: [root@localhost ~]# echo "/aa *(rw)" >>/etc/exports [root@localhost ~]# mkdir /aa && chmod 777 -R /aa [root@localhost ~]# systemctl start nfs &
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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_
阅读全文
摘要: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 #
阅读全文
摘要:##################################################### # # 创建CA X509 version 1.0根证书 # ##################################################### #创建证书存放目录 C
阅读全文
摘要:#!/bin/bash packagename=$1 which yumdownloader || yum install -y yum-utils &>/dev/null ls /bak/pkg || mkdir -p /bakpkg yumdownloader --resolve --destd
阅读全文
摘要:!/bin/bash function tls3(){ #################################################### # # 创建CA X509 version 3.0根证书 # ######################################
阅读全文
摘要:#################################################### # # 创建CA X509 version 3.0根证书 # #################################################### rm -rf /k8s/t
阅读全文
摘要:#!/bin/bash set -ex su - ccp_master<<'EOFCC' cat>ldaptoportal.sh<<'EOFG' keystore_pd="Huawei@portal.com" ldapAdmin_pd="huawei@123" ldapadmin="root" LA
阅读全文
摘要:#安装前配置 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
阅读全文
摘要:[root@agent02 ccp_sysadmin]# man 5 x509v3_config | tee aaX509V3_CONFIG(5) OpenSSL X509V3_CONFIG(5) NAME x509v3_config - X509 V3 certificate extension
阅读全文
摘要: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>
阅读全文
摘要:#ldapserver #安装openldap setenforce 0 && systemctl stop firewalld && iptables -F yum install -y epel-release yum install -y openldap openldap-clients o
阅读全文
摘要:tcpdump命令解析 命令格式 tcpdump [ -DenNqvX ] [ -c count ] [ -F file ] [ -i interface ] [ -r file ] [ -s snaplen ] [ -w file ] [ expression ] 抓包选项:-c:指定要抓取的包数
阅读全文
摘要:#!/bin/bash # #Usage: sh bond.sh [0|1] eth0 eth1 # #################################################### if [ $# -ne 3 ];then echo "Usage: sh bond.sh [
阅读全文