小编rav*_*n99的帖子

ElasticSearch:如何配置logging.yml

我在Ubuntu机器上安装了ElasticSearch 1.4.1.

其日志位于默认位置:

/var/log/elasticsearch/
Run Code Online (Sandbox Code Playgroud)

当我运行ElasticSearch时,一段时间后日志文件会增长,并且很难处理它们.

日志已处于旋转文件模式.意思是,每天都有一个新的日志文件.

我想配置要压缩的日志(例如= file.log.zip,目前它们不是).

我也知道我可以在logging.yml文件中执行此操作,但我不知道该怎么做.

有人可以帮助我吗?

zip logging elasticsearch

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

Nexus:找不到神器

最近我从Archiva迁移到了Sonatype Nexus.

我正在尝试使用来自第三方存储库的Jars,而Nexus不会将其缓存到本地存储库中.

我已经在本节中搜索了答案,而且无法回答这个问题.

这就是我做的......

我正在使用settings.xml:

<settings>
  <mirrors>
    <mirror>
      <!--This sends everything else to /public -->
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>http://THE_URL:8080/nexus/content/groups/public</url>
    </mirror>
  </mirrors>
  <servers>
    <server>
      <id>admin</id>
      <username>user</username>
      <password>password</password>
    </server>
  </servers>
  <profiles>
    <profile>
      <id>nexus</id>
      <!--Enable snapshots for the built in central repo to direct -->
      <!--all requests to nexus via the mirror -->
      <repositories>

        <repository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>

      </repositories>
     <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <!--make the profile active all the time -->
    <activeProfile>nexus</activeProfile>
  </activeProfiles>

</settings> …
Run Code Online (Sandbox Code Playgroud)

caching repository nexus maven

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

Elasticsearch 启动失败:需要 CONFIG_SECCOMP 和 CONFIG_SECCOMP_FILTER

我尝试启动 Elasticsearch 并失败。我检查了日志并收到以下错误:

[...][WARN ][o.e.b.JNANatives         ] unable to install syscall filter:
java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
at org.elasticsearch.bootstrap.SystemCallFilter.linuxImpl(SystemCallFilter.java:342) ~[elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.SystemCallFilter.init(SystemCallFilter.java:617) ~[elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.JNANatives.tryInstallSystemCallFilter(JNANatives.java:258) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.Natives.tryInstallSystemCallFilter(Natives.java:113) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:111) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.6.9.jar:5.6.9]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.6.9.jar:5.6.9]
Run Code Online (Sandbox Code Playgroud)

为什么会这样?

我能做些什么来处理它?

elasticsearch seccomp

6
推荐指数
1
解决办法
5796
查看次数

Ubuntu:PHP如何读取环境变量

我在Ubuntu服务器14.04上运行。

我有一个PHP文件,需要读取环境变量并使用它。

我怎样才能做到这一点?

php linux ubuntu environment-variables

2
推荐指数
1
解决办法
7924
查看次数