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

时间: 2024-08-26 18:01:14

Install Splunk 6.4 on CentOS 6 with non-root user的相关文章

Install FFMPEG and FFMPEG-PHP in CentOS 6 with Virtualmin

Install FFMPEG and FFMPEG-PHP in CentOS 6 with Virtualmin 1 year ago -  by Daniel -  howto centos virtualmin ffmpeg ffmpeg-php The other day I was requested to set-up few requirements for a client such as mod_rewrite, GD library, PHP Dom, bcmath etc.

Install SoftEther VPN Server on CentOS 6.5

Based on CentOS 6.5 x86_64 yum -y install gcc 2. tar zxf softether-vpnserver-v4.10-9473-beta-2014.07.12-linux-x64-64bit.tar.gz 3. cd vpnservermakecd ..mv vpnserver /usr/local/cd /usr/local/vpnserver/chmod 600 *chmod 700 vpnserver chmod 700 vpncmd 4.

install zabbix-2.2.5 on CentOS 6.5 x86_64

install zabbix_server: # yum install mysql-server httpd php # yum install mysql-devel gcc net-snmp-devel curl-devel perl-DBI php-gd php-mysql php-bcmath php-mbstring php-xml downloads zabbix-2.2.5.tar.gz # tar -zxvf zabbix-2.2.5.tar.gz # groupadd  za

Install Splunk 7 on Ubuntu 16.04.5

Splunk on Ubuntu 16.04 change interface name to normalvi /etc/default/grubadd net.ifnames=0 biosdevname=0 to GRUB_CMDLINE_LINUX line grub-mkconfig -o /boot/grub/grub.cfg reboot timedatectl set-timezone UTC, NTP enable local serverUbuntu NTP: using ti

[转载]How to Install Google Chrome 39 in CentOS/RHEL 6 and Fedora 19/18

FROM: http://tecadmin.net/install-google-chrome-in-centos-rhel-and-fedora/ Google Chrome is a freeware web browser developed by Google. It was released as a beta version for Microsoft Windows on September 2, 2008, and as a stable public release on De

Install TightVNC Server in RHEL/CentOS and Fedora to Access Remote Desktops

Virtual Networking Computing (VNC) is a Kind of remote sharing system that makes it possible to take control of any other computer connected to internet. Keyboard and mouse clicks can easily transmit from one computer to another. It helps administrat

转: How to Install MongoDB 3.2 on CentOS/RHEL & Fedora (简单易懂)

from:  http://tecadmin.net/install-mongodb-on-centos-rhel-and-fedora/ MongoDB (named from “huMONGOus“) is a full flexible index support and rich queries database. Its is a NoSQL database. MongoDB provides large media storage with GridFS. Clickhere fo

How to Install Laravel PHP Framework on CentOS 7 / Ubuntu 15.04

composer官网:https://getcomposer.org/ laravel官网:https://laravel.com/docs/5.2/installation Hi All, In this article we are going to setup Laravel on CentOS 7 and Ubuntu 15.04. If you are a PHP web developer then you don't need to worry about of all moder

How To install FFMPEG, FLVTOOL2, MP4Box on CentOS server 2015 easy method

for i386:wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpmrpm -ivh rpmforge-release-0.5.3-1.el6.rf.i686.rpm for x86_64:wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpmrp