Install Splunk 6.4 on CentOS 6 with non-root user

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Install Splunk 6.4 on CentOS 6 with non-root user相关的知识,希望对你有一定的参考价值。

1. useradd splunk


2. tar zxf splunk-6.4.0-f2c836328108-Linux-x86_64.tgz -C /opt


3. chown -R splunk:splunk /opt/splunk


4. /opt/splunk/bin/splunk enable boot-start -user splunk (this will create init script for CentOS 6, for CentOS 7 systemd script, check below)


5. reboot and make sure splunk starts up as expected


for CentOS 7 systemd script:

vi /usr/lib/systemd/system/splunk.service

[Unit]
Description=Splunk
After=network.target

[Service]
RemainAfterExit=yes
ExecStart=/opt/splunk/bin/splunk start
ExecStop=/opt/splunk/bin/splunk stop
ExecReload=/opt/splunk/bin/splunk restart
User=splunk
Group=splunk

[Install]
WantedBy=multi-user.target


systemctl enable splunk

本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1787680

以上是关于Install Splunk 6.4 on CentOS 6 with non-root user的主要内容,如果未能解决你的问题,请参考以下文章

How to Install Apache Solr 4.5 on CentOS 6.4

如何在CentOS 7/6.5/6.4 下安装PostgreSQL 9.3 与 phpPgAdmin

三款日志管理工具横向对比:Splunk vs Sumo Logic vs Logstash

appium1.6.4怎么安装

CentOS-6.4-DVD系统中安装Oracle-11.2.0.4

源码安装Samba4.6.4