145.k8s新版本部署

发表于 linux 分类,标签:
1.设置hostnamehostnamectl set-hostname  m1hostnamectl set-hostname  n1hostnamectl set-hostname  n2vi /etc/hostsm1 192.168.2.50n1 192.168.2.51n2 192.168.2.512.禁用防火墙systemctl stop firewalld.service systemctl disable firewalld.service3.关闭交换分区swapoff -ased -i 's/.*...

144.nfs挂载

发表于 linux 分类,标签:
1.安装NFS服务器:#在Ubuntu上:sudo apt-get updatesudo apt-get install nfs-kernel-server#在CentOS/RHEL上:sudo yum install nfs-utils2.创建共享目录:#创建你想要共享的目录。例如,创建一个名为 /data 的目录:sudo mkdir /data#配置NFS共享:#编辑 NFS 服务器的配置文件 /etc/exports 添加共享配置。打开文件并添加一行:#sudo nano /etc/exports#在文件末尾添加类似如下行:全部权限/data...

143.docker新版本

发表于 linux 分类,标签:
yum remove docker \docker-client \docker-client-latest \docker-common \docker-latest \docker-latest-logrotate \docker-logrotate \docker-selinux \docker-engine-selinux \docker-engine \docker-buildx-plugin \docker-ce-cli \docker-compose-plugindocker versionyum install -y yum-util...

142.mysql修改隔离级别支持confluence

发表于 linux 分类,标签:
查询SELECT @@tx_isolation;设置SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;confluence修改配置文件vim confluence.cfg.xml<property name="hibernate.connection.url">jdbc:mysql://192.168.2.27:3306/confluence?sessionVariables=tx_isolation='READ-COMMITTED'</property>...

141.kafka连接测试

发表于 linux 分类,标签:
#!/bin/bashKAFKA_BROKER="hadoop001:9092"TOPIC="test-topic"function test_kafka_connection {    echo "Testing Kafka connection..."    # 创建 Kafka 生产者    /home/lei/kafka_2.13-3.3.1/bin/kafka-producer-perf-test.sh --topic $TOPIC --num-records...

140.linux其他用户root权限

发表于 linux 分类,标签:
1.编辑vim /etc/sudoers2.修改## Allow root to run any commands anywhere root    ALL=(ALL)       ALLzhangkang    ALL=(ALL)    ALLtangwei    ALL=(ALL)    ALL...

138.firewalld配置

发表于 linux 分类,标签:
1....

137.iptables配置

发表于 linux 分类,标签:
1.添加#添加ip在最前面iptables -I INPUT -s 14.105.34.253 -p tcp -j ACCEPT添加ip在最后面iptables -A INPUT -s 14.105.34.253 -j ACCEPT#添加ip指定端口iptables -A INPUT -s 192.168.1.2 -p tcp --dport 22 -j ACCEPT2.拒绝3.开放端口...

136.Dockerfile

发表于 linux 分类,标签:
#启动命令1.Dockerfiledocker build -t dockername .2.composedocker-compose -f jenkins-compose.yml up -ddocker-compose -f jenkins-compose.yml down#DockerfileFROM centos:centos7.9.2009MAINTAINER tkm "362318118@qq.com"RUN yum install -y net-tools iproute openssl openssh-ser...

135.ftp部署

发表于 linux 分类,标签:
一 检查系统是否安装vsftpdrpm -qa|grep vsftpd这里是安装好了,才会出现版本信息,没有安装不会出现如果想删除卸载vsftpd使用 rpm -qa|grep vsftpd 查询出来版本好,通过 rpm- e vsftpd-3.0.2-29.el7_9.x86_64 进行卸载,卸载前需要先停止服务。二 安装vsftpdyum install -y vsftpd设置服务为开机自启动systemctl enable vsftpd.service   #开机自启systemctl start  vsftpd.serv...