Could you please help me for investigate installation steps on tomcat? #2147
-
I installed apiman on tomcat already but i can't do anything on apimanui I've disabled es on apiman.properties already because i've found error : Unable to reach Elasticsearch (with error: connection refused) Retry will be attempted in 5 seconds. Server information APIMAN Properties |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi,
Can you describe what you're trying to do? Are you trying to use a RDBMS?
…On Wed, 29 Jun 2022, 06:06 Kwanchai jaroensirichot, < ***@***.***> wrote:
I installed apiman on tomcat already but i can't do anything on apimanui
Please provide full steps install on tomcat or help me investigate this
error. I'm newbie.
I've disabled es on apiman.properties already because i've found error :
Unable to reach Elasticsearch (with error: connection refused) Retry will
be attempted in 5 seconds.
[image: 1656412071797]
<https://user-images.githubusercontent.com/85068934/176355919-bd1d6a88-474d-4f43-9306-0cd644e1ae6a.jpeg>
Server information
[image: image]
<https://user-images.githubusercontent.com/85068934/176355455-abc6c53e-0ab7-41ed-9f71-90a47214a054.png>
[image: image]
<https://user-images.githubusercontent.com/85068934/176355488-0ab35434-a06c-4aba-ac8d-3939ed1bd9ce.png>
[image: image]
<https://user-images.githubusercontent.com/85068934/176355534-e236a80d-016f-4102-ad81-084d629ded52.png>
Apache Tomcat/9.0.64
Apiman version 2.2.3.Final
Errors:
[image: 176183986-caf87b6a-6b8c-471d-864c-8e4c180a4968]
<https://user-images.githubusercontent.com/85068934/176355637-6b6f061f-7ffc-4c07-9b8c-531c8c8a52b0.png>
[image: 176183865-7717daab-83db-48bc-b7de-b056dabf4ce5]
<https://user-images.githubusercontent.com/85068934/176355640-c9a9b45b-4a7f-427d-a681-90796b2bfdca.png>
[image: 176184503-32fd5a07-12ed-40a7-9c43-655e095eab45]
<https://user-images.githubusercontent.com/85068934/176355642-f18ec96b-9697-4deb-9ba9-5db387724302.png>
APIMAN Properties
apimanproperties.zip
<https://github.com/apiman/apiman/files/9007392/apimanproperties.zip>
—
Reply to this email directly, view it on GitHub
<#2147>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADHMWOI44MTOMFI5IM5SALVRPKUZANCNFSM52ELXMEQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
For answer, see: https://github.com/orgs/apiman/discussions/2147#discussioncomment-3176380 Which steps i miss? Insert these statement & Change JAVA_HOME [Unit] [Service] User=tomcat Environment="JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64/jre" [Install] 8.sudo systemctl daemon-reload add these statement 19.sudo vi /opt/tomcat/webapps/manager/META-INF/context.xml 20.sudo vi /opt/tomcat/webapps/host-manager/META-INF/context.xml 21.sudo systemctl restart tomcat if i using default apiman.perproties, Have i to install elasticsearch ? or Can i change to other source? |
Beta Was this translation helpful? Give feedback.
-
Hi,
You need to run the Elasticsearch database on port 9200 and point Apiman to
it. Should be the default.
Or you need to set up a relational database and alter a few areas of Apiman
and Tomcat config (see docs). Other community members might chime in with
more detail, as I'm traveling right now.
There are some easy docker images for Elasticsearch, or you can run ES as a
Linux service.
If you're inexperienced, it might be easier to start with the wildfly
distro.
…On Wed, 29 Jun 2022, 09:48 Kwanchai jaroensirichot, < ***@***.***> wrote:
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-9
*tar.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
[Service]
Type=oneshot
RemainAfterExit=yes
User=tomcat
Group=tomcat
Environment="JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64/jre"
Environment="JAVA_OPTS=-Djava.security.egd=file:///dev/urandom
-Djava.awt.headless=true"
Environment="CATALINA_BASE=/opt/tomcat"
Environment="CATALINA_HOME=/opt/tomcat"
Environment="CATALINA_PID=/opt/tomcat/temp/tomcat.pid"
Environment="CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC"
ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh
[Install]
WantedBy=multi-user.target
8.sudo systemctl daemon-reload
9.sudo systemctl enable tomcat
10.sudo systemctl start tomcat
11.sudo systemctl status tomcat
12.firewall-cmd --zone=public --permanent --add-port=8080/tcp
13.firewall-cmd --reload
14.curl -L
https://github.com/apiman/apiman/releases/download/2.2.3.Final/apiman-distro-tomcat-2.2.3.Final-overlay.zip
-o apiman-distro-tomcat8-2.2.3.Final-overlay.zip
15.unzip -o apiman-distro-tomcat8-2.2.3.Final-overlay.zip -d tomcat/
16.sudo chown -R tomcat:tomcat /opt/tomcat
17.sudo sh -c 'chmod +x /opt/tomcat/bin/*.sh'
18.vi /opt/tomcat/conf/tomcat-users.xml
add these statement ----------------------------------------------
19.sudo vi /opt/tomcat/webapps/manager/META-INF/context.xml comment ""
---------------------------------------------
--------------------------------------------- 20.sudo vi
/opt/tomcat/webapps/host-manager/META-INF/context.xml
comment ""
------------------------------
21.sudo systemctl restart tomcat
22.sudo systemctl stop tomcat
if i using default apiman.perproties, Have i to install elasticsearch ? or
Can i change to other source?
—
Reply to this email directly, view it on GitHub
<#2147 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADHMWMDHVCTFKC5A5MRDOLVRQEVJANCNFSM52ELXMEQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
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