vmwarePro centOS docker 寶塔部署web環境

一、概要介紹php

a、本次環境主機爲win7操做系統安裝vmwarePro 虛擬機java

b、虛擬機安裝centOS7 linux 操做系統python

c、centos 安裝docker 部署容器(理解爲linux版虛擬機)linux

d、docker pull centos 安裝centos linux 操做系統web

e、docker 下centos 安裝寶塔web環境(含java , php , asp 環境)docker

 

 

a、本次環境主機爲win7操做系統安裝vmwarePro 虛擬機json

遇到問題:centos

1、vmware player 版本沒有管理菜單,網絡配置功能不夠,須要升級爲pro版本;tomcat

 

b、虛擬機安裝centOS7 linux 操做系統bash

1、centos 下沒法鏈接外網, IP 配置

CentOS 虛擬機配置網絡

http://note.youdao.com/noteshare?id=dd5f40064fd0cded819acae2c9a84626

2、centos yum 源更新問題

CentOS 7.0本地yum源地址及 配置yum地址優先級

http://note.youdao.com/noteshare?id=a9cee6568fc7ecc9bbfb9ccbd974c536

3centos7系統備份與還原

http://note.youdao.com/noteshare?id=85b6944ccea751246cc7ab8737397c3f

4centOS 平常安裝問題集合

http://note.youdao.com/noteshare?id=cad95730e8c24b1e3c8f3831a8b6928c

 

c、centos 安裝docker 部署容器(理解爲linux版虛擬機)

1、docker安裝

Docker 搭建tomcat web環境

http://note.youdao.com/noteshare?id=acccd8810ad637aa801d5413ed6b191d

2、docker pull centos 和 docker search centos 報錯: 網絡錯誤鏈接

docker pull time out問題處理

http://note.youdao.com/noteshare?id=9c45cd7592f50e3659bfcd5e2e8ca8ae

3、docker pull 鏡像加速

緣由同網絡錯誤鏈接相同,新增或修改 /etc/docker/daemon.json 加速配置

systemctl daemon-reload

systemctl restart docker

 

d、docker pull centos 安裝centos linux 操做系統

1、docker pull centos 拉取最新版本centos系統鏡像

2、網絡配置

3、內部端口同母機端口映射

docker run -it -d -p port1 -p port2 -p port3 --name image ../bash.sh

4、docker下web項目被頂層主機同域網絡訪問

docker下容器網絡實際和宿主機網絡一致,只是端口須要作映射處理便可,因此頂層主機訪問仍然只須要鏈接docker宿主centos 便可

e、docker 下centos 安裝寶塔web環境

1、pip can't find

須要手動安裝pip 命令和 setuptools

pip 下載地址: https://pypi.python.org/pypi/pip

解壓 tar -zxvf pip*.tar.gz

進入目錄 cd pip*

構建 python setup.py build

安裝 python setup.py install

 

setuptools 下載: wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz

https://pypi.python.org/pypi/setuptools 下載離線包

進入目錄 cd setuptools*

構建 python setup.py build

安裝 python setup.py install

 

安裝說明

http://docs.bt.cn/443922

而後繼續執行bt安裝

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

 

2、docker中和宿主centos系統中同時安裝了寶塔的狀況 , 會出現docker 中啓動 /etc/init.d/bt start 會直接啓動宿主及其上的寶塔環境

相關文章
相關標籤/搜索