zoukankan      html  css  js  c++  java
  • ubnutu 20 安装minishift和常见的问题 (汇总中)

    minishift的安装步骤很简单,主要的问题是国内下载资源很慢

    Minishift需要一个管理程序来启动提供OpenShift集群的虚拟机。这里我们使用VirtualBox作为系统管理程序。

    1.安装 VirtualBox:

    $ sudo apt install virtualbox

    2.安装 Minishift:

    2.2 提取文件

    $ tar -zxvf minishift-1.34.2-linux-amd64.tgz

    2. 3添加minishift路径

    $ export PATH=$PATH:$HOME/<path>/minishift-1.34.2-linux-amd64

    2.4. 启动minishift服务器

    $ minishift start --vm-driver=virtualbox

    2.5.添加openshift- cluster(oc)路径

    $ minishift oc-env
    export PATH="/home/<path>/.minishift/cache/oc/v1.5.0:$PATH"
    # Run this command to configure your shell:
    # eval $(minishift oc-env)

    2.6. 访问minishift服务器

    $ minishift console

    or

    via : https://192.168.99.100:8443

     web 界面访问效果如下:

    3. 安装和启动minishfit常见的问题  

    3.1 Error starting the VM: Error getting the state for host: unexpected EOF

    多半问题是系统BIOS的权限没问题。开机 F1或者Dsc 进入BIOS设置
    
    进入高级 -> 系统设置  ->  启用 VTx 和VTd

    3.2 192.168.42.56:8443: connect: connection refused 

    参考:https://github.com/minishift/minishift/issues/3217

    如果有其他常见问题欢迎汇总~~

    3.2 启动了DB 如何向外暴露端口

    #登陆服务
    1.oc login https://192.168.99.100:8443/ -u xxxx -p xxxxx
    
    #使用oc port-forward 命令暴露端口,我这边用postgresql来测试
    2.oc port-forward postgresql-1-9hbmg 5432:5432
  • 相关阅读:
    利用requests, beautifulsoup包爬取股票信息网站
    Mac自带编码转换工具iconv
    Flask 快速入门
    HTML模版组件
    JavaScript正则表达式及jQuery回顾
    jQuery 教程
    Document
    Document
    Document
    Document
  • 原文地址:https://www.cnblogs.com/hlkawa/p/14171116.html
Copyright © 2011-2022 走看看