惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
MyScale Blog
MyScale Blog
Microsoft Security Blog
Microsoft Security Blog
量子位
B
Blog
aimingoo的专栏
aimingoo的专栏
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
T
The Exploit Database - CXSecurity.com
N
News | PayPal Newsroom
Cloudbric
Cloudbric
A
About on SuperTechFans
AI
AI
Hacker News: Ask HN
Hacker News: Ask HN
S
Schneier on Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 最新话题
T
The Blog of Author Tim Ferriss
Simon Willison's Weblog
Simon Willison's Weblog
有赞技术团队
有赞技术团队
H
Heimdal Security Blog
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
D
Docker
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic
IT之家
IT之家
Know Your Adversary
Know Your Adversary
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
B
Blog RSS Feed
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
博客园 - 叶小钗
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
The Hacker News
The Hacker News
Y
Y Combinator Blog
I
Intezer
The Register - Security
The Register - Security
F
Full Disclosure
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler

AUR Newest Packages

AUR (en) - xcute AUR (en) - wallrift AUR (en) - smolvm-git AUR (en) - smolvm-bin AUR (en) - smolvm AUR (en) - chess-cat-git AUR (en) - uac-launch-control-bin AUR (en) - openclaw AUR (en) - keyviz-zh-bin AUR (en) - profile-sync-daemon-openrc-git AUR (en) - runex-bin AUR (en) - sing-box-ref1nd-beta-bin AUR (en) - netscan-tui AUR (en) - android-cli AUR (en) - rudo-bin AUR (en) - marmalade-bin AUR (en) - clawx-appimage AUR (en) - echomusic-appimage AUR (en) - vermouth AUR (en) - mautrix-telegram-bin AUR (en) - ketesa AUR (en) - clawd-on-desk-bin AUR (en) - rebased-bin AUR (en) - oxideterm-bin AUR (en) - shed-sh AUR (en) - haus-bin AUR (en) - stably-orca-bin AUR (en) - reflection AUR (en) - emerald-legacy-launcher-git AUR (en) - kwim AUR (en) - pentest-ghostwriter AUR (en) - papagaia AUR (en) - outport-bin AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - python-fastapi-sso AUR (en) - zeed-bin AUR (en) - dwl-git-azerty AUR (en) - libspatialaudio-git AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-git AUR (en) - giff-git AUR (en) - budget-tracker-bin AUR (en) - budget-tracker AUR (en) - tasks-bin AUR (en) - ruri-git AUR (en) - gitmun-bin AUR (en) - python-cozempic AUR (en) - paintfe-bin AUR (en) - paintfe AUR (en) - drop-bin AUR (en) - tritium-launcher-bin AUR (en) - solidc-git AUR (en) - paseo-desktop-bin AUR (en) - dota2-minify-bin AUR (en) - yt-dvr AUR (en) - enneagram AUR (en) - excalidraw-desktop-bin AUR (en) - binaryobjectscanner-bin AUR (en) - openring-rs AUR (en) - openring-rs-bin AUR (en) - brave-origin-beta-bin AUR (en) - whisper.cpp-cuda-bin AUR (en) - libggml-cuda-bin AUR (en) - revdiff AUR (en) - tdesktop-nolimit AUR (en) - cert-checker AUR (en) - yaak-cli AUR (en) - yaak-cli-bin AUR (en) - deez-notes-bin AUR (en) - goosestation-libretro AUR (en) - whispers-cuda-bin AUR (en) - kei AUR (en) - foxguard AUR (en) - hyprlogin-git AUR (en) - kebiki AUR (en) - runex AUR (en) - ikuai-cli AUR (en) - whispers-bin AUR (en) - pipeweaver-app AUR (en) - pipeweaver AUR (en) - agentop-bin AUR (en) - cosmic-ext-connected-git AUR (en) - kwin-dual-mode AUR (en) - skwd-daemon AUR (en) - ter-music-cn AUR (en) - elio-bin AUR (en) - keyboard-chattering-fix-git AUR (en) - qtkeychain-qt5 AUR (en) - gesturecontrol AUR (en) - sharey AUR (en) - ouijit-bin AUR (en) - usque-bin AUR (en) - twig-bin AUR (en) - ascendara-bin
AUR (en) - elasticsearch-bin
2026-05-29 · via AUR Newest Packages

Prog_up commented on 2026-03-09 12:56 (UTC) (edited on 2026-03-09 12:58 (UTC) by Prog_up)

Here are the steps I needed to start elasticsearch.service:

  1. Corrected Keystore Ownership: Changed the owner of /etc/elasticsearch/elasticsearch.keystore from root to elasticsearch to allow the service to access it.

  2. Updated JVM Options: Modified /etc/elasticsearch/jvm.options to use an absolute path for GC logs (/var/log/elasticsearch/gc.log), resolving a "Permission denied" error when the JVM attempted to write to the working directory.

  3. Configured Explicit Paths: Added path.data: /var/lib/elasticsearch and path.logs: /var/log/elasticsearch to /etc/elasticsearch/elasticsearch.yml. This prevents Elasticsearch from attempting to create data and log directories within its installation home (ES_HOME), where it lacked the necessary write permissions.

