mathz.nu Asterisk Blacklist Hobby webbhotell

2019/01/10

Centos – Give Tomcat access to Mysql/MariaDB

Filed under: Server — Mathz @ 14:48

To see all Tomcat options
getsebool -a | grep tomcat

To set Tomcat access to database
setsebool tomcat_can_network_connect_db 1

SELinux workaround

Give Tomcat network access.

Error message
Could not connect to address=(host=)(port=3306)(type=master) : Permission denied (connect failed)

Tomcat have no access to file system

ps -eZ | grep tomcat_t

yum install policycoreutils-python

semanage permissive -a tomcat_t

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress