Define Let’s Encrypt SSL to Tomcat

cd /etc/letsencrypt/live/exampledomain.comlsopenssl pkcs12 -export -out bundle.pfx -inkey privkey.pem -in cert.pem lsmv bundle.pfx /opt/tomcat/bundle.pfx ll /opt/tomcat/bundle.pfx ll /opt/tomcat/cd /opt/tomcat/confnano server.xml<Connector protocol=”org.apache.coyote.http11.Http11NioProtocol” port=”8443″ maxThreads=”2048″ scheme=”https” secure=”true” acceptCount=”2048″ SSLEnabled=”true” clientAuth=”false” keystoreType=”PKCS12″ keystoreFile=”/opt/tomcat/bundle.pfx” keystorePass=”YOURPASSWORD” sslProtocol=”TLS” />chown tomcat:tomcat /opt/tomcat/bundle.pfx systemctl restart tomcat

Change terminal tab title

nano ~/.bashrc # enter this function footer of the .bashrc file # Update gnome terminal title function termtitle() { if [[ -z “$ORIG” ]]; then ORIG=$PS1 fi TITLE=”\[\e]2;$*\a\]” PS1=${ORIG}${TITLE} PROMPT_COMMAND=’echo -ne “\033]0;\007″‘ } # save and quit from nano # source ~/.bashrc # termtitle example title

Install supervisord to Centos 7

install: pip install supervisor configure: mkdir -p /etc/supervisord/conf.d echo_supervisord_conf > /etc/supervisord/supervisord.conf echo “files = conf.d/*.conf” >> /etc/supervisord/supervisord.conf setup as service: wget -O /usr/lib/systemd/system/supervisord.service start service systemctl start supervisord view service status: systemctl status supervisord auto start service on system startup: systemctl enable supervisord Source:

Centos 7 disable ipv6

Best solution is disable ipv6 kernel module. Other solutions not working sometimes. Add ipv6.disable=1 to GRUB_CMDLINE_LINUX parameters. And restart the server. # nano /etc/default/grub GRUB_TIMEOUT=5 GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT=”console” GRUB_CMDLINE_LINUX=”ipv6.disable=1 crashkernel=auto rhgb quiet” GRUB_DISABLE_RECOVERY=”true” # grub2-mkconfig -o /boot/grub2/grub.cfg # regenerate grub2 and reboot # reboot I don’t like restart server but there is no Devamı…