设置dns: vi /etc/hosts 最后一行追加; ip 主机名 设置SSH 免密码登陆: telnet 远程连接,SSH(secure shell)加密的通信协议,加密方式:rsa或者dsa root 目录下 ls -a 有.ssh 文件(存放密钥) ssh-keygen -t rsa (三 ...
分类:
其他好文 时间:
2016-08-09 18:53:50
阅读次数:
133
由于Chrome浏览器访问问题,需要配置hosts。 在Ubuntu系统下,需要修改/etc/hosts文件,修改完之后要重启网络。具体过程如下:1、修改hostssudo vi /etc/hosts2、添加解析内容 3、保存后重启网络sudo /etc/init.d/networking rest ...
分类:
系统相关 时间:
2016-08-03 18:44:49
阅读次数:
284
C:/WINDOWS/system32/drivers/etc/hosts 在这里可以设置本地域名 本地域名是比远程DNS优先级要高的, 所以可以在这里设置本地域名,让域名指向你想要的ip ...
分类:
其他好文 时间:
2016-08-03 10:18:09
阅读次数:
173
注意:此脚本并不会定期清理之前添加到/etc/hosts.deny中的ip地址此脚本运行在centos6的系统之上,如centos7需要的话,需要修改脚本声明(#!/usr/bin/bash);#!/bin/bash
#
whiletrue
do
awk‘/Failedpassword/{print$(NF-3)}‘/var/log/secure|sort|uniq-c|awk‘{if($1>=4)print$..
分类:
其他好文 时间:
2016-08-02 17:14:04
阅读次数:
123
1、在client节点上配置ceph.repo源我的文章里有源2、在admin节点做到client上的无密传输ssh-copy-idhostname(前提是已在/etc/hosts配置解析)3、在amdin节点上开始部署使用ceph-deployinstallhostname4、在admin节点上开始cpkey到clientceph-deployadminhostanme5、在client节..
分类:
其他好文 时间:
2016-07-29 19:13:38
阅读次数:
505
1HA=highavailable(主从主宕掉之后,从自动启动工作)软件heartbeat需要关闭iptablesselinux编辑/etc/hosts把两台主机的ip主机名写进去(两台)192.168.1.110master
192.168.1.111slave安装heartbeat(yum安装.没有的话安装epel扩展源)yuminstall-yheartbeat由于heartbeat依赖于包li..
分类:
其他好文 时间:
2016-07-24 21:06:51
阅读次数:
210
系统环境:centos7,httpd-2.4,php-5.5,mariadb5.5192.168.1.20httpd192.168.1.30PHP192.168.1.40mariadb修改客户机hosts文件[root@bogonDesktop]#vim/etc/hosts
127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4
::1localhostlocalhost.localdomain..
分类:
Web程序 时间:
2016-07-19 11:23:56
阅读次数:
269
redhat6.5虚拟机两台,各1G内存,时间同步server1172.25.44.1server2172.25.44.2火墙和selinux均处于关闭状态编辑/etc/hosts文件,加入解析一.安装首先得到rpm安装包,两台主机都进行安装二.配置Server1中进行操作主配置目录为/etc/ha.d把三个配置文件拷贝到主配置目录Vim/etc..
分类:
其他好文 时间:
2016-07-19 11:23:21
阅读次数:
154
我的配置: /etc/hosts: /etc/ansible/hosts: nglinx安装包: ansible自动化安装nginx: 1.安装ansible。 2.创建目录结构: mkdir -p /ansible/roles/nginx/{defaults,files,handlers,meta ...
分类:
其他好文 时间:
2016-07-17 13:19:34
阅读次数:
192
实验环境redhat6.5虚拟机三台,各1G内存,时间同步server1172.25.44.1server2172.25.44.2server3172.25.44.3火墙和selinux均处于关闭状态编辑/etc/hosts文件,加入解析不支持在集群节点中使用NetworkManager。如果已经在集群节点中安装了NetworkManager,应该删除或者禁用该程序..
分类:
其他好文 时间:
2016-07-17 02:23:13
阅读次数:
1080