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
ispconfig apache default page
I’m trying to install Ispconfig to Centos 7 via this link. But ispconfig can’t accessed after installation. Becouse missing this thing in the document: yum install mod_fcgid service httpd restart
Centos 7 Ispconfig mail not working problem
If you disabled IPv6 in your centos installation then you can receive some bad problems. Some services needs ipv6 for default and if you disable ipv6 systemvide then these services not working correctly. For example Amavisd. If amavisd not working…
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 #…

Restart mini pci slot
Sometimes minipci slot stopping work. I don’t know the reason but we can rescan it and going to work again. Only one command you need. The command is that: sudo echo “1” > /sys/bus/pci/rescan After this time your pci card…

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 https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/supervisord.service -O /usr/lib/systemd/system/supervisord.service start service systemctl start supervisord view service status: systemctl status supervisord auto start service on system…

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 #…

Get id of a process and kill it
Sometimes you must kill a process from command line. “kill” command needs process id. You can get a process details with “ps aux | grep java” but this command prints lots of details. But “kill” command needs only the process…
Nohup redirect output to a file without -o parameter
Nohup is nice tool for runing an app in background. It can redirect output to a file with “-o” parameter. But this parameter has to write to last. For example nohup myapp -o nohup.log This prints all outputs to nohup.log…
Linux open num lock and disable num lock key
I’m using Xubuntu 16 64bit. My computer is Lenovo G560 and there is standart keyboard which has num pad. Sometimes my fingers touching to Num Lock key and I hate this. I want to keep Num Lock status ON and…