随笔分类 -  DevOps

摘要:--dns-servers 是复数,主要用于内部架设的dns服务器,外部dns无法解析.-Pn Treat all hosts as online skip host discovery 明确知道主机存活或防火墙开启的机器,-Pn不启用探测前的ICMP请求,达到不触发防火墙的安全机制 -F fast 阅读全文
posted @ 2020-07-08 01:45 ascertain 阅读(187) 评论(0) 推荐(0) 编辑
摘要:-R --relative 把全路径拷贝到目标,把上级目录的全路径拷贝 不管加不加/ 都会讲源数据路径一起同步 通过--daemon方式pull,似乎只能复制文件,不能复制目录,-R选项无效但是--daemon方式push,/是文件 不带/ 是目录 -R是全路径 rsyncd.conf motd f 阅读全文
posted @ 2020-07-08 01:44 ascertain 阅读(80) 评论(0) 推荐(0) 编辑
摘要:restrict ip mask 不跟参数表示无任何限制,常用nomodify 客户端不能修改服务器时间,但可校时 noquery 不能校时 notrap: 不提供远程时间登陆功能 notrust 不接受没有认证的client server ip|hostname [prefer iburst] 设 阅读全文
posted @ 2020-07-08 01:34 ascertain 阅读(640) 评论(0) 推荐(0) 编辑
摘要:dnf install java-11-openjdk postgresql-server postgresql postgresql-contrib useradd sonar unzip sonarqube-VERSION.zip -d /opt ln -sv /opt/sonarqube-VE 阅读全文
posted @ 2020-07-04 14:23 ascertain 阅读(145) 评论(0) 推荐(0) 编辑
摘要:grub2可自定义加密,也可用grub2-setpassword(grub2自带)来加密 grub2-setpassword: 运行grub2-setpassword后,在/boot/grub2/下生成user.cfg文件,此文件定义了一个变量GRUB2_PASSWORD,此变量后面会被引用 /bo 阅读全文
posted @ 2020-06-27 16:27 ascertain 阅读(668) 评论(0) 推荐(0) 编辑
摘要:selinux开启后,挂载OPTIONS会出现seclabel,此时创建的文件或目录均会被打标 ,权限最后有 . 标记,但是设置acl后会被+号覆盖 sed -ri '/^SELINUX=/ c \SELINUX=disabled' /etc/selinux/config;reboot关闭selin 阅读全文
posted @ 2020-06-24 14:27 ascertain 阅读(330) 评论(0) 推荐(0) 编辑
摘要:systemctl kill -s SIGKILL dev-ttyS0.service systemctl kill -s SIGHUP --kill-who=main crond.service kill直接发送信号给组中的所有进程,stop走官方配置渠道去关闭服务,比如调用在服务文件中的Exec 阅读全文
posted @ 2020-06-23 01:10 ascertain 阅读(69) 评论(0) 推荐(0) 编辑
摘要:0 发信号给当前进程组 -1 pid>2的进程全部被发送信号 执行kill -s TERM -1 后,终端进程被终结,只剩下88个进程 -n 指定进程组 可以通过gnome-system-monitor查看,操作进程 阅读全文
posted @ 2020-06-21 16:21 ascertain 阅读(181) 评论(0) 推荐(0) 编辑
摘要:chrt: manipulate the real-time attributes of a process Synopsis: chrt [options] priority command [arg] chrt [options] -p [prio] pid Usage: chrt --pid 阅读全文
posted @ 2020-06-19 15:37 ascertain 阅读(528) 评论(0) 推荐(0) 编辑
摘要:-y Fix filesystem corruption automatically,not all filesystem support this option -V Verbose output -C Display completion/progress bars -a Automatical 阅读全文
posted @ 2020-06-17 11:29 ascertain 阅读(111) 评论(0) 推荐(0) 编辑
摘要:1、拷贝initramfs文件 cp /boot/initramfs-3.10.0-514.26.2.el7.x86_64.img /opt/ 2、开始解压 cd /opt mkdir initramfs cd initramfs /usr/lib/dracut/skipcpio ../initra 阅读全文
posted @ 2020-06-14 17:40 ascertain 阅读(761) 评论(0) 推荐(0) 编辑
摘要:isolinux.bin:光盘引导程序 isolinux.cfg:isolinux.cfg是isolinux.bin的配置文件 vmlinuz:linux系统的内核映像,isolinux.cfg中配置读取 initrd.img:ramfs内存系统镜像,isolinux.bin根据选项找到对应配置,装 阅读全文
posted @ 2020-06-11 16:13 ascertain 阅读(224) 评论(0) 推荐(0) 编辑
摘要:X-server处理输入输出,鼠标,键盘,显卡,显示器 X-client处理程序逻辑 WM:窗口管理器,移动,变型,装饰 DE:桌面环境 WM+panel+资源管理器+配套软件 X-server(鼠标,键盘) ==>X-client程序逻辑==>X-server(输出) X-server接收用户指令 阅读全文
posted @ 2020-06-11 15:19 ascertain 阅读(423) 评论(0) 推荐(0) 编辑
摘要:useradd 时使用 --no-create-home时指定不创建用户的家目录 虽没有创建,但其家目录仍为/home/bnm只是没有创建 接下来手动创建其家目录 非常恶心的selinux需要关闭,不识别手动创建的家目录,进行公钥认证时有问题 阅读全文
posted @ 2020-06-11 11:51 ascertain 阅读(1775) 评论(0) 推荐(0) 编辑
摘要:编译安装: ./configure --prefix=/usr/local/ovs make -j 4 make install modprobe openvswitch echo 'export PATH=$PATH:/usr/local/ovs/share/openvswitch/scripts 阅读全文
posted @ 2020-06-10 17:25 ascertain 阅读(374) 评论(0) 推荐(0) 编辑
摘要:/etc/profile /etc/profile.d/* /etc/bashrc ~/.bash_profile ~/.bashrc 这些文件定义shell的运行环境,其运行有先后,不同情况执行不同的文件 先说shell的分类: 登陆或非登陆 我们可以直接使用shell(直接运行bash,或者其他 阅读全文
posted @ 2020-06-09 15:20 ascertain 阅读(259) 评论(0) 推荐(0) 编辑
摘要:chrony prerequisite: firewalld firewall-cmd --state firewall-cmd --list-all firewall-cmd --zone=public --query-port=123/tcp firewall-cmd --zone=public 阅读全文
posted @ 2020-06-08 22:26 ascertain 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-06 22:56 ascertain 阅读(147) 评论(0) 推荐(0) 编辑
摘要:linux内核/proc/sys/net/ipv4/conf中下面会有各网卡的配置参数其中arp_ignore和arp_annouce与arp相关 arp_ignore 取值为integer 0 (default) :reply for any local target IP address con 阅读全文
posted @ 2020-06-06 18:38 ascertain 阅读(1328) 评论(0) 推荐(0) 编辑
摘要:%attr(0777,root,root,-) %{_bindir}/* nginx Name: nginx Version: 1.19.0 Release: 1%{?dist} Summary: nginx rpm Group: System Environment/Daemons License 阅读全文
posted @ 2020-06-05 22:50 ascertain 阅读(432) 评论(0) 推荐(0) 编辑

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