Centos 7
common17
本人热爱IT,
common anything!!!!
CN
展开
-
iptables 配置端口转发
端口转发的源主机ip:”source_ip”;端口转发的目标主机ip:”destination_ip”PREROUTING:是目的地址转换(DNAT),要把别人的公网IP换成你们内部的IP,才让访问到你们内部受防火墙保护的服务器。POSTROUTING:是源地址转换(SNAT),要把你内部网络上受防火墙保护的ip地址转换成你本地的公网地址才能让它们上网。001 将进站ip转换成内网ipiptable原创 2017-04-21 16:12:16 · 1630 阅读 · 0 评论 -
Centos 7 安装iptables
虽然Centos 7 中已经有firewalld,但是现在公司或生活中大部分还是使用的是iptables。所以安装之前先关闭firewalldsystemctl stop firewalld001 下载 iptables使用yum下载iptables时,不仅要下载iptables服务,还要下载iptables-services工具 ,这个工具非常好用。yum -y install iptables原创 2017-11-15 20:28:39 · 2100 阅读 · 0 评论 -
hadoop搭建之HDFS,MapReduce
hadoop分布式安装(CENTOS7)001 集群机器 主机 ip master 10.13.7.43 slave01 10.13.7.40 slave02 10.13.7.411.修改主机名hostnamectl set-hostname master 其他机器按照同样的方法修改主机名2.修改hosts文件vi /etc/hosts配置如下:127.0.原创 2017-05-03 21:02:34 · 348 阅读 · 0 评论 -
kvm虚拟机安装,配置,活动迁移
001KVM安装Ubuntu1.判断虚拟机是否支持虚拟化技术grep -E 'svm |vmx' /proc/cpuinfo2.安装kvm,virt管理工具apt -y install qemu-kvm kvm apt -y install virtinst python-libvirt virt-viewer3.安装网桥设置,并增加br0虚拟网卡与以太网的网卡桥接apt -y install b原创 2017-04-09 11:48:08 · 1091 阅读 · 0 评论 -
Centos 7 快速安装 Docker
安装 Docker[root@localhost~]# yum install docker启动 docker 服务[root@localhost~]# systemctl start docker.service[root@localhost~]# systemctl enable docker.service安装 centos 镜像[root@localhost~]# docker pull原创 2016-11-08 11:04:22 · 255 阅读 · 0 评论 -
Centos 7 install Docker
Install Docker[root@localhost~]# yum install dockerStart docker service[root@localhost~]# systemctl start docker.service[root@localhost~]# systemctl enable docker.service原创 2016-11-08 11:06:02 · 185 阅读 · 0 评论 -
Centos 7 安装MariaDB
①添加MariaDB的yum源1.创建MariaDB.repo sudo vi /etc/yum.repos.d/Mariadb.repo 2.将以下文件中的字段添加到MariaDB.repo文件中# MariaDB 10.1 CentOS repository list - created 2016-12-01 03:36 UTC# http://downloads.mariadb.org/原创 2016-12-06 12:26:12 · 273 阅读 · 0 评论 -
Centos 7 service 命令的更改,systemctl命令简单实用实例
centos 7 中的类似“service httpd start “服务启动,停止,重启指令,“service”已更改为“systemctl”。具体示例如下:systemctl start httpd.service /启动Apache httpdsystemctl restart httpd.service /重新启动systemctl stop httpd.service /停止服务同样原创 2016-11-10 13:18:18 · 1303 阅读 · 0 评论 -
Centos 7 配置LAMP 服务(建站)
LAMP 服务配置LAMP,顾名思义:L : Linux A : Apache M : Mariadb(原MySQL) P : PHP建网站,首要问题就是安全,所以iptables一定要配置好,或者firewalld,一定要控制好端口的开与关,以及端口的转发。配置不好的话,自己的网站可能会被攻破,做一些坏事,给自己带来不必要的麻烦!!!! 001 开启网络端口iptables原创 2017-11-05 20:04:40 · 711 阅读 · 0 评论