您的位置:首页 > 大数据 > 云计算

PaaS 云计算开发运维

qq_28513801 2019-06-24 15:35 621 查看
[blockquote] [p]2.根据提供的软件包,搭建 rancher 平台。通过 curl 命令查询 Rancher 管理 平台首页,将操作命令及返回结果以文本形式提交到答题框。[https://blog.csdn.net/p] [https://blog.csdn.net/blockquote] [code] [root@server ~]# curl http:https://blog.csdn.net/https://blog.csdn.net/10.0.3.137:8080 [https://blog.csdn.net/code] Loading… [code]<script src="https://blog.csdn.net/assetshttps://blog.csdn.net/vendor-c214371e9322ce143cb9f19e79d0e6e3.js"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/assetshttps://blog.csdn.net/ui-3b12799ade384df7b317128106a742f7.js"><https://blog.csdn.net/script> <div id="ember-basic-dropdown-wormhole"><https://blog.csdn.net/div> [https://blog.csdn.net/code] [blockquote] [p]3.根据提供的软件包,通过应用商店部署 Gogs,修改网页访问端口为 9093, 通过 curl 命令访问用户列表,将操作命令及返回结果以文本形式提交到答题框[https://blog.csdn.net/p] [https://blog.csdn.net/blockquote] [code] [root@server ~]# curl http:https://blog.csdn.net/https://blog.csdn.net/10.0.3.138:9093https://blog.csdn.net/ [https://blog.csdn.net/code] [code] <meta name="author" content="Gogs" https://blog.csdn.net/> <meta name="description" content="Gogs is a painless self-hosted Git service" https://blog.csdn.net/> <meta name="keywords" content="go, git, self-hosted, gogs"> <meta name="referrer" content="no-referrer" https://blog.csdn.net/> <meta name="_csrf" content="xQ2ftQXoghUZfIYHHDxukeUUB-s6MTU0NTMxNjY4MDYyOTEwMjY0MQ==" https://blog.csdn.net/> <meta name="_suburl" content="" https://blog.csdn.net/> <meta property="og:url" content="http:https://blog.csdn.net/https://blog.csdn.net/localhost:3000https://blog.csdn.net/" https://blog.csdn.net/> <meta property="og:type" content="website" https://blog.csdn.net/> <meta property="og:title" content="Gogs"> <meta property="og:description" content="Gogs is a painless self-hosted Git service."> <meta property="og:image" content="http:https://blog.csdn.net/https://blog.csdn.net/localhost:3000https://blog.csdn.net/imghttps://blog.csdn.net/gogs-lg.png" https://blog.csdn.net/> <meta property="og:site_name" content="Gogs"> <link rel="shortcut icon" href="https://blog.csdn.net/imghttps://blog.csdn.net/favicon.png" https://blog.csdn.net/> <script src="https://blog.csdn.net/jshttps://blog.csdn.net/jquery-1.11.3.min.js"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/jshttps://blog.csdn.net/libshttps://blog.csdn.net/jquery.are-you-sure.js"><https://blog.csdn.net/script> <link rel="stylesheet" href="https://blog.csdn.net/assetshttps://blog.csdn.net/font-awesome-4.6.3https://blog.csdn.net/csshttps://blog.csdn.net/font-awesome.min.css"> <link rel="stylesheet" href="https://blog.csdn.net/assetshttps://blog.csdn.net/octicons-4.3.0https://blog.csdn.net/octicons.min.css"> <link rel="stylesheet" href="https://blog.csdn.net/csshttps://blog.csdn.net/semantic-2.2.13.min.css"> <link rel="stylesheet" href="https://blog.csdn.net/csshttps://blog.csdn.net/gogs.css?v=cecb1a897806205111ddb7beeb6f99bc"> <script src="https://blog.csdn.net/jshttps://blog.csdn.net/semantic-2.2.13.min.js"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/jshttps://blog.csdn.net/gogs.js?v=cecb1a897806205111ddb7beeb6f99bc"><https://blog.csdn.net/script> <title>Gogs<https://blog.csdn.net/title> <meta name="theme-color" content="#ff5343"> [https://blog.csdn.net/code] Please enable JavaScript in your browser! [code] <div class="following bar light"> <div class="ui container"> <div class="ui grid"> <div class="column"> <div class="ui top secondary menu"> <a class="item brand" href="https://blog.csdn.net/"> <img class="ui mini image" src="https://blog.csdn.net/imghttps://blog.csdn.net/favicon.png"> <https://blog.csdn.net/a> <a class="item active" href="https://blog.csdn.net/">Home<https://blog.csdn.net/a> <a class="item" href="https://blog.csdn.net/explorehttps://blog.csdn.net/repos">Explore<https://blog.csdn.net/a> <a class="item" target="_blank" href="https:https://blog.csdn.net/https://blog.csdn.net/gogs.iohttps://blog.csdn.net/docs" rel="noreferrer">Help<https://blog.csdn.net/a> <div class="right menu"> <a class="item" href="https://blog.csdn.net/userhttps://blog.csdn.net/sign_up"> <i class="octicon octicon-person"><https://blog.csdn.net/i> Register <https://blog.csdn.net/a> <a class="item" href="https://blog.csdn.net/userhttps://blog.csdn.net/login?redirect_to="> <i class="octicon octicon-sign-in"><https://blog.csdn.net/i> Sign In <https://blog.csdn.net/a> <https://blog.csdn.net/div> <https://blog.csdn.net/div> <https://blog.csdn.net/div> <https://blog.csdn.net/div> <https://blog.csdn.net/div> <https://blog.csdn.net/div> [https://blog.csdn.net/code] [img]https://blog.csdn.net/imghttps://blog.csdn.net/favicon.png[https://blog.csdn.net/img] [h1] Gogs [https://blog.csdn.net/h1] [h2]A painless self-hosted Git service[https://blog.csdn.net/h2] [code] <div class="ui stackable middle very relaxed page grid"> <div class="eight wide center column"> <h1 class="hero ui icon header"> <i class="octicon octicon-flame"><https://blog.csdn.net/i> Easy to install <https://blog.csdn.net/h1> <p class="large"> Simply <a target="_blank" href="https:https://blog.csdn.net/https://blog.csdn.net/gogs.iohttps://blog.csdn.net/docshttps://blog.csdn.net/installationhttps://blog.csdn.net/install_from_binary.html">run the binary<https://blog.csdn.net/a> for your platform. Or ship Gogs with <a target="_blank" href="https:https://blog.csdn.net/https://blog.csdn.net/github.comhttps://blog.csdn.net/gogitshttps://blog.csdn.net/gogshttps://blog.csdn.net/treehttps://blog.csdn.net/masterhttps://blog.csdn.net/docker">Docker<https://blog.csdn.net/a> or <a target="_blank" href="https:https://blog.csdn.net/https://blog.csdn.net/github.comhttps://blog.csdn.net/geerlingguyhttps://blog.csdn.net/ansible-vagrant-exampleshttps://blog.csdn.net/treehttps://blog.csdn.net/masterhttps://blog.csdn.net/gogs">Vagrant<https://blog.csdn.net/a>, or get it <a target="_blank" href="https:https://blog.csdn.net/https://blog.csdn.net/gogs.iohttps://blog.csdn.net/docshttps://blog.csdn.net/installationhttps://blog.csdn.net/install_from_packages.html">packaged<https://blog.csdn.net/a>. <https://blog.csdn.net/p> <https://blog.csdn.net/div> <div class="eight wide center column"> <h1 class="hero ui icon header"> <i class="octicon octicon-device-desktop"><https://blog.csdn.net/i> Cross-platform <https://blog.csdn.net/h1> <p class="large"> Gogs runs anywhere <a target="_blank" href="http:https://blog.csdn.net/https://blog.csdn.net/golang.orghttps://blog.csdn.net/">Go<https://blog.csdn.net/a> can compile for: Windows, Mac OS X, Linux, ARM, etc. Choose the one you love! <https://blog.csdn.net/p> <https://blog.csdn.net/div> <https://blog.csdn.net/div> <div class="ui stackable middle very relaxed page grid"> <div class="eight wide center column"> <h1 class="hero ui icon header"> <i class="octicon octicon-rocket"><https://blog.csdn.net/i> Lightweight <https://blog.csdn.net/h1> <p class="large"> Gogs has low minimal requirements and can run on an inexpensive Raspberry Pi. Save your machine energy! <https://blog.csdn.net/p> <https://blog.csdn.net/div> <div class="eight wide center column"> <h1 class="hero ui icon header"> <i class="octicon octicon-code"><https://blog.csdn.net/i> Open Source <https://blog.csdn.net/h1> <p class="large"> It's all on <a target="_blank" href="https:https://blog.csdn.net/https://blog.csdn.net/github.comhttps://blog.csdn.net/gogitshttps://blog.csdn.net/gogshttps://blog.csdn.net/">GitHub<https://blog.csdn.net/a>! Join us by contributing to make this project even better. Don't be shy to be a contributor! <https://blog.csdn.net/p> <https://blog.csdn.net/div> <https://blog.csdn.net/div> [https://blog.csdn.net/code] [code] <https://blog.csdn.net/div> <footer> <div class="ui container"> <div class="ui left"> © 2017 Gogs Version: 0.11.34.1122 Page: <strong>0ms<https://blog.csdn.net/strong> Template: <strong>0ms<https://blog.csdn.net/strong> <https://blog.csdn.net/div> <div class="ui right links"> <div class="ui language bottom floating slide up dropdown link item"> <i class="world icon"><https://blog.csdn.net/i> <div class="text">English<https://blog.csdn.net/div> <div class="menu"> <a class="item active selected" href="#">English<https://blog.csdn.net/a> <a class="item " href="?lang=zh-CN">简体中文<https://blog.csdn.net/a> <a class="item " href="?lang=zh-HK">繁體中文(香港)<https://blog.csdn.net/a> <a class="item " href="?lang=zh-TW">繁體中文(臺灣)<https://blog.csdn.net/a> <a class="item " href="?lang=de-DE">Deutsch<https://blog.csdn.net/a> <a class="item " href="?lang=fr-FR">français<https://blog.csdn.net/a> <a class="item " href="?lang=nl-NL">Nederlands<https://blog.csdn.net/a> <a class="item " href="?lang=lv-LV">latviešu<https://blog.csdn.net/a> <a class="item " href="?lang=ru-RU">русский<https://blog.csdn.net/a> <a class="item " href="?lang=ja-JP">日本語<https://blog.csdn.net/a> <a class="item " href="?lang=es-ES">español<https://blog.csdn.net/a> <a class="item " href="?lang=pt-BR">português do Brasil<https://blog.csdn.net/a> <a class="item " href="?lang=pl-PL">polski<https://blog.csdn.net/a> <a class="item " href="?lang=bg-BG">български<https://blog.csdn.net/a> <a class="item " href="?lang=it-IT">italiano<https://blog.csdn.net/a> <a class="item " href="?lang=fi-FI">suomi<https://blog.csdn.net/a> <a class="item " href="?lang=tr-TR">Türkçe<https://blog.csdn.net/a> <a class="item " href="?lang=cs-CZ">čeština<https://blog.csdn.net/a> <a class="item " href="?lang=sr-SP">српски<https://blog.csdn.net/a> <a class="item " href="?lang=sv-SE">svenska<https://blog.csdn.net/a> <a class="item " href="?lang=ko-KR">한국어<https://blog.csdn.net/a> <a class="item " href="?lang=gl-ES">galego<https://blog.csdn.net/a> <a class="item " href="?lang=uk-UA">українська<https://blog.csdn.net/a> <a class="item " href="?lang=en-GB">English (United Kingdom)<https://blog.csdn.net/a> <a class="item " href="?lang=hu-HU">Magyar<https://blog.csdn.net/a> <a class="item " href="?lang=sk-SK">slovenský<https://blog.csdn.net/a> <https://blog.csdn.net/div> <https://blog.csdn.net/div> <a href="https://blog.csdn.net/assetshttps://blog.csdn.net/librejshttps://blog.csdn.net/librejs.html" style="display:none" data-jslicense="1">Javascript Licenses<https://blog.csdn.net/a> <a target="_blank" href="https:https://blog.csdn.net/https://blog.csdn.net/gogs.io">Website<https://blog.csdn.net/a> <span class="version">Go1.8<https://blog.csdn.net/span> <https://blog.csdn.net/div> <https://blog.csdn.net/div> <https://blog.csdn.net/footer> [https://blog.csdn.net/code] [blockquote] [p]4.根据提供的软件包,通过应用商店部署 Elasticsearch 2.x,修改网页访问端 口为 9094,通过 curl 命令访问首页,将操作命令及返回结果以文本形式提交到 答题框。[https://blog.csdn.net/p] [https://blog.csdn.net/blockquote] [p][root@server ~]# curl http:https://blog.csdn.net/https://blog.csdn.net/10.0.3 1c6f4 .138:9094[https://blog.csdn.net/p] [code] <html lang="en" ng-app="kopf" ng-controller="GlobalController"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"https://blog.csdn.net/> <meta charset="utf-8"> <meta name="description" content=""> <meta name="author" content=""> <title ng-bind="title"><https://blog.csdn.net/title> <link rel="icon" type="imagehttps://blog.csdn.net/x-icon" href="favicon.ico"> <link href="font-awesomehttps://blog.csdn.net/csshttps://blog.csdn.net/font-awesome.css" rel="stylesheet"> <link href="disthttps://blog.csdn.net/lib.css" rel="stylesheet"> <link href="disthttps://blog.csdn.net/kopf.css" rel="stylesheet"> <link ng-href="disthttps://blog.csdn.net/{{getTheme()}}_style.css" rel="stylesheet"> <script src="disthttps://blog.csdn.net/lib.js" type="texthttps://blog.csdn.net/javascript" charset="utf-8"><https://blog.csdn.net/script> <script src="disthttps://blog.csdn.net/kopf.js" type="texthttps://blog.csdn.net/javascript" charset="utf-8"><https://blog.csdn.net/script> [https://blog.csdn.net/code] [root@server ~]# [blockquote] [p]5根据提供的软件包,通过应用商店部署 Grafana,修改网页访问端口为 9090,通过 curl 命令访问首页,将操作命令及返回结果以文本形式提交到答题框。[https://blog.csdn.net/p] [https://blog.csdn.net/blockquote] [code] [root@server ~]# curl http:https://blog.csdn.net/https://blog.csdn.net/10.0.3.138:9090https://blog.csdn.net/graph [https://blog.csdn.net/code] Prometheus Time Series Collection and Processing Server [code]<link type="texthttps://blog.csdn.net/css" rel="stylesheet" href="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/bootstrap-3.3.1https://blog.csdn.net/csshttps://blog.csdn.net/bootstrap.min.css?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"> <link type="texthttps://blog.csdn.net/css" rel="stylesheet" href="https://blog.csdn.net/statichttps://blog.csdn.net/csshttps://blog.csdn.net/prometheus.css?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"> <script> var PATH_PREFIX = ""; var BUILD_VERSION = "10f645382988add09c8e3420d0d7ff2dc4d36a29"; $(function () { $('[data-toggle="tooltip"]').tooltip() }) <https://blog.csdn.net/script> <link type="texthttps://blog.csdn.net/css" rel="stylesheet" href="https://blog.csdn.net/statichttps://blog.csdn.net/csshttps://blog.csdn.net/graph.css?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"> <link type="texthttps://blog.csdn.net/css" rel="stylesheet" href="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/rickshawhttps://blog.csdn.net/rickshaw.min.css?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"> <link type="texthttps://blog.csdn.net/css" rel="stylesheet" href="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/eonasdan-bootstrap-datetimepickerhttps://blog.csdn.net/bootstrap-datetimepicker.min.css?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/rickshawhttps://blog.csdn.net/vendorhttps://blog.csdn.net/d3.v3.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/rickshawhttps://blog.csdn.net/vendorhttps://blog.csdn.net/d3.layout.min.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/rickshawhttps://blog.csdn.net/rickshaw.min.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/momenthttps://blog.csdn.net/moment.min.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/eonasdan-bootstrap-datetimepickerhttps://blog.csdn.net/bootstrap-datetimepicker.min.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/bootstrap3-typeaheadhttps://blog.csdn.net/bootstrap3-typeahead.min.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/fuzzyhttps://blog.csdn.net/fuzzy.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/mustachehttps://blog.csdn.net/mustache.min.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/jshttps://blog.csdn.net/jquery.selection.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/vendorhttps://blog.csdn.net/jshttps://blog.csdn.net/jquery.hotkeys.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script src="https://blog.csdn.net/statichttps://blog.csdn.net/jshttps://blog.csdn.net/graph.js?v=10f645382988add09c8e3420d0d7ff2dc4d36a29"><https://blog.csdn.net/script> <script id="graph_template" type="texthttps://blog.csdn.net/x-handlebars-template"><https://blog.csdn.net/script> [https://blog.csdn.net/code] Toggle navigation [url=https://blog.csdn.net/]Prometheus[https://blog.csdn.net/url] [ul] [code] <li><a href="https://blog.csdn.net/alerts">Alerts<https://blog.csdn.net/a><https://blog.csdn.net/li> <li><a href="https://blog.csdn.net/graph">Graph<https://blog.csdn.net/a><https://blog.csdn.net/li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Status <span class="caret"><https://blog.csdn.net/span><https://blog.csdn.net/a> <ul class="dropdown-menu"> <li><a href="https://blog.csdn.net/status">Runtime &amp; Build Information<https://blog.csdn.net/a><https://blog.csdn.net/li> <li><a href="https://blog.csdn.net/flags">Command-Line Flags<https://blog.csdn.net/a><https://blog.csdn.net/li> <li><a href="https://blog.csdn.net/config">Configuration<https://blog.csdn.net/a><https://blog.csdn.net/li> <li><a href="https://blog.csdn.net/rules">Rules<https://blog.csdn.net/a><https://blog.csdn.net/li> <li><a href="https://blog.csdn.net/targets">Targets<https://blog.csdn.net/a><https://blog.csdn.net/li> <https://blog.csdn.net/ul> <https://blog.csdn.net/li> <li> <a href="https:https://blog.csdn.net/https://blog.csdn.net/prometheus.io" target="_blank">Help<https://blog.csdn.net/a> <https://blog.csdn.net/li> <https://blog.csdn.net/ul> <https://blog.csdn.net/div> <https://blog.csdn.net/div> <https://blog.csdn.net/nav> <div id="graph_container" class="container-fluid"> <https://blog.csdn.net/div> <div class="container-fluid"> <div><input class="btn btn-primary" type="submit" value="Add Graph" id="add_graph"><https://blog.csdn.net/div> <https://blog.csdn.net/div> [https://blog.csdn.net/code] [https://blog.csdn.net/ul] [blockquote] [p]6.根据提供的软件包,通过应用商店部署 Grafana,访问 3000 端口,使用 curl 命令访问 Grafana 服务的 3000 端口,将操作命令及返回结果以文本形式提交到 答题框。[https://blog.csdn.net/p] [https://blog.csdn.net/blockquote] [code] [root@server ~]# curl -H "Authorization: Bearer eyJrIjoiaHNjUFZBRkczRzI3Tk84dTZGc25MU0JLOXNjWDdzS0wiLCJuIjoid21tIiwiaWQiOjJ9" http:https://blog.csdn.net/https://blog.csdn.net/10.0.3.138:3000https://blog.csdn.net/apihttps://blog.csdn.net/dashboardshttps://blog.csdn.net/home | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1452 100 1452 0 0 33759 0 --:--:-- --:--:-- --:--:-- 34571 { "dashboard": { "annotations": { "list": [] }, "editable": true, "hideControls": true, "id": null, "links": [], "rows": [ { "collapse": false, "editable": true, "height": "25px", "panels": [ { "content": "<div class=\"text-center dashboard-header\">\n <span>Home Dashboard<https://blog.csdn.net/span>\n<https://blog.csdn.net/div>", "editable": true, "id": 1, "links": [], "mode": "html", "span": 12, "style": {}, "title": "", "transparent": true, "type": "text" }, { "id": 123123, "span": 12, "type": "gettingstarted" } ], "title": "Home Dashboard" }, { "collapse": false, "editable": true, "height": "510px", "panels": [ { "headings": true, "id": 3, "limit": 4, "links": [], "query": "", "recent": true, "search": false, "span": 7, "starred": true, "tags": [], "title": "", "transparent": false, "type": "dashlist" }, { "editable": true, "error": false, "id": 4, "isNew": true, "links": [], "span": 5, "title": "", "transparent": false, "type": "pluginlist" } ], "title": "Row" } ], "schemaVersion": 12, "sharedCrosshair": false, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": { "enable": false, "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ], "type": "timepicker" }, "timezone": "browser", "title": "Home", "version": 2 }, "meta": { "canEdit": true, "canSave": false, "canStar": false, "created": "0001-01-01T00:00:00Z", "createdBy": "", "expires": "0001-01-01T00:00:00Z", "isHome": true, "slug": "", "updated": "0001-01-01T00:00:00Z", "updatedBy": "", "version": 0 } } [root@server ~]# [https://blog.csdn.net/code] [blockquote] [p]7.在 server 节点,修改配置文件,使仓库指向我们自己创建的 registry 节点, 使用 docker info 命令查看修改后 docker 的仓库指向,将添加配置文件的参数和 执行 docker info 命令的返回结果以文本形式提交到答题框。[https://blog.csdn.net/p] [https://blog.csdn.net/blockquote] [code] [root@server etc]# cat https://blog.csdn.net/etchttps://blog.csdn.net/sysconfighttps://blog.csdn.net/docker # https://blog.csdn.net/etchttps://blog.csdn.net/sysconfighttps://blog.csdn.net/docker ADD_REGISTRY='--add-registry 10.0.3.137:5000' INSECURE_REGISTRY='--insecure-registry 10.0.3.137:5000' [root@server etc]# docker info Registry: https:https://blog.csdn.net/https://blog.csdn.net/10.0.3.137:5000https://blog.csdn.net/v1https://blog.csdn.net/ WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled Insecure Registries: 10.0.3.137:5000 127.0.0.0https://blog.csdn.net/8 Registries: 10.0.3.137:5000 (insecure), docker.io (secure) [root@server etc]# [https://blog.csdn.net/code] [blockquote] [p]8.搭建 rancher 平台的时候,需要打开系统的内核转发功能,请把打开内核 转发功能的参数以文本形式提交到答题框。[https://blog.csdn.net/p] [https://blog.csdn.net/blockquote] [code] net.ipv4.ip_forward=1 net.ipv4.conf.default.rp_filter=0 net.ipv4.conf.all.rp_filter=0 [https://blog.csdn.net/code] [blockquote] [p]9.当要使用 docker api 查询信息的时候,我们需要修改 docker 的配置文件, 添加一条 OPTIONS 来使得 api 功能可以使用,请把添加的 OPTIONS 参数以文 本形式提交到答题框。[https://blog.csdn.net/p] [https://blog.csdn.net/blockquote] [code] OPTIONS='-H=tcp:https://blog.csdn.net/https://blog.csdn.net/0.0.0.0:2375 -H unix:https://blog.csdn.net/https://blog.csdn.net/https://blog.csdn.net/varhttps://blog.csdn.net/runhttps://blog.csdn.net/docker.sock' (在https://blog.csdn.net/etchttps://blog.csdn.net/sysconfighttps://blog.csdn.net/docker文件后面加入就行了) [https://blog.csdn.net/code] [blockquote] [p]10.配置 docker 容器实现 nginx 的负载均衡,需要修改 nginx 的配置文件,请 把定义 tomcat 负载均衡的参数以文本形式提交到答题框。[https://blog.csdn.net/p] [https://blog.csdn.net/blockquote] [code] https://blog.csdn.net/https://blog.csdn.net/这个是定义Tomcat服务的负载均衡 upstream wei { server 10.0.3.137:32768; server 10.0.3.137:32769; } server { listen 80; server_name 10.0.3.137;https://blog.csdn.net/https://blog.csdn.net/宿主机ip #charset koi8-r; #access_log https://blog.csdn.net/varhttps://blog.csdn.net/loghttps://blog.csdn.net/nginxhttps://blog.csdn.net/host.access.log main; https://blog.csdn.net/https://blog.csdn.net/这个是调用Tomcat服务的负载均衡 location https://blog.csdn.net/ { proxy_pass http:https://blog.csdn.net/https://blog.csdn.net/wei; } [https://blog.csdn.net/code]
标签: