标签:systemd start 16.04 ntp Ubuntu etc Install splunk timesyncd
Splunk on Ubuntu 16.04
- change interface name to normal
vi /etc/default/grub
add 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 server
Ubuntu NTP: using timesyncd service
if using ntp, then stop and remove it
systemctl stop ntp
update-rc.d ntp disable
sysv-rc-conf to confirm
apt-get -y remove ntp
using timesyncd service
vi /etc/systemd/timesyncd.conf
NTP=0.cn.pool.ntp.org 1.cn.pool.ntp.org
systemctl start systemd-timesyncd
systemctl status systemd-timesyncd
- tune ulimit parameters
vi /etc/security/limits.conf- soft nofile 65535
- hard nofile 65535
- soft nproc 65535
- hard nproc 65535
Disable Transparent Huge Page
vi /etc/systemd/system/disable-thp.service
[Unit]
Description=Disable Transparent Huge Pages (THP)
[Service]
Type=simple
ExecStart=/bin/sh -c "echo 'never' > /sys/kernel/mm/transparent_hugepage/enabled && echo 'never' > /sys/kernel/mm/transparent_hugepage/defrag && echo '0' > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag"
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start disable-thp
systemctl enable disable-thp
reboot to take effect, ulimit -a to check
-
install splunk enterprise
under root privilege:
useradd -m splunk
tar zxf splunk.xxx.xxx.gz -C /opt
chown -R splunk:splunk /opt/splunk
su - splunk
/opt/splunk/bin/splunk start --accept-license
/opt/splunk/bin/splunk enable boot-start -user splunk ( should use root permission to run ) - ufw enable
ufw allow 8000
标签:systemd,start,16.04,ntp,Ubuntu,etc,Install,splunk,timesyncd 来源: https://blog.51cto.com/hj192837/2354052
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。