-
Notifications
You must be signed in to change notification settings - Fork 1
SLES 15 Preparations
Create a Linux User “toscience” with yast2. Created an encrypted passwort:
head -c 300 /dev/urandom | tr -cd '[a-zA-Z0-9-_]' | head -c 16
choose home directory: /opt/toscience
add to groups “users, root”
Make the user a sudoer. Add one line to /etc/sudoers :
edit /etc/sudoers
toscience ALL = (root) /bin/su
sudo su toscience
Install maven, maven-local and xmvn with yast2.
Install git:
zypper ref
zypper in git
java11-openjdk has been installed by default. elasticsearch-1.* is not compatible with java11, we need java8.
Install Java 8 with zypper, this will install the official SuSE package:
zypper search-packages -s jdk Following packages were found in following modules: java-1_8_0-openjdk Legacy Module (sle-module-legacy/15.3/x86_64) SUSEConnect --product sle-module-legacy/15.3/x86_64 java-1_8_0-openjdk-demo Legacy Module (sle-module-legacy/15.3/x86_64) SUSEConnect --product sle-module-legacy/15.3/x86_64 java-1_8_0-openjdk-devel Legacy Module (sle-module-legacy/15.3/x86_64) SUSEConnect --product sle-module-legacy/15.3/x86_64 java-1_8_0-openjdk-headless Legacy Module (sle-module-legacy/15.3/x86_64) SUSEConnect --product sle-module-legacy/15.
SUSEConnect --product sle-module-legacy/15.3/x86_64 Successfully registered system zypper install java-1_8_0-openjdk-devel
OR, if you can't use SUSEConnect, activate sle-module-legacy-release 15.5 in YaST2 - Package Manager. Install Legacy Module 15 SP6 x86_64 via YaST2 - Software Repositories - Add - Extensions and Modules from Registration Server. Then install java-1_8_0-openjdk-devel with YaST2.
This will also install java-1_8_0-openjdk and java-1_8_0-openjdk-headless
Deinstall Java 17, or whatever is your currently installed Java version – if not 8 -, with yast.
java -version
openjdk version "1.8.0_392"
OpenJDK Runtime Environment (IcedTea 3.29.0) (build 1.8.0_392-b08 suse-150000.3.85.1-x86_64)
OpenJDK 64-Bit Server VM (build 25.392-b08, mixed mode)
sudo su
chown toscience:users /opt
ln -s $JAVA_HOME /opt/jdk
Install mariadb with yast2.
systemctl enable mariadb.service
rcmysql start
Increase max connections and max allowed packet in a production setup:
Edit /etc/my.cnf
# The MariaDBserver
[mysqld]
max_connections=500
max_allowed_packet = 16M
Install apache2 with yast2.
Change protocol to SSL HTTPS:
edit /etc/sysconfig/apache2
APACHE_SERVER_FLAGS="SSL HTTP2"
Install Apache Modules:
sudo a2enmod proxy proxy_mod proxy_http rewrite mod_access_compat proxy_http mpm_event http2 proxy_fcgi setenvif
sudo a2enmod headers
systemctl start apache2.service
# tail -99f /var/log/apache2/access_log
sudo chkconfig -a apache2 # to start apache2 already while system reboot
Apache needs some more modules in order to serve as a load balancer:
a2enmod slotmem_shm
a2enmod lbmethod_bybusyness
a2enmod proxy_balancer
This is part of the Frontend Installation Preparations
This is part of the to.science.drupal Installation
Edit one line in /etc/hosts :
127.0.0.1 <YOUR_SERVERNAME> api.<YOUR_SERVERNAME> localhost
sudo service network restart