我正在使用安装在 EC2 实例上的 mongo db 服务器版本 MongoDB shell 版本 v4.0.16。
我可以使用 mongo 命令进入实例
mongo mongodb+srv://dxxxxxxx:xxxxxx[][]@cluster0-vxcen.gcp.mongodb.net
MongoDB shell version v4.0.16
connecting to: mongodb://cluster0-shard-00-02-vxcen.gcp.mongodb.net.:27017,cluster0-shard-00-01-vxcen.gcp.mongodb.net.:27017,cluster0-shard-00-00-vxcen.gcp.mongodb.net.:27017/?authSource=admin&gssapiServiceName=mongodb&replicaSet=Cluster0-shard-0&ssl=true
2020-03-05T09:02:45.265+0000 I NETWORK [js] Starting new replica set monitor for Cluster0-shard-0/cluster0-shard-00-02-vxcen.gcp.mongodb.net.:27017,cluster0-shard-00-01-vxcen.gcp.mongodb.net.:27017,cluster0-shard-00-00-vxcen.gcp.mongodb.net.:27017
2020-03-05T09:02:45.604+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to cluster0-shard-00-00-vxcen.gcp.mongodb.net.:27017 (1 connections now open to cluster0-shard-00-00-vxcen.gcp.mongodb.net.:27017 with a 5 second timeout)
2020-03-05T09:02:45.607+0000 I NETWORK [js] Successfully connected to cluster0-shard-00-01-vxcen.gcp.mongodb.net.:27017 (1 connections now open to cluster0-shard-00-01-vxcen.gcp.mongodb.net.:27017 with a 5 second timeout)
2020-03-05T09:02:45.707+0000 I NETWORK [js] changing hosts to Cluster0-shard-0/cluster0-shard-00-00-vxcen.gcp.mongodb.net:27017,cluster0-shard-00-01-vxcen.gcp.mongodb.net:27017,cluster0-shard-00-02-vxcen.gcp.mongodb.net:27017 from …Run Code Online (Sandbox Code Playgroud) 如何在与ubuntu中的默认端口6379不同的端口上启动redis-server
我使用以下步骤来安装redis
我安装了,但我不知道如何在与默认端口6379不同的端口上启动redis-server
请告诉我将默认端口更改为不同端口的步骤?
我一直在云实例上运行 Rocketchat。我使用了以下文档中指定的参数在 Rocketchat 中通过 docker-compose 在 yaml 文件中创建管理员用户。
https://docs.rocket.chat/guides/administrator-guides/create-the-first-admin
我无法创建管理员用户,因为我的变量已正确指定。
docker-compose.yaml
version: '3.8'
services:
rocketchat:
image: rocketchat/rocket.chat:latest
container_name: $ROCKETCHAT_CONTAINER_NAME
command: >
bash -c
"for i in `seq 1 30`; do
node main.js &&
s=$$? && break || s=$$?;
echo \"Tried $$i times. Waiting 5 secs...\";
sleep 5;
done; (exit $$s)"
restart: unless-stopped
volumes:
- ./uploads:/app/uploads
depends_on:
- mongo
environment:
- PORT=3000
- ROOT_URL=http://xxxxxxxxx:3000
- MONGO_URL=mongodb://mongo:27017/rocketchat
- MONGO_OPLOG_URL=mongodb://mongo:27017/local
- MAIL_URL=smtp://smtp.email
- ADMIN_USERNAME=admin
- ADMIN_PASS=password
- ADMIN_EMAIL=beulah@xxxxxx.com
ports:
- 3000:$ROCKETCHAT_PORT
labels:
- …Run Code Online (Sandbox Code Playgroud) 我的应用程序使用 HTTPS 使用 docker-compose 运行所有服务。
应用程序运行没有任何问题,我们正在尝试为所有服务设置 HTTPS 负载均衡器。
我们使用此文档创建了一个负载均衡器。
我们添加了三个后端服务,并为所有后端服务设置了主机和路径规则。
但是当尝试查看以下 HTTPS URL 时
https://Loadbalancer-ip:/strapi
https://Loadbalancer-ip:/auth
https://Loadbalancer-ip:/images/1。
我正在获取 404 页面。但它单独适用于所有不匹配(默认)。
我正在使用sonarqube-6.0,我尝试使用示例示例与声纳扫描仪一起运行
当我在声纳扫描仪中运行任何项目时,我得到了责备错误
声纳扫描器配置中的文件Conf是vi sonar-scanner.properties
#
# must be unique in a given SonarQube instance
sonar.projectKey=SonarSource-sonar-examples-8051d9d
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=java-maven-simple
sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
# If not set, SonarQube starts looking for source code from the directory containing
# the sonar-project.properties file.
sonar.sources=/Users/kingslee/work/software/projects/sonar-scanner-2.8/bin/sonar-examples …Run Code Online (Sandbox Code Playgroud)如何保护从单个 Windows 计算机对此端点的访问。
网址: https: //test.rev.com:443 /press/api/v1/receiver
需要避免从 AWS 中的任何其他计算机进行 POST 访问
我使用带有持久性磁盘 (pd-ssd) 的 terraform 创建了一个 kubernetes 集群。我还创建了存储类和持久性卷声明。
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-claim
labels:
app: elasticsearch
spec:
storageClassName: ssd
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 30G
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: ssd
provisioner: kubernetes.io/gce-pd
parameters:
type: pd-ssd
reclaimPolicy: Retain
---
apiVersion: v1
kind: Service
metadata:
name: elasticsearch
labels:
name: elasticsearch
spec:
type: NodePort
ports:
- name: elasticsearch-port1
port: 9200
protocol: TCP
targetPort: 9200
- name: elasticsearch-port2
port: 9300
protocol: TCP
targetPort: 9300
selector:
app: elasticsearch
tier: elasticsearch …Run Code Online (Sandbox Code Playgroud) 我想要备份kubernetes数据。所以我有一个带有kubernetes集群的永久磁盘,并设置了reclaimPolicy:保留在storage.yaml文件中,以确保不应删除磁盘。
删除kubernetes集群后,磁盘保留在compute Engine-> Disks上。但是在磁盘的帮助下,我无法创建kubernetes集群。我只能在GCP中创建VM。
是否可以使用GCP上的现有磁盘创建新的Kubernetes集群
无法在 keycloak 版本 15.0.2 上使用 Keycloak 导入来导入领域 json。我正在 Docker 容器中运行 keycloak。
下面是compose中的docker卷
卷:
- ./keycloak-realm.json:/tmp/keycloak-realm.json
Run Code Online (Sandbox Code Playgroud)
keycloak 的环境变量
KEYCLOAK_IMPORT=/tmp/keycloak-realm.json -Dkeycloak.profile.feature.upload_scripts=enabled -Dkeycloak.migration.strategy=OVERWRITE_EXISTING
Run Code Online (Sandbox Code Playgroud)
导入失败并出现已存在错误。使用迁移策略时也遇到同样的错误。
即使存在,我如何导入领域?
来自Keycloak的错误:
04:47:48,047 信息 [org.keycloak.services](ServerService 线程池 -- 70)KC-SERVICES0003:不从文件 /tmp/keycloak-realm.json 导入领域 sso。它已经存在了。04:47:48,068 信息 [org.keycloak.services](ServerService 线程池 -- 70)KC-SERVICES0003:未从文件 /tmp/keycloak-realm.json 导入领域 sso。它已经存在了。
如何在ubuntu中与默认端口3306不同的端口上启动AWS RDS
所以,如果有人知道这些步骤,请帮助我,以便它对我有用.
如何将实例名称指定为 aws_instance 的一部分,正在启动的实例没有与其关联的显示名称,并且在 EC2 控制台中显示为空。注意:instance_id 正确显示
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance
kubernetes ×2
admin ×1
aws-cli ×1
endpoint ×1
git-blame ×1
keycloak ×1
linux ×1
mongodb ×1
mongodump ×1
port ×1
redis ×1
redis-server ×1
rocket.chat ×1
sonarqube ×1
terraform ×1
ubuntu ×1
ubuntu-14.04 ×1
url ×1