Skip to content

Instantly share code, notes, and snippets.

View ViniFKroth's full-sized avatar

Vinícius Kroth ViniFKroth

  • Porto Alegre, RS-Brasil
View GitHub Profile
Observation: This simple 9-step tutorial considers that you already have mysql (5.5 or above) installed in your computer,
as well as the desired .jar file already baked.
1) Download the artifactory OSS zipped file from the jfrog website;
2) Unzip on the desired file, that will be treated from now on, as [artifactory_home].
3) Run the [artifactory_home]/bin/configure.mysql.sh with super permission
4) Run the [artifactory_home]/bin/artifactory.sh, and them acess the localhost:8081 addres.
5) Following the poped up wizard, set up your password for the admin profile.
6) Skip proxy configs, since you'll be working locally only.
7) Create a General sort of repository setting up a desired key_word and a name.
##### Deploying Hystrix-Dashboard #####
1.First things first, i downloaded the histryx-dashboard.war file, directly from maven.
2.Then, i deployed it on my tomcat server, running on port 8080.
##### Altering the TotalizerApiHistrix SpringBoot App #####
1. Add the springboot-actuator dependecy on the build.gradle file.
2. Add the following line on the application.properties file : "management.endpoints.web.exposure.include=hystrix.stream"
##### Testing the dashboard #####
1. Insert the "http://localhost:8081/actuator/hystrix.stream" URL on the available space
Fisrt things first, we need to install Jetty using the commands below:
wget -c http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.3.12.v20160915/jetty-distribution-9.3.12.v20160915.tar.gz
tar xzf jetty-distribution-9.3.12.v20160915.tar.gz
mv jetty-distribution-9.3.12.v20160915 jetty9
sudo mv jetty9 /opt
then, we configure the jetty acording to our desired settings
sudo addgroup --quiet --system jetty
sudo adduser --quiet --system --ingroup jetty --no-create-home --disabled-password jetty
First, to install and configure Tomcat, i followed the steps below:
//Download tomcat tar.gz file
curl -O http://apache.mirrors.ionfish.org/tomcat/tomcat-8/v8.5.5/bin/apache-tomcat-8.5.5.tar.gz
sudo mkdir /opt/tomcat
sudo tar xzvf apache-tomcat-8*tar.gz -C /opt/tomcat --strip-components=1
cd /opt/tomcat
sudo chgrp -R tomcat /opt/tomcat
sudo chmod -R g+r conf
sudo chmod g+x conf
Caso tenham problemas pra rodar e/ou instalar o mysql, rodem os comandos abaixo um por um e é sucesso:
Desinstalando:
sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
sudo apt-get autoremove -y
sudo apt-get autoclean
rm -rf /etc/mysql
Instalando corretamente:
sudo apt-get update