Docker 从入门到实践 0.9.0(2017-12-31)apt-transport-https \ ca-certificates \ curl \ software-properties-common 鉴于国内网络问题,强烈建议使用国内源,官方源请在注释中查看。 为了确认所下载软件包的合法性,需要添加软件源的 GPG 密钥。 $ curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add - # 官方源 # $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 然后,我们需要向 source.list 中添加 Docker 软件源 $ sudo add-apt-repository \ apt-get install docker-ce 使用脚本自动安装 在测试或开发环境中 Docker 官方为了简化安装流程,提供了一套便捷的安装脚本,Ubuntu 系统上可以使用这套脚本安装: $ curl -fsSL get.docker.com -o get-docker.sh $ sudo sh get-docker.sh --mirror Aliyun 执行这个命令后,脚本就会自动的将一切准备工作做好,并且把0 码力 | 370 页 | 6.73 MB | 1 年前3
 Hadoop开发指南-******-master1的Namenode为Active为例 数据准备 touch uhadoop.txt echo "uhadoop" > uhadoop.txt 创建⽂件请求 curl -i -X PUT "http://uhadoop-******-master1:50070/webhdfs/v1/tmp/uhadoop.txt?op=CREATE" Hadoop开发指南 Location: http://: /webhdfs/v1/ ?op=CREATE... Content-Length: 0 使⽤上述Location地址上传⽂件 curl -i -X PUT -T uhadoop.txt "http://uhadoop-******-core*:50075/webhdfs/v1/tmp/uhadoop.txt? op=CREAT echo "ucloud" > append_uhadoop.txt 获取被append⽂件地址 Hadoop开发指南 Copyright © 2012-2021 UCloud 优刻得 7/12 curl -i -X POST "http://uhadoop-hfygbg-master1:50070/webhdfs/v1/tmp/uhadoop.txt?op=APPEND" 执⾏上述命令将获取到 0 码力 | 12 页 | 135.94 KB | 1 年前3
 Istio Security AssessmentIstio Security Assessment Google / NCC Group Confidential kubectl exec -it {YOURPOD} -n {YOURNS} -- curl istiod.istio-system.svc.clus ter.local:15014/debug • This will return the plaintext debug endpoing result of the following 7. Run the following command and observe that a normal HTML page is returned curl -v "http://$GATEWAY/productpage" 8. Use an administrative account to run the following commands samples/bookinfo/networking/bookinfo-gateway.yaml 9. Run the following two commands curl -v "http://$GATEWAY/productpage" curl -v "http://$GATEWAY/login" 10. Observe that the first command now returns a 4040 码力 | 51 页 | 849.66 KB | 1 年前3
 OpenShift Container Platform 4.10 监控prometheus-k8s -n openshift-monitoring` $ oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos-querier.openshift- monitoring.svc:9091/api/v1/query get route thanos-querier -n openshift-monitoring -o json | jq -r '.spec.host'` $ NAMESPACE=ns1 $ curl -X GET -kG "https://$THANOS_QUERIER_HOST/api/v1/query?" --data-urlencode "query=up{namespace='$NAMESPACE'}" OpenShift Container Platform 中,指标通过 /metrics 规范名称下的 HTTP 服务端点公开。您可以通 过针对 http:///metrics 运行 curl 查询来列出服务的所有可用指标。例如,您可以向 prometheus-example-app 示例服务公开路由,然后运行以下命令来查看其所有可用指标: 输 输出示例 出示例 其他 其他资 资源 0 码力 | 135 页 | 1.58 MB | 1 年前3
 Docker 从入门到实践 0.4其他窗口也无法执行操作了。 nsenter 工具在 util-linux 包2.23版本后包含。 如果系统中 util-linux 包没有该命令,可以按照下面的方法 从源码安装。 $ cd /tmp; curl https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.tar.gz | tar -zxf-; cd util-linux-2 --error-logfile - -k gevent -b 0.0.0.0:5000 -w 4 --max-requests 100 docker_registry.wsgi:application 此时使用 curl 访问本地的 5000 端口,看到输出 docker-registry 的版本信息说明运行成功。 *注: config/config_sample.yml 文件是示例配置文件。 创建好私有仓库之后,就可以使用 for rev [ba5877dc9bec] on {http://192.168.7.26:5000/v1/repositories/test/tags/latest} 用 curl 查看仓库中的镜像。 $ curl http://192.168.7.26:5000/v1/search {"num_results": 7, "query": "", "results": [{"description":0 码力 | 179 页 | 2.27 MB | 1 年前3
 Dapr february 2021 security audit reportPollution is still possible, as demonstrated via the Proof-of-Concept (PoC) below. PoC: /tmp # ./curl -d "{"data":{"orderId":"1"}}" -i -H 'dapr-api-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ey' -X accessing the /neworder API of nodeapp is prohibited by the configured access control list. /app # /tmp/curl -XPOST http://localhost:3500/v1.0/invoke/nodeapp/method/neworder -H 'dapr-api-token: eyJ0eXAiO access control list which is supposed to block access to the /neworder API of nodeapp. /app # /tmp/curl -XPOST http://localhost:3500/v1.0/invoke/nodeapp/method/neworde%2572 -H 'dapr-api- token: eyJ0e0 码力 | 9 页 | 161.25 KB | 1 年前3
 AI大模型千问 qwen 中文文档entrypoints.openai.api_server --model Qwen/Qwen1.5-7B-Chat 然后,您可以使用 create chat interface 来与 Qwen 进行交流: curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" - �→d '{ "model": 5-7B-Chat-AWQ 模型: python -m vllm.entrypoints.openai.api_server --model Qwen/Qwen1.5-7B-Chat-AWQ curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" - �→d '{ "model": API 兼容的 API: python -m vllm.entrypoints.openai.api_server --model Qwen/Qwen1.5-7B-Chat-GPTQ-Int8 curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" - �→d '{ "model":0 码力 | 56 页 | 835.78 KB | 1 年前3
 OpenShift Container Platform 4.13 网络describe pod$ curl -u : http:// : /metrics $ curl -u user:password https:// : /metrics -k $ curl -u : http:// django-psql-example OpenShift Container Platform 4.13 网 网络 络 72 b. 运行以下 curl 命令或在浏览器中访问路由主机名: 3. 对于 404 自定义 http 错误代码响应: a. 访问不存在的路由或路由不正确。 b. 运行以下 curl 命令或在浏览器中访问路由主机名: 4. 检查 haproxy.config 文件中的 errorfile 属性是否正确: HAProxy 进程不会启动。有关这个参数的更多信息,请参阅"Ingress Controller 配置参数"部分中的表。 7.9. 其他资源 配置自定义 PKI $ curl -vk $ curl -vk $ oc -n openshift-ingress rsh cat /var/lib/haproxy/conf/haproxy 0 码力 | 697 页 | 7.55 MB | 1 年前3
 OpenShift Container Platform 4.4 构建(build)BuildConfig 中定义 GitHub Webhook 触发器,并由 Gogs 服务器触发它。 2. 提供含有有效 JSON 内容的文件后,如 payload.json,您可以使用 curl 手动触发 Webhook: $ curl -H "X-GitHub-Event: push" -H "Content-Type: application/json" -k -X POST --data- binary GitLab 设置说明,将 Webhook URL 粘贴到 GitLab 存储库设置中。 2. 提供含有有效 JSON 内容的文件后,如 payload.json,您可以使用 curl 手动触发 Webhook: $ curl -H "X-GitLab-Event: Push Hook" -H "Content-Type: application/json" -k -X POST -- data-binary Bitbucket 设置说明,将 Webhook URL 粘贴到 Bitbucket 存储库设置中。 2. 提供含有有效 JSON 内容的文件后,如 payload.json,您可以使用 curl 手动触发 Webhook: $ curl -H "X-Event-Key: repo:push" -H "Content-Type: application/json" -k -X POST --data- binary0 码力 | 101 页 | 1.12 MB | 1 年前3
 OpenShift Container Platform 4.13 CI/CD服务器,也可以在 BuildConfig 中定义 GitHub Webhook 触发器,并由 Gogs 服务器触发它。 2. 提供含有有效 JSON 内容的文件后,如 payload.json,您可以使用 curl 手动触发 Webhook: 只有在 API 服务器没有适当签名的证书时,才需要 -k 参数。 注意 注意 只有 GitHub Webhook 事件的 ref 值与 BuildConfig 资源中的 com:443/apis/build.openshift.io/v1/namespaces//buildconfigs/ /webhooks/ /github $ curl -H "X-GitHub-Event: push" -H "Content-Type: application/json" -k -X POST --data- binary @payload.json 值。 c. 按照 GitLab 设置说明,将 Webhook URL 粘贴到 GitLab 存储库设置中。 2. 提供含有有效 JSON 内容的文件后,如 payload.json,您可以使用 curl 手动触发 Webhook: 只有在 API 服务器没有适当签名的证书时,才需要 -k 参数。 2.8.1.1.3. 使用 使用 Bitbucket Webhook 当存储库更新时,Bitbucket 0 码力 | 129 页 | 1.37 MB | 1 年前3
共 186 条
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 19
 













