Skip to content

Instantly share code, notes, and snippets.

View Chaosology-Asartheen's full-sized avatar

Azartheen Chaosology-Asartheen

View GitHub Profile
@Chaosology-Asartheen
Chaosology-Asartheen / mysql_install.md
Created November 7, 2020 07:49 — forked from pratos/mysql_install.md
Uninstall MySQL already present in Digital Ocean(Ubuntu 16.04 LTS) and install-setup again

Installing MySQL 5.7 in Ubuntu 16.04LTS (Note: Things still break in Ubuntu, advisable to move to docker and setup volumes_)

sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.7 mysql-client-core-5.7
sudo rm -rf /etc/mysql /var/lib/mysql

Clean-up

sudo apt-get autoremove
@Chaosology-Asartheen
Chaosology-Asartheen / gist:9e4d203d661d116c2400b855c5ee6829
Created November 7, 2020 12:31 — forked from amichaelgrant/gist:5866230
Configuring Nginx for Apache Tomcat 7
Configuring Nginx for Apache Tomcat 7
September 23, 2011 Java, NginX, Tomcat, Ubuntu 19 comments
Apache Tomcat can be the first choice of an Application Server for someone new to Java world. There are obviously other servers such as JBoss Application Server and IBM WebSphere but those may be slightly difficult for a newbie.
In some situations, like when we are serving a few websites with Nginx over port 80 (HTTP), it is required to configure Nginx in order to serve our Java web application which is running on Apache Tomcat. It is basically using Nginx as a Reverse Proxy This can be done with a new server section in Nginx configuration file (it is in /etc/nginx/sites-available/default by default) :
server {
listen mysite.com:80;
server_name mysite.com;
@Chaosology-Asartheen
Chaosology-Asartheen / webdev_online_resources.md
Created December 18, 2020 11:20 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)