-
Notifications
You must be signed in to change notification settings - Fork 0
Linux system admin task before introducing Spring Boot
Mohamed Hassan (JOHN) edited this page Apr 3, 2025
·
9 revisions
Assuming you have the username of a sys-admin role to the target-deployment-machine.
-
Open your terminal, then navigates to the target-deployment-machine
ssh <EXAMPLE_USERNAME>@<IP_ADDRESS_OF_TARGET_DEPLOYMENT_MACHINE>
-
Download the app-server archive from its official website whether you're working with apache-tomcat or glassfish using wget
-
wget <DOWNLOAD_URL_OF_APACHE_TOMCAT_ARCHIVE>
OR
wget <DOWNLOAD_URL_OF_GLASSFISH_ARCHIVE>
-
-
Unarchive it using tar or unzip
-
tar xf <APACHE_TOMCAT_ARCHIVE>.tar
OR
unzip <GLASSFISH_ARCHIVE>.zip
-
-
Move the unarchived app-server into
/opt
directory-
mv <APACHE_TOMCAT_DIRECTORY_PATH> /opt
OR
mv <GLASSFISH_DIRECTORY_PATH> /opt
-
-
Add jdbc connection pool in:
-
Set an environment variable in the system that refers to the app-server directory path that you already unarchived:
-
sudo nano /etc/environment
open the /etc/environment file as root-user using nano-
TOMCAT_HOME
refers to the path of app-server directory-
TOMCAT_HOME="/opt/<APACHE_TOMCAT_DIRECTORY>"
write this environment variable, then save and exit the file
-
OR
-
GLASSFISH_HOME
refers to the path of app-server directory-
GLASSFISH_HOME="/opt/<GLASSFISH_DIRECTORY>"
write this environment variable, then save and exit the file
-
-
-
source /etc/environment
reload the environment
-
-
Open your terminal, then navigates to the target-deployment-machine
ssh <EXAMPLE_USERNAME>@<IP_ADDRESS_OF_TARGET_DEPLOYMENT_MACHINE>
-
Cleaning phase:
- Undeploy the running app from the app-server whether you're working with apache-tomcat or glassfish
-
Moving the latest version of deployment-package (WAR file) into the target-deployment-machine phase:
- Generate the WAR file
- configure maven's pom.xml
- add this xml element
<packaging>war</packaging>
that hasproject
xml element as a parent
- add this xml element
- run
mvn clean package
- check the "target" directory under the project's directory, you shall find
appName.war
file get generated
- check the "target" directory under the project's directory, you shall find
- configure maven's pom.xml
- Move it into the target-deployment-machine
scp /SOURCE_PATH_OF_WAR_FILE <EXAMPLE_USERNAME>@<IP_ADDRESS_OF_TARGET_DEPLOYMENT_MACHINE>:/DESTINATION_PATH_OF_WAR_FILE
- Generate the WAR file
-
Start up the deployment-package phase:
- Navigate to the app-server directory
- Use app-server specific commands to start it up properly whether you're working with apache-tomcat or glassfish
-
$TOMCAT_HOME/bin/catalina.sh start
OR
$GLASSFISH_HOME/bin/asadmin start-domain
-
cd $TOMCAT_HOME/bin
./catalina.sh undeploy
./catalina.sh stop
cp <DEPLOYMENT_PACKAGE_NAME>.war $TOMCAT_HOME/webapps
cd $TOMCAT_HOME/bin
./catalina.sh start
cd $GLASSFISH_HOME/bin
./asadmin undeploy
cd $GLASSFISH_HOME/bin
./asadmin deploy ../../<DEPLOYMENT_PACKAGE_NAME>.war
- Overview
- Architectural components
- Legal and ethical development specialization
- System administration
- Software deployment
- Git repositories | Access control
- Testing notes - Tester [QA]
- Daily standups
- Onboarding process upon hiring newcomers
- Tickets flow AKA industrial software manufacturing process
- Sprint
- Legal and ethical aspects of contracts
- Human resources planning to the software-development-unit
- Possible future moves of human resources
- Notes to managerial positions
- Screening interviews
- Search keywords for recruiters
- Job advertising template for recruiters
- How to do a complaint against someone in a safe way
- Internal and external communication tools within an organization
- Necessary amount of information technology knowledge for employees before work
- Personal branding
- Information technology ministry
- Self introduction for fresh grads