yxbinghe 的文章
-
Supervisor安装与配置(Linux/Unix进程管理工具)
Supervisor(http://supervisord.org/)是用Python开发的一个client/server服务,是Linux/Unix系统下的一个进程管理工具,不支持Windows系统。它可以很方便的…… -
SELinux设置和状态查看方法
一、关闭SELinux: 1、临时关闭: setenforce 0 //设置SELinux 成为permissive模式 setenforce 1 //设置SELinux 成为enforcing模式 此方式立即生…… -
How to Enable /etc/rc.local with Systemd
The solution As you can see from above, The unit file have no [Install] section. As such Systemd can not enable it. First we need to create a fi…… -
Linux下删除history记录
部分删除操作: 1.vim ~/.bash_history该文件即为历史记录存储文件,我们随意修改 2.修改后再次 history 查看,发现并没有变化。原因:缓存执行:histo…… -
安装libsodium,让服务器支持chacha20等加密方式
用chacha20加密方式需要安装libsodium注意:libsodium从1.0.15开始就废弃了aes-128-ctryum install wget m2crypto git libsodium -y yum -y groupinstall …… -
使用 iptables/ipset 阻止端口扫描
!/usr/bin/env bash # 使用 iptables/ipset 阻止端口扫描 # 如果有 IP 连接未开放端口,该 IP 将进入扫描者名单,过期时间 IP_DENY_SECOND 秒。 …… -
SSH 安全脚本
#! /bin/bash #chkconfig:27501 #decription:secure_ssh.sh autostart cat /var/log/secure|awk '/Failed/{print $(NF-3)}'|sort|uniq -c|awk '{print $2"="…… -
Nginx SNI分流(端口复用)
Nginx 配置Nginx SNI 由于默认安装的Nginx不会构建http_realip及stream_ssl_preread模块,需手动添加--with-http_realip_module --with-stream_ssl_pre…… -
置顶 一次由误修改/etc/profile文件后导致SSH无法登录的故障复盘
CentOS7系统下误修改/etc/profile文件后导致SSH无法登录的解决办法 故障复现 1、/etc/profile.d目录下误操作 cd /etc/profile.d/ 目录下误操作,上…… -
centos7安装Docker详细步骤
在安装 Docker 之前,先说一下配置,我这里是Centos7 Linux 内核:官方建议 3.10 以上,3.8以上貌似也可。 注意:本文的命令使用的是 root 用户登录执行,……
友情链接
