随笔分类 - linux
摘要:转至:https://baijiahao.baidu.com/s?id=1698092407993351893&wfr=spider&for=pc Linux实现集群内相互免密的优势是,集群间通信畅通无阻,非常有利于做自动化部署等,甚至在一定程度提高集群性能。 一、SSH免密登陆原理 1.客户端生成
阅读全文
摘要:转至:https://blog.csdn.net/qq_36657997/article/details/107691144 在使用linux的过程中,为了省去每次连接输入密码的麻烦,通常会为服务器配置免密登录。配置免密登录的方式有两种:1、使用公钥(常用,安全);2、使用私钥(方便,有风险)。 s
阅读全文
摘要:转至:https://www.jianshu.com/p/6d168609fba5 本文参考了《Linux就该这么学》、《鸟哥的Linux私房菜》、《RHCSA/RHCE红帽Linux认证学习指南》、《iptables零基础快速入门系列》、《Firewalld详解》、《Firewalld Rich
阅读全文
摘要:转至:https://www.cnblogs.com/shikyoh/p/10684040.html CentOS7默认的防火墙不是iptables,而是firewalle. 安装iptable iptable-service #先检查是否安装了iptables service iptables s
阅读全文
摘要:转至:https://blog.csdn.net/qq_41425613/article/details/117294355 SNAT原理与应用 应用环境:局域网主机共享单个公网IP地址接入Internet,私有IP不能在Internet中正常路由原理:修改数据包的源地址。SNAT转换前提条件:1.
阅读全文
摘要:转至:https://baijiahao.baidu.com/s?id=1733537078943023051&wfr=spider&for=pc 服务器之间的通信是通过ip地址来进行通信的,但是ip地址由小数点分割的4个数值来指定,每个数值只能由0-255组成,在排除一些私有地址以及实验用的地址等
阅读全文
摘要:转至:https://www.csdn.net/tags/Mtzakg2sNDk5NTktYmxvZwO0O0OO0O0O.html uname -a 查看linux内核的版本号。 [root@i-dbb1f0ff ~]# uname -a Linux i-dbb1f0ff 3.10.0-514.e
阅读全文
摘要:转至:https://blog.csdn.net/weixin_43480802/article/details/86233669 #ifconfig 找到左上角 ens33 编辑# vi /etc/sysconfig/network-scripts/ifcfg-ens33 IPADDR= #ip地
阅读全文
摘要:转至:https://blog.csdn.net/ahelloyou/article/details/115367154 文章目录LINUX下swap扩容一、扩容swap 1.使用以下命令查看当前的swap大小是多少 2. 使用dd命令创建一个分区 3. 进行格式化交换,将swap文件格式化成s文件
阅读全文
摘要:转至: 1.查看原有系统是否已安装Openssl openssl version -a 系统已经安装了openssl,我们先安装新的版本,然后将环境配置成最新的版本。 2.从openssl官网下载最新的稳定版本,https://www.openssl.org/source/ 当前的稳定版是 open
阅读全文
摘要:转至: 官网:/source/index.html 当前(2020-10-22)最新稳定版本:https://www.openssl.org/source/openssl-1.1.1h.tar.gz Note: The latest stable version is the 1.1.1 serie
阅读全文
摘要:转至:https://www.jianshu.com/p/d33d7554a6be 1.查看版本命令 openssl version openssl version -a 2.下载指定版本的 openssl 软件,2种方式 https://www.openssl.org/source/ wget h
阅读全文
摘要:转至:https://blog.csdn.net/longgeaisisi/article/details/90519690 一、区别:2>/dev/null意思就是把错误输出到“黑洞” >/dev/null 2>&1默认情况是1,也就是等同于1>/dev/null 2>&1。意思就是把标准输出重定
阅读全文
摘要:转至:https://www.cnblogs.com/clwsec/p/15685744.html #1 linux输出重定向 $ command > file 2>&1 $ command >> file 2>&1 这里的&没有固定的意思 放在>后面的&,表示重定向的目标不是一个文件,而是一个文件
阅读全文
摘要:转至:https://blog.csdn.net/DN_XIAOXIAO/article/details/78322906 一般所在目录:/var/spool/cron/root 用户自定义任务;/etc/crontab是针对系统的任务 https://blog.csdn.net/weixin_41
阅读全文
摘要:转至:http://lnmp.ailinux.net/parted parted命令是由GNU组织开发的一款功能强大的磁盘分区和分区大小调整工具,与fdisk不同,它支持调整分区的大小。作为一种设计用于Linux的工具,它没有构建成处理与fdisk关联的多种分区类型,但是,它可以处理最常见的分区格式
阅读全文