Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:adm:server_preparation [2019/06/04 11:57] urbanl [Start Tomcat automatically after system startup - Debian] Selinux change on Centos |
tutorial:adm:server_preparation [2019/06/10 13:13] urbanl [Instalation and software configuration] |
||
---|---|---|---|
Line 23: | Line 23: | ||
yum update -y | yum update -y | ||
# other recommended packages installation | # other recommended packages installation | ||
- | yum install -y net-tools nano wget mc vim-enhanced screen sysstat bzip2 ssmtp bash-completion lsof haveged nmap zip unzip psmisc telnet | + | yum install -y net-tools nano wget mc vim-enhanced screen sysstat bzip2 ssmtp bash-completion lsof haveged nmap zip unzip psmisc telnet |
# enable haveged after OS start | # enable haveged after OS start | ||
systemctl start haveged.service | systemctl start haveged.service | ||
Line 291: | Line 291: | ||
<code bash> | <code bash> | ||
systemctl enable tomcat8 | systemctl enable tomcat8 | ||
- | </ | ||
- | |||
- | === On CentOS turn off Selinux === | ||
- | On CentOS in Selinux you need to allow tomcat to connect to database through network. | ||
- | <code bash> | ||
- | setsebool -P tomcat_can_network_connect_db true | ||
- | </ | ||
- | Then check it. | ||
- | <code bash> | ||
- | getsebool -a |grep tomcat | ||
- | </ | ||
- | If it's set right you will se this line with " | ||
- | < | ||
- | tomcat_can_network_connect_db --> on | ||
</ | </ | ||
==== Apache Tomcat configuration recommended for production usage ==== | ==== Apache Tomcat configuration recommended for production usage ==== |