随笔分类 -  Linux

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

1