Lilian commented on 2025-11-21 09:19 (UTC)

This patch adds symlinks for all executables in /usr/share/elasticsearch/bin into /usr/bin.

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,6 +33,13 @@ package() {
   mv config/* "${pkgdir}/etc/elasticsearch/"
   cp -a * "${pkgdir}/usr/share/elasticsearch"
   chmod -R 755 "${pkgdir}/usr/share/elasticsearch" "${pkgdir}/etc/elasticsearch/"
+
+  install -dm755 "${pkgdir}/usr/bin"
+  for f in "${pkgdir}/usr/share/elasticsearch/bin/"*; do
+    fname=$(basename "$f")
+    ln -s "/usr/share/elasticsearch/bin/${fname}" "${pkgdir}/usr/bin/${fname}"
+  done
+
   install -Dm644 "${srcdir}/elasticsearch.sysctl" "${pkgdir}/usr/lib/sysctl.d/elasticsearch.conf"
   install -Dm644 ${srcdir}/elasticsearch{,-keystore}.service -t "${pkgdir}/usr/lib/systemd/system/"
   install -Dm644 "${srcdir}/elasticsearch.sysusers" "${pkgdir}/usr/lib/sysusers.d/elasticsearch.conf"

No functional changes to the packaged software, only improved accessibility of bundled tools.

Please consider merging this change. Thank you!

blacklight commented on 2025-06-13 22:02 (UTC) (edited on 2025-06-13 22:03 (UTC) by blacklight)

Unfortunately, installing the latest version breaks indices created with previous versions:

fatal exception while booting Elasticsearch java.lang.IllegalStateException: cannot upgrade a node from version [8.17.4] directly to version [9.0.2], upgrade to version [8.18.0] first.

8.18.0 is not available in the AUR, so, unless you are ok with discarding your indices, you will need to manually download it from the Elasticsearch website and install it.

ipaqmaster commented on 2024-11-12 22:42 (UTC)

They probably do not have to be

bjo commented on 2024-11-12 21:40 (UTC) (edited on 2024-11-12 21:41 (UTC) by bjo)

Why are all config files executable?

drwxr-x--- 3 elasticsearch elasticsearch 4.0K Nov 12 22:39 . drwxr-xr-x 138 root root 12K Nov 12 22:39 .. -rwxr-xr-x 1 root root 2.7K Nov 12 22:30 elasticsearch.yml -rwxr-xr-x 1 root root 1.1K Nov 12 22:30 elasticsearch-plugins.example.yml -rwxr-xr-x 1 root root 20 Nov 12 22:40 jvm.options drwxr-xr-x 2 root root 6 Nov 12 22:30 jvm.options.d -rwxr-xr-x 1 root root 18K Nov 12 22:30 log4j2.properties -rwxr-xr-x 1 root root 197 Nov 12 22:30 roles.yml -rwxr-xr-x 1 root root 473 Nov 12 22:30 role_mapping.yml -rwxr-xr-x 1 root root 0 Nov 12 22:30 users -rwxr-xr-x 1 root root 0 Nov 12 22:30 users_roles

RaK commented on 2024-01-03 11:31 (UTC)

The package still refers a lot to /opt/elasticsearch, and makes it hard to use ...

thorko commented on 2023-10-04 19:18 (UTC)

Thanks @ipaqmaster. I've added the patch.

ipaqmaster commented on 2023-10-04 11:27 (UTC)

The below diff seems to do the trick but this package has other problems. Everything keeps referring to /opt/elasticsearch including /opt/elasticsearch/bin/elasticsearch-keystore create but the service itself runs pointing to /etc/elasticsearch. May be a good idea for this package to take some of the config from https://aur.archlinux.org/packages/elasticsearch to help streamline the installation.

diff --git a/PKGBUILD b/PKGBUILD
index 38609e9..043b475 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,6 +26,9 @@ sha256sums=(
 package() {
     mkdir -p "${pkgdir}/opt"
     cp -R "${srcdir}/elasticsearch-${pkgver}" "${pkgdir}/opt/elasticsearch"
+    mkdir -p "${pkgdir}/etc/elasticsearch"
+    cp -R "${srcdir}/elasticsearch-${pkgver}/config/." "${pkgdir}/etc/elasticsearch/"
+    chmod 755 -R "${pkgdir}/opt/elasticsearch/jdk/bin" "${pkgdir}/opt/elasticsearch/jdk/lib"
     install -Dm0644 "elasticsearch.service" "${pkgdir}/etc/systemd/system/elasticsearch.service"
     install -Dm0644 "sysctl.conf" "${pkgdir}/usr/lib/sysctl.d/elasticsearch.conf"
     install -Dm0644 "users.conf" "${pkgdir}/usr/lib/sysusers.d/elasticsearch.conf"