環境
Centos7系統
阿里雲鏡像下載地址:http://mirrors.aliyun.com/centos/7/isos/x86_64/
我的GitHub項目地址:https://github.com/daicary/kimchi-centos7(下載腳本一鍵搭建,不需要做以下的步驟)
聲明:
如果您使用的是vmware進行搭建,請編輯虛擬機設置,處理器->虛擬化引擎->虛擬化Intel VT-x/EPT 該選項進行勾選。虛擬化沒開啟請參考:BIOS開啟虛擬化
開始部署
更新源
yum -y update
下載websockify包
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
安裝wok依賴和kimchi依賴
yum install apt install -y python3-pip yum install -y gcc make autoconf automake git python3-pip python3-requests python3-mock gettext pkgconf xsltproc python3-dev pep8 pyflakes python3-yaml yum install -y systemd logrotate python3-psutil python3-ldap python3-lxml python3-websockify python3-jsonschema openssl nginx python3-cherrypy3 python3-cheetah python3-pampy python-m2crypto gettext python3-openssl
wokd服務安裝
wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/wok-2.5.0-0.el7.centos.noarch.rpm yum install -y ./wok-2.5.0-0.el7.centos.noarch.rpm
kimchi服務安裝
wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/kimchi-2.5.0-0.el7.centos.noarch.rpm yum install -y ./kimchi-2.5.0-0.el7.centos.noarch.rpm
開啟服務
確保開啟下列服務
systemctl restart nginx
systemctl enable nginx
systemctl start wokd
systemctl enable wokd
systemctl start libvirtd
systemctl enable libvirtd
訪問瀏覽器
瀏覽器訪問
https://localhost:8001/
如圖登陸界面:
內部:
登錄的賬號密碼是您的root賬號和root密碼哦!
防火牆設置
sudo firewall-cmd --add-port=80/tcp --permanent sudo firewall-cmd --add-port=8001/tcp --permanent sudo firewall-cmd --reload
如果訪問8001還是失敗,可以關閉防火牆再試
systemctly stop firewalld.service systemctly disable firewalld.service setenforce 0
以上操作太麻煩?
試試一鍵搭建
git clone https://github.com/daicary/kimchi-centos7.git cd kimchi-centos7 chmod +x kimchi-centos7.sh bash kimchi-centos7.sh
項目地址:https://github.com/daicary/kimchi-centos7