Skip to content

Could you please help me for investigate installation steps on tomcat? #2147

Answered by KwanchaiJc
KwanchaiJc asked this question in Q&A
Discussion options

You must be logged in to vote

For answer, see: https://github.com/orgs/apiman/discussions/2147#discussioncomment-3176380


Which steps i miss?
1.sudo useradd -m -U -d /opt/tomcat -s /bin/false tomcat
2.wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.64/bin/apache-tomcat-9.0.64.tar.gz
3.sudo tar xzvf apache-tomcat-9tar.gz -C /opt/tomcat --strip-components=1
4.sudo chown -R tomcat:tomcat /opt/tomcat
5.sudo sh -c 'chmod +x /opt/tomcat/bin/
.sh'
find the java location
6.readlink -f $(which java)
e.g. /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64
7.sudo vi /etc/systemd/system/tomcat.service

Insert these statement & Change JAVA_HOME

[Unit]
Description=Apache Tomcat Web Application Container
After=network.target

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@KwanchaiJc
Comment options

Comment options

You must be logged in to vote
1 reply
@msavy
Comment options

Answer selected by msavy
Comment options

You must be logged in to vote
3 replies
@msavy
Comment options

@KwanchaiJc
Comment options

@msavy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants