随笔分类 - Linux
1
Linux知识
摘要:1. Producer事务保证即使producer挂了又重新启动了,kafka内部消息的精准性 2. Cunsmer事务保证精准一次消费
阅读全文
摘要:nohup command > nohup.out 2>&1 &
阅读全文
摘要:服务器 1. 检查ntp是否安装 rpm -qa|grep ntp 2. 修改ntp配置 /etc/ntp.conf 设置网段 设置集群只使用本服务器时间同步 服务器没联网时依然可以提供时间同步服务 修改如下内容 //添加restrict 192.168.1.0 mask 255.255.255.0
阅读全文
摘要:crontab -e|r|l e:修改 r:删除当前用户所有定时任务 l:查看当前用户所有定时任务
阅读全文
摘要:service crond start|stop|restart
阅读全文
摘要://[USER_HOME]/.ssh目录中生成密钥 ssh-keygen -t rsa//id_rsa//id_rsa.pub //复制公钥(包括自己) ssh-copy-id <host|ip>
阅读全文
摘要:#!/bin/bash #1 获取输入参数个数,如果没有参数,直接退出 pcount=$# if((pcount==0));then echo no args; exit; fi #2 获取文件名 p1=$1 fname=`basename $p1` echo fname=$fname #3 获取上
阅读全文
摘要:rsync -rvl user@host:dir/file user@host:dir/file
阅读全文
摘要:scp -r user@host:dir/file user@host:dir
阅读全文
摘要:/etc/profile export HADOOP_HOME=/opt/module/dadoop-2.10.0 export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin
阅读全文
摘要:/etc/profile export JAVA_HOME= export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib
阅读全文
摘要:tar -zxvf jdk-14.0.1_linux-x64_bin.tar.gz -C /opt/module/
阅读全文
摘要:sudo chown example:example /module
阅读全文
摘要:useradd example passwd example #example配置root权限(/etc/soduers)
阅读全文
摘要:MAC地址(/sys/class/net/enp0s3/address) 修改网卡配置(/etc/sysconfig/network-script/ifcfg-eth0) DEVICE=eth0 BOOTPROTO=static BROADCAST=192.168.1.255 HWADDR=00:0
阅读全文
摘要:/etc/sysconfig/network-scripts/ifcfg-eth0
阅读全文
摘要:创建新文件:touch test.sh 添加可执行权限:chmod +x test.sh 编辑文件:gedit test.sh 输出命令:echo "hello world" 正常退出:exit 0 给命令起别名:alias hello="echo 'hello world'" 撤销别名:unali
阅读全文
摘要:删除 /etc/apt/sources.list 在目录 /etc/apt/sources.list.d/中添加其他下载源 #Ubuntu国内阿里源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multi
阅读全文
1

浙公网安备 33010602011771号