I have to setup and configure a DEV server and afterwards the QA/staging and PROD servers.
I will download required software with my laptop and upload to DEV server into folder /app/files. For other servers I just want to copy this folder from the DEV server.
Setup server
DEV
# install software yum install rsync -y # create user adduser myUser # create folder mkdir /app/files chown myUser:myUser /app/files # switch to myUser su myUser # Create Private & Public keys ssh-keygen -t rsa -b 4096 # generates id_rsa & id_rsa.pub in /home/myUser/.ssh/ # authorize yourself cat /home/myUser/.ssh/id_rsa.pub >> /home/myUser/.ssh/authorized_keys chmod 0600 ~/.ssh/authorized_keys
QA / others
nearly the same setup, but we copy the keys from the DEV user, as he is the same as on the other servers.
# install software yum install rsync -y # create user adduser myUser # create folder mkdir /app/files chown myUser:myUser /app/files # switch to myUser su myUser # create .ssh folder mkdir ~/.ssh chmod 0700 ~/.ssh # create files, copy content from DEV server! vi ~/.ssh/id_rsa chmod 0600 ~/.ssh/id_rsa vi ~/.ssh/id_rsa.pub chmod 0600 ~/.ssh/id_rsa.pub vi ~/.ssh/authorized_keys chmod 0600 ~/.ssh/authorized_keys
Test SSH login
# login from DEV to QA [myUser@DEV] ssh QA # login from QA to DEV [myUser@QA] ssh DEV # loggin with explicit port [myUser@DEV] ssh QA -p 22
Download software
Copy all files to /app/files
Java
Open URL https://adoptopenjdk.net/
Click on "Andere Plattformen"
Select for each:
- JVM: HotSpot
- Operating System: Linux
- Architecture: x64
Java Versions:
- OpenJDK 8 (LTS)
- OpenJDK 11 (LTS)
- OpenJDK 15 (Latest)
Download the JRE files.
Tomcat
Open URL: http://tomcat.apache.org/
Download Binary Distribution → Core → tar.gz-Version of:
- Tomcat 8.5
- Tomcat 9
SAP JCO
Copy the latest version from the corporate repository.
Path: _sapjco3-64/versions/3.0.19
Corporate Root CA
Copy the password ("notchangeit") protected truststore: corporate_truststore.jks
Copy from server to server
[myUser@QA ~]$ rsync --progress -avhe 'ssh -p 22' myUser@DEV:/app/files/ /app/files