Atlassian crowd apache tomcat jni native lib

  1. Install Requirements
yum install -y gcc make apr-devel

Download oracle jdk tar.gz file and extract to /opt, create symlink for convenience:

cd /opt
tar -xf jdk-8u121-linux-x64.tar.gz
ln -s jdk1.8.0_121 jdk-latest

Now, for upgrade jdk, just extract new tar.gz file and update symlink to new …

more ...

Atlassian crowd systemd unit

Create systemd service unit in /etc/systemd/system/crowd.service:

[Unit]
Description=Crowd
After=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
User=nobody
Group=nobody

Environment=JAVA_HOME=/opt/jdk-latest
Environment=PATH=/opt/jdk-latest/bin:/usr/sbin:/usr/bin
EnvironmentFile=-/etc/default/crowd

WorkingDirectory=/opt/atlassian/crowd

ExecStart=/bin/sh start_crowd …
more ...

Actual stable latest kernel in CentOS 7

Устанавливаем актуальную версию ядра в CentOS 7.

Добавляем репозиторий elrepo-kernel из elrepo-release:

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum install http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

Включаем репозиторий elrepo-kernel:

yum install -y yum-utils
yum-config-manager --enable elrepo-kernel

Установка (какая …

more ...

Enable ip forwarding in linux

Debian/Ubuntu /etc/network/options:

ip_forward=yes

For restart network service procps:

/etc/init.d/procps.sh restart

RedHat /etc/sysconfig/network:

FORWARD_IPV4=true
more ...

CentOS 7 install python 3.5 rh sclo

Python35 on CentOS 7

Install packages

yum install -y centos-release-scl
yum install -y rh-python35-python

Enable rh-python35 globally for all users

cat > /etc/profile.d/rh_python35.sh <<_EOF
#!/bin/sh

source /opt/rh/rh-python35/enable
_EOF

Activate without relogin

. /etc/profile.d/rh_python35.sh

List available scl packages

scl --list

Activate …

more ...