安装 yum -y install httpd httpd-devel # 在Ubuntu里面叫做Apache2,输入localhost能打开就算成功了 额...当然专业的运维还是老老实实的去编译吧; Apache使用 开启 /usr/sbin/apachectl start /etc/init.d/httpd start service httpd start # centos 7以下 关闭 /usr/sbin/apachectl stop /etc/init.d/httpd stop ser…
docker 18.09 官方:https://docs.docker.com/ 一 简介 Docker is a platform for developers and sysadmins to develop, deploy, and run applications with containers. The use of Linux containers to deploy applications is called containerization. Containers are no…
通过docker可以从头开始构建集群,也可以将现有集群(配置以及数据)平滑的迁移到docker部署: 1 docker部署zookeeper # usermod -G docker zookeeper# mkdir /data# chown zookeeper.zookeeper /data# echo 1 > /data/myid# su - zookeeper$ docker run --name zookeeper --restart always -p 2181:2181 -p 2888…
下载并启动registry $ docker pull registry$ docker run --name my_registry -d -p 5000:5000 -v /var/lib/registry:/var/lib/registry registry 从官方仓库下载nginx并push到私有仓库中 $ docker pull nginx$ docker tag nginx localhost:5000/mynginx$ docker push localhost:5000/myngi…
Docker images have a tag named latest which doesn’t work as you expect.Latest is just a tag with a special name.“Latest” simply means “the last build/tag that ran without a specific tag/version specified”.Just version your tags. Every time. docker im…
部署方式:docker+airflow+mysql+LocalExecutor 使用airflow的docker镜像 https://hub.docker.com/r/puckel/docker-airflow 使用默认的sqlite+SequentialExecutor启动: $ docker run -d -p 8080:8080 puckel/docker-airflow webserver 将容器中的airflow.cfg拷贝出来修改 $ docker cp $container_id:…
The general result is that Docker is nearly identical to Native performance and faster than KVM in every category. 1 CPU 2 Memory 3 Network Docker’s use of bridging and NAT noticeably increases the transmit path length; vhost-net is fairly efficient…
ctop类似于top,top监控的是进程,ctop监控的是容器(container top) 安装 # wget https://github.com/bcicen/ctop/releases/download/v0.4.1/ctop-0.4.1-linux-amd64 -O ctop# mv ctop /usr/local/bin/# chmod +x /usr/local/bin/ctop 使用 # ctop 界面如下 可以通过光标在多个container中切换,回车之后显示一个contai…
首先查看系统版本号,然后根据版本号从 CentOS-7-x86_64-DVD-1708.iso 和 CentOS-7-x86_64-Everything-1708.iso 根据需要选择一个下载,我这里是7.4.1708 # cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) # wget http://vault.centos.org/7.4.1708/isos/x86_64/CentOS-7-x86_64-DVD-1708.…
linux运维基础知识大全 一,序言 每一个微不足道的知识,也是未来的铺垫.每一份工作的薪资职位,也是曾经努力的结果. 二,服务器 1,运维人员工作职责: 1)保证数据不丢失:2)保证服务器24小时运行:3)让用户体验良好 2,服务器架构类型:1)机架式:2)刀片式:3)塔式 3,服务器品牌选择:最好使用国产,由于利润问题,IBM (大小型机服务器) :Oracle (数据库的仓库)由于成本太高现在被mysal取代的多:EMC 数据存储设备(磁盘进行存储)由于这个东西不好售后服务,现在多用阿里云…