码迷,mamicode.com
首页 > 其他好文 > 详细

Install Splunk 6.4 on CentOS 6 with non-root user

时间:2016-06-09 22:23:30      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:splunk

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

标签:splunk

原文地址:http://hj192837.blog.51cto.com/655995/1787680

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!