小编Mat*_*bin的帖子

标准debian安装的elasticsearch数据文件在哪里?

现在我处于一个非常棘手的问题......

我的数据服务器已被黑客入侵,现在我无法通过curl或任何其他方法请求我的elasticsearch服务器.我有一堆非常关键的数据尚未备份(迟到2天,地狱,我没有看到备份失败的警报).

我试图重新启动服务,但没有办法,它什么也没说,当我用ps观看时,我什么也得不到.我认为这来自我的托管服务器,它以安全模式运行我的服务器...

所以我试图找到物理文件,但我找不到它们.我有一个非自定义的安装,所以在我的配置文件中,我有这个:

# Path to directory where to store index data allocated for this node.
#
# path.data: /path/to/data
#
# Can optionally include more than one location, causing data to be striped across
# the locations (a la RAID 0) on a file level, favouring locations with most free
# space on creation. For example:
#
# path.data: /path/to/data1,/path/to/data2
Run Code Online (Sandbox Code Playgroud)

很棒,但最后,我的文件在哪里?

有人可以帮助我吗?在此感谢所有在这个地方的伟大人物

backup debian elasticsearch

15
推荐指数
2
解决办法
2万
查看次数

错误“您提供的执行角色必须允许 AWS EventBridge Scheduler 承担该角色。”

我正在创建一个角色来自动重新启动 EC2 实例。但我收到此错误“您提供的执行角色必须允许 AWS EventBridge Scheduler 承担该角色。”

在此输入图像描述

在角色中,我添加了这些权限

在此输入图像描述

我知道这大部分太多了,但仍然不够,因为我收到了错误...知道吗?

amazon-ec2 amazon-web-services aws-event-bridge

13
推荐指数
2
解决办法
2万
查看次数

出现此错误"UNMET PEER DEPENDENCY grunt@1.0.1"

我通过"npm i"安装grunt时遇到问题.我也试过0.4.5,但同样的错误.关于发生了什么的任何想法?

为了帮助,这些是我的依赖:

  "dependencies": {
    "arrify": "1.0.1",
    "as-jqplot": "1.0.8",
    "babel-runtime": "6.9.2",
    "bootstrap": "3.3.6",
    "bootstrap-slider": "9.1.1",
    "chart.js": "1.0.2",
    "chunk": "0.0.2",
    "clone": "1.0.2",
    "co": "4.6.0",
    "co-body": "4.2.0",
    "co-pg": "2.0.0",
    "expect": "1.20.2",
    "font-awesome": "4.6.3",
    "github": "2.2.0",
    "grunt": "1.0.1",
    "grunt-babel": "6.0.0",
    "grunt-bump": "0.8.0",
    "grunt-cli": "1.2.0",
    "grunt-contrib-concat": "1.0.1",
    "grunt-contrib-copy": "1.0.0",
    "grunt-contrib-imagemin": "1.0.1",
    "grunt-contrib-less": "1.3.0",
    "grunt-contrib-uglify": "2.0.0",
    "grunt-contrib-watch": "1.0.0",
    "grunt-eslint": "19.0.0",
    "grunt-jsonlint": "1.1.0",
    "grunt-plato": "1.2.1",
    "grunt-shell": "1.3.0",
    "jquery": "3.1.0",
    "koa": "1.2.1",
    "koa-bodyparser": "2.2.0",
    "koa-compress": "1.0.9",
    "koa-cors": "0.0.16",
    "koa-jade": "2.1.0",
    "koa-logger": "1.3.0",
    "koa-router": "5.4.0",
    "koa-sql-select": "1.1.1",
    "koa-static-folder": …
Run Code Online (Sandbox Code Playgroud)

heroku node.js npm-install

7
推荐指数
1
解决办法
2830
查看次数

如何从dockerfile启动mongodb

我正在构建一个 dockerfile。但我遇到了一个问题。它说:

/bin/sh: 1: mongod: 未找到

我的泊坞窗文件:

FROM mongo:latest
FROM node

RUN mongod

COPY . .
RUN node ./scripts/import-data.js
Run Code Online (Sandbox Code Playgroud)

这是 docker 构建时发生的情况:

Sending build context to Docker daemon  829.5MB
Step 1/8 : FROM rabbitmq
 ---> e8261c2af9fe
Step 2/8 : FROM portainer/portainer
 ---> 00ead811e8ae
Step 3/8 : FROM docker.elastic.co/elasticsearch/elasticsearch:6.5.1
 ---> 32f93c89076d
Step 4/8 : FROM mongo:latest
 ---> 5976dac61f4f
Step 5/8 : FROM node
 ---> b074182f4154
Step 6/8 : RUN mongod
 ---> Running in 0a4b66a77178
/bin/sh: 1: mongod: not found
The command …
Run Code Online (Sandbox Code Playgroud)

mongodb docker

5
推荐指数
1
解决办法
6230
查看次数

类型错误:“秘密”是必需的

使用 express-openid-connect 时出现此错误

TypeError: "secret" is required
    at module.exports.get (/home/mathkr/persodev/node_modules/express-openid-connect/lib/config.js:166:11)
    at module.exports (/home/mathkr/persodev/node_modules/express-openid-connect/middleware/auth.js:27:18)
    at Object.<anonymous> (/home/mathkr/persodev/server.js:26:9)
Run Code Online (Sandbox Code Playgroud)

我的server.js代码是

const express = require('express');
const app = express();
const port = process.env.PORT || 4200;
const {auth, requiresAuth} = require('express-openid-connect');
const dotenv = require('dotenv');
const session = require('express-session');

const sess = {
  secret: 'somethingsecret',
  cookie: {},
  resave: false,
  saveUninitialized: true
};
if (app.get('env') === 'production') {
  sess.cookie.secure = true;
  app.set('trust proxy', 1);
}
app.use(session(sess));

const config = {
  ...(dotenv.config()).parsed,
  authRequired: false,
  auth0Logout: …
Run Code Online (Sandbox Code Playgroud)

node.js express auth0

5
推荐指数
1
解决办法
752
查看次数

如何在 Amazon S3 上设置“X-Content-Type-Options : nosniff”?

我在 Amazon S3 存储桶上的静态文件(js、css、jpg、gif 等)上设置标头“ X-Content-Type-Options : nosniff ”时遇到问题。

当我尝试添加它时,它对我说:“用户定义的元数据键必须以 x-amz-meta- 开头。”

怎么办呢?我应该做“ x-amz-meta-X-Content-Type-Options

提前致谢 !

security header amazon-s3 mime-types

4
推荐指数
1
解决办法
3965
查看次数