CentOS系统:
# yum install zsh git curl
Ubuntu系统:
# apt install zsh git curl
然后访问:http://ohmyz.sh/,复制一键安装脚本
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
安装后编辑文件:~/.zshrc,修改风格为 gnzh
ZSH_THEME="gnzh"
CentOS系统:
# yum install zsh git curl
Ubuntu系统:
# apt install zsh git curl
然后访问:http://ohmyz.sh/,复制一键安装脚本
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
安装后编辑文件:~/.zshrc,修改风格为 gnzh
ZSH_THEME="gnzh"
# apt-get install tftpd-hpa
# vi /etc/default/tftpd-hpa TFTP_OPTIONS="--secure --verbose"
# systemctl restart tftpd-hpa
# apt-get install tftp $ tftp localhost tftp> get foo tftp> quit
# tail -f /var/log/syslog
如果要使用 vendor 的代码,则:
git checkout --theirs readme.md
如果要使用 master 的代码,则:
git checkout --ours readme.md
$ vagrant init laravel/homestead $ vagrant up $ vagrant ssh
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-81-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage 3 packages can be updated. 0 updates are security updates. vagrant@homestead:~$
$ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update $ sudo apt-get upgrade php
$ php -v Cannot load Xdebug - it was already loaded PHP 7.1.8-2+ubuntu16.04.1+deb.sury.org+4 (cli) (built: Aug 4 2017 13:04:12) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.8-2+ubuntu16.04.1+deb.sury.org+4, Copyright (c) 1999-2017, by Zend Technologies with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
默认安装的 Dashboard 没有统计 CPU 和内存用量的图表,装上 Heapster 后就可以直观地看到各个组件的资源消耗情况
在部署好 Kubernetes 单机版的基础上,首先让 apiserver 监听在 0.0.0.0
先使用 yum 安装必须得用到的 etcd 和 kubernetes 软件包
本次安装一共使用三个节点:
node01: eth1 192.168.33.101 node02: eth1 192.168.33.102 node03: eth1 192.168.33.103
这篇直接通过 CentOS 官方 yum 库安装
yum install -y docker systemctl enable docker systemctl start docker docker run hello-world