当前位置:   article > 正文

【docker】docker部署_docker安装netty

docker安装netty

1、基础环境

# systemctl stop firewalld && systemctl disable firewalld   
# yum install iptables-services vim net-tools  yum-utils  -y
# service iptables stop
# systemctl disable iptables
# iptables -F
# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config 
# yum install -y ntp ntpdate
# ntpdate cn.pool.ntp.org
# crontab -e
MAILTO=""
* */1 * * * /usr/sbin/ntpdate cn.pool.ntp.org
# systemctl restart crond
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

2、docker基础包部署

# yum install -y wget net-tools nfs-utils lrzsz gcc gcc-c++ make cmake libxml2-devel openssl-devel curl curl-devel unzip sudo ntp libaio-devel wget vim ncurses-devel autoconf automake zlib-devel python-devel epel-release openssh-server 
# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# yum install -y yum-utils device-mapper-persistent-data lvm2
  • 1
  • 2
  • 3

3、docker部署

# yum install docker-ce -y
# systemctl start docker && systemctl enable docker
# systemctl status docker
  • 1
  • 2
  • 3

4、修改内核参数

# cat > /etc/sysctl.d/docker.conf <<EOF
> net.bridge.bridge-nf-call-ip6tables = 1 
> net.bridge.bridge-nf-call-iptables = 1 
> net.ipv4.ip_forward = 1
> EOF
# sysctl -p /etc/sysctl.d/docker.conf 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

5、配置docker国内源

# vim /etc/docker/daemon.json
{
 "registry-mirrors": ["https://2w4qjr9k.mirror.aliyuncs.com"]
}
# systemctl daemon-reload 
# systemctl restart docker 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/73948
推荐阅读
相关标签
  

闽ICP备14008679号