dennnnnis

导航

随笔分类 -  运维

CentOS7 防火墙设置
摘要:配置文件所在路径: /usr/lib/firewalld/ #默认的规则 /etc/firewalld/ #自定义规则 开放防火墙端口: #开放单个端口 firewall-cmd --zone=public --add-port=22/tcp --permanent #限制单个端口 firewall 阅读全文

posted @ 2023-05-26 11:52 dennnnnis 阅读(156) 评论(0) 推荐(0)

通过scp给批量服务器传文件
摘要:需要安装软件包 sshpass sshpass scp -p "$password" -P $port -o StrictHostKeyChecking=no /root/install.sh $username@$host:/data/ 就只是一条命令,到循环里面就可以了 阅读全文

posted @ 2021-06-23 15:08 dennnnnis 阅读(195) 评论(0) 推荐(0)

CentOS7 nginx+https配置记录
摘要:编译的时候,需要增加 --with-http_ssl_module若没有,需要重新编译。注意1 :重新编译的时候,编译的路径不能变。比如之前编译的路径是在/usr/local/nginx,在重新编译的时候,也要是这个路径。注意2 :重新编译的时候,会报错。本次遇上的错, ./configura不报错 阅读全文

posted @ 2021-01-09 00:00 dennnnnis 阅读(108) 评论(0) 推荐(0)

CentOS7 下vsftpd的安装记录
摘要:本次安装是CentOS 7.8正常安装vsftpdyum -y install vsftpd这个是利用系统帐号登陆vsftpd先把这个最原始的配置文件备份一下,要不然改来改去,一直不知道错在哪里,很折磨人。直接上配置文件: anonymous_enable=NOlocal_enable=YESwri 阅读全文

posted @ 2021-01-08 23:59 dennnnnis 阅读(62) 评论(0) 推荐(0)

零碎知识点
摘要:1. ubuntu 从文件添加计划任务后,计划任务不会生效,需要重启一下服务才行 系统版本:ubuntu 18.04 (作为服务器,ubuntu真的不是什么好系统,不推荐使用。也可能是我用centos习惯了,感觉坑太多了) a. 从文件添加计划任务,命令: echo "*/5 * * * * cd 阅读全文

posted @ 2021-01-06 17:02 dennnnnis 阅读(70) 评论(0) 推荐(0)

发告警到钉钉上
摘要:1. 钉钉上的设置 钉钉拉一个讨论组,至少要三人。 钉钉上点开讨论组的 “群设置” --> "智能群助手" --> "添加机器人" --> “添加机器人”右边的三个点 --> "自定义"(通过webhook)接入自定义服务 --> "添加" 在弹出来的设置页面里面: 给机器人起名字; 记录下Webh 阅读全文

posted @ 2021-01-06 11:56 dennnnnis 阅读(187) 评论(0) 推荐(0)

开源运维工具体系
摘要:Linux运维人员必会开源运维工具体系 转自http://oldboy.blog.51cto.com/2561410/775056 操作系统:Centos,Ubuntu,Redhat,suse,Freebsd 网站服务:nginx,apache,lighttpd,php,tomcat,resin数据 阅读全文

posted @ 2017-05-23 17:30 dennnnnis 阅读(174) 评论(0) 推荐(0)

vsftp在iptables中的配置
摘要:在 /etc/vsftpd/vsftpd.conf 文件末添加以下几行 pasv_enable=YESpasv_min_port=20000pasv_max_port=20010 在 iptables 中开放20,21,20000:20010端口即可 阅读全文

posted @ 2017-05-19 10:31 dennnnnis 阅读(103) 评论(0) 推荐(0)

NFS 配置文件及在iptables中的配置
摘要:yum 安装nfs即可 ( yum install nfs-utils ) cat /etc/exports /data/nfsdata 10.10.10.194(rw,no_root_squash) /data/nfsdata 10.10.10.193(rw,no_root_squash) 在 / 阅读全文

posted @ 2017-05-19 10:24 dennnnnis 阅读(209) 评论(0) 推荐(0)