随笔分类 -  DevOps

摘要:使用dd命令截取/dev/urandom dd if=/dev/urandom bs=1 count=20 2>/dev/null|base64|rev|cut --bytes 3-|rev 生成10个小写字母 < /dev/urandom tr -dc [a-z] | head --bytes 1 阅读全文
posted @ 2020-09-23 14:05 ascertain 阅读(828) 评论(0) 推荐(0) 编辑
摘要:systemd提供自己的日志文件系统(logging system),成为journal,使用systemd日志,无需额外安装日志服务(rsyslog) 配置文件/etc/systemd/journald.conf 默认情况下(当Storage=auto,配置文件/etc/systemd/journ 阅读全文
posted @ 2020-09-22 20:23 ascertain 阅读(943) 评论(0) 推荐(0) 编辑
摘要:服务器有公网IP开启ssh,需要做防暴力破解,pam中有个模块可以帮助我们限定用户登录的失败次数,达到指定阈值,锁定用户 一:ssh远程登录限制 在/etc/pam.d/sshd文件中添加配置 auth required pam_tally2.so deny=3 unlock_time=3600 e 阅读全文
posted @ 2020-09-22 16:27 ascertain 阅读(10719) 评论(1) 推荐(1) 编辑
摘要:服务器分区变成了read-only system.当碰到这个问题的时候,我的第一反应很可能硬件出现了故障,我使用了如下的方法来检测和排除故障: 使用dmesg检查是否有关于磁盘错误的信息,果不其然发现大量磁盘扇区错误的信息,如下: end_request: I/O error, dev 03:06 阅读全文
posted @ 2020-09-15 19:33 ascertain 阅读(2479) 评论(0) 推荐(0) 编辑
摘要:Download: https://download.sonatype.com/nexus/3/latest-unix.tar.gz Download (sonatype.com) Docker Install: docker pull sonatype/nexus3 docker volume c 阅读全文
posted @ 2020-09-14 15:28 ascertain 阅读(515) 评论(0) 推荐(0) 编辑
摘要:初中级: 1、评估产品需求及发展需求,设计网站架构。 2、选择IDC公司、云产品,CDN等产品。 3、采购服务器、安装系统、配置服务、服务器IDC上架。 4、调试网络、优化系统及服务。 5、上线代码、配合研发搭建环境、调试、测试代码。 6、监控硬件、软件及各种业务应用。 7、配置收集日志和,根据日志 阅读全文
posted @ 2020-09-13 11:14 ascertain 阅读(489) 评论(0) 推荐(0) 编辑
摘要:1:在Linux操作系统中查看磁盘序列号 序列号特性可以用于在操作系统内为磁盘提供唯一身份标识,从而达到识别和区分不同磁盘的目的。 使用lsblk命令查询块存储的设备名 使用以下命令获取块存储设备的序列号 udevadm info --query=all --name=DEVICE_NAME |gr 阅读全文
posted @ 2020-09-08 21:44 ascertain 阅读(1028) 评论(0) 推荐(0) 编辑
摘要:server { listen 80 default_server; listen [::]:80 default_server; # redirect all HTTP requests to HTTPS with 301 Moved Permanently reponse return 301 阅读全文
posted @ 2020-09-07 10:08 ascertain 阅读(117) 评论(0) 推荐(0) 编辑
摘要:缺少命令/usr/bin/applydeltarpm 查询包名 yum provides applydeltarpm 查看软件包 yum info deltarpm 增量 RPM 包包含旧版本和新版本的 RPM 包之间的差别。在旧 RPM 上应用增量 RPM 将得到全新的 RPM。不需要旧 RPM 阅读全文
posted @ 2020-08-18 12:06 ascertain 阅读(3056) 评论(0) 推荐(0) 编辑
摘要:/etc/ssh/sshd_config Server端配置 ClientAliveIntervalSets a timeout interval in seconds after which if no data has been received from the client,sshd wil 阅读全文
posted @ 2020-08-08 23:48 ascertain 阅读(410) 评论(0) 推荐(0) 编辑
摘要:邮件服务端口号: mailx 的配置文件/etc/mail.rc 一: 非ssl方式 set from=mock@qq.com # 发送邮箱 set smtp=smtp.163.com # smtp服务器 set smtp-auth-user=mock@qq.com # 登录账号 set smtp- 阅读全文
posted @ 2020-08-08 21:31 ascertain 阅读(770) 评论(0) 推荐(0) 编辑
摘要:centos6以前版本 service --status-all 在centos7也可使用,但是只能看到由其管理的服务 centos6 centos7 pstree systemctl systemctl |grep running systemctl list-units -t service s 阅读全文
posted @ 2020-08-07 15:34 ascertain 阅读(2142) 评论(0) 推荐(0) 编辑
摘要:目 录 1 目的 ............................................................................................................................................. 阅读全文
posted @ 2020-07-30 23:53 ascertain 阅读(1980) 评论(0) 推荐(0) 编辑
摘要:清除buffer和cache echo 3 > /proc/sys/vm/drop_cashes 磁盘操作: 逻辑级: 文件系统,块为最小寻址单元(文件块,I/O块)每个块包含一个或多个扇区,直接缓存文件系统数据(有文件系统参与),操作对象为文件 物理级: 磁盘块,扇区为最小寻址单元(设备块) bu 阅读全文
posted @ 2020-07-18 17:13 ascertain 阅读(134) 评论(0) 推荐(0) 编辑
摘要:rhel系的安装过程中将普通用户加入管理组,其本质就是将其加入wheel组中 %wheel ALL=(ALL) NOPASSWD: ALL 阅读全文
posted @ 2020-07-18 16:48 ascertain 阅读(388) 评论(0) 推荐(0) 编辑
摘要:-b allow ping a broadcast addresswindows and linux 默认都不会对广播ping做回应,可用 echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts来使Linux对其响应 -i interval 1 阅读全文
posted @ 2020-07-17 21:19 ascertain 阅读(125) 评论(0) 推荐(0) 编辑
摘要:每个逻辑卷都是块设备,于/dev/dm-[0-n],主设备号253,从设置从0开始编号,dm => device mapper dmsetup info /dev/dm-0 阅读全文
posted @ 2020-07-17 20:08 ascertain 阅读(229) 评论(0) 推荐(0) 编辑
摘要:销毁磁盘数据dd if=/dev/urandom of=/dev/sdb 备份和恢复磁盘数据dd if=/dev/sda | gzip > image.gzgzip -d --stdout image.gz | dd of=/dev/sdc ibs 输入块大小obs 输出块大小skip : skip 阅读全文
posted @ 2020-07-17 18:57 ascertain 阅读(150) 评论(0) 推荐(0) 编辑
摘要:dig -t soa jd.com +multiline 显示具体的soa信息 dig isc.com +nssearch 查询一个域的授权DNS服务器 dig -x 7.7.7.7 +multiline (PTR)记录 阅读全文
posted @ 2020-07-17 18:45 ascertain 阅读(133) 评论(0) 推荐(0) 编辑
摘要:inter process communication one host: signal semaphor shm: shared memory different host: rpc: remote procedure call 同样基于socket socket 阅读全文
posted @ 2020-07-10 23:08 ascertain 阅读(122) 评论(0) 推荐(0) 编辑

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