随笔分类 -  Linux

摘要:linux多主机免密登陆 1.A主机执行命令 #ssh-keygen -t rsa #ssh-copy-id -i /root/.ssh/id_rsa.pub root@172.16.68.29 (B主机) 2.B主机上查看 # ll /root/.ssh total 12-rw 1 root ro 阅读全文
posted @ 2019-01-15 14:28 2240930501 阅读(156) 评论(0) 推荐(0)
摘要:一. NFS服务端设定: 1. 2. 3. 4.查看本机rpc服务的注册情况 5.查看NFS联机情况 二. NFS客户端设定: 1. 2. 3. 4. Reference: http://centos.rutgers.edu/koji/buildinfo?buildID=4322http://www 阅读全文
posted @ 2018-12-03 10:16 2240930501 阅读(216) 评论(0) 推荐(0)
摘要:CentOS 6 配置lsyncd实现应用目录自动同步备份 官方Reference: https://axkibe.github.io/lsyncd #首先关掉SElinux #临时关闭:setenforce 0 #永久关闭: vim /etc/selinux/config 设置为disabled 阅读全文
posted @ 2018-12-03 10:07 2240930501 阅读(847) 评论(0) 推荐(0)
摘要:1.默认Centos 7中已取消iptables而改用firewalld,而实际上iptables与firewalld只是单纯的配置规则的客户端工具而真正起到防火墙包过滤/转发的功能是内核netfilter模块 2.启用iptables关闭firewalld 3.添加规则并保存到/etc/sysco 阅读全文
posted @ 2018-11-16 20:27 2240930501 阅读(591) 评论(0) 推荐(0)
摘要:一. CwRsync 服务端安装 1. 运行安装包cwRsyncServer_4.1.0_Installer 服务账户和密码均保持默认即可 2.修改核心配置文件 3.启动服务 二. CwRsync客户端安装 运行安装包cwRsync_4.1.0_Installer.exe 三. 在客户端创建批处理文 阅读全文
posted @ 2018-07-17 09:38 2240930501 阅读(355) 评论(0) 推荐(0)
摘要:reference: http://www.mamicode.com/info-detail-1866747.html 阅读全文
posted @ 2018-05-31 13:18 2240930501 阅读(134) 评论(0) 推荐(0)
摘要:1.CentOS 7.4默认安装后openssl版本为 2.下载最新版本的openssl 3.解压并编译安装 阅读全文
posted @ 2018-05-16 19:51 2240930501 阅读(3880) 评论(0) 推荐(0)
摘要:centos 7中采用了systemd控制系统服务,更加简单,以前启动服务需要 service xxxx start|stop等。现在需要的是systemctl start|stop xxx。比如我配置的启动tomcat,systemctl start tomcat。十分方便。以前是在,现在直接在/ 阅读全文
posted @ 2018-04-26 13:37 2240930501 阅读(1754) 评论(0) 推荐(0)
摘要:CentOS 7的服务systemctl脚本存放在:/usr/lib/systemd/,有系统(system)和用户(user)之分,需要开机不登陆就能运行的程序,存在系统服务里,即:/usr/lib/systemd/system目录下 每一个服务以.service结尾,一般会分为3部分:[Unit 阅读全文
posted @ 2018-04-26 10:10 2240930501 阅读(212) 评论(0) 推荐(0)
摘要:一. Linux服务端步骤: 1.检查并确认相应的包已安装 2.修改/etc/rsyncd.conf配置文件添加配置项 3.创建/etc/rsyncd.secrets口令文件 4.修改/etc/xinetd.d/rsync文件 5.启动rsync服务并验证启动成功 二. windows客户端步骤: 阅读全文
posted @ 2018-03-13 09:01 2240930501 阅读(444) 评论(0) 推荐(0)