安裝openshift
1、下載地址:??https://github.com/openshift/origin/releases
3.11下載:??https://github.com/openshift/origin/releases/tag/v3.11.0
https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz
{wget https://github.com/openshift/origin/releases/download/v3.9.0/openshift-origin-client-tools-v3.9.0-191fece-linux-64bit.tar.gz tar -zxvf openshift-origin-client-tools-v3.9.0-191fece-linux-64bit.tar.gz}
2、上傳到/opt目錄
mv openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz /opt
1.
3、解壓
cd /opt
tar -zxvf openshift-origin-server-v3.11.0-0cbc58b-linux-64bit.tar.gz
1.
2.
4、目錄太長,創建一個軟鏈接
ln -s openshift-origin-server-v3.11.0-0cbc58b-linux-64bit /opt/openshift
1.
5、 修改/etc/profile,加入環境變量
PATH=$PATH:/opt/openshift/
1.
執行生效
source /etc/profile
1.
6、啟動集群
oc cluster up --skip-registry-check=true --public-hostname=”10.10.10.114”
1.
啟動完成出現
The server is accessible via web console at:
? ? https://10.10.10.114:8443
You are logged in as:
? ? User: ? ? developer
? ? Password: <any value>
To login as administrator:
? ? oc login -u system:admin
?
7、配置防火墻
firewall-cmd --zone=public --add-port=8443/tcp --permanent
1.
重新載入防火墻
firewall-cmd --reload
1.
8、瀏覽器訪問 https:// 10.10.10.114:8443
https://www.jianshu.com/p/dc0edfbbc5eb
用戶名 developer 密碼:developer
參考連接:
??openshift官網
??openshift單機版安裝
??openshift集群ansible安裝
??Centos7 下安裝openshift
??OpenShift介紹?