在一台新的政务云服务器上的部署操作

  1. 安装vim
    yum install vim

  2. 关闭系统自带防火墙,安装iptables
    systemctl stop firewalld
    systemctl disable firewalld
    vi /etc/selinux/config
    yum install iptables-services iptables-devel
    开启
    systemctl enable iptables.service
    systemctl start iptables.service
    systemctl enable iptables.service
    关闭firewall

  3. 安装nginx
    yum install epel-release
    yum install nginx

  4. 安装docker

先卸载旧版本的docker
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine

安装新的docker
yum install -y yum-utils
yum-config-manager \
–add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce-18.09.6 docker-ce-cli-18.09.6 containerd.io

升级docker
yum -y upgrade docker-ce docker-ce-cli containerd.io

systemctl start docker
systemctl enable docker

  1. 安装kk
    docker pull keking/kkfileview

  2. 安装minio
    docker pull minio/minio

kkfilepreview nginx redis
anaconda

  1. 解决docker中控制台乱码问题
    1
    docker run --restart=always -d --name zzb10001 -p 10001:8080 -e "LC_ALL=zh_CN.UTF-8" -e "LANG=zh_CN.UTF-8" -v /data/zzb10001/webapps:/tomcat/webapps/ -v /data/zzb10001/logs:/tomcat/logs spdk/jdk8 > /data/zzb10001/id
分享到