Last active
June 26, 2019 22:40
-
-
Save eduardobc88/f564ceba01430f5411c2e56a17c421c3 to your computer and use it in GitHub Desktop.
Shell Scripts for installations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python | |
$sudo yum install centos-release-scl | |
$sudo yum install rh-python36 | |
$scl enable rh-python36 bash | |
$python --version | |
$pip | |
# NodeJS - NVM | |
$curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
$nvm --version # list all versions | |
$nvm install --lts # install lts version | |
$nvm install 8.12.0 # install version | |
# additional tools for building | |
$sudo yum install gcc-c++ make | |
# Java - Install OpenJDK 8 JDK | |
$sudo yum install java-1.8.0-openjdk-devel | |
# run jar | |
$java -jar qbi-api.jar > qbi-api.log & | |
# stop | |
$top | |
# get process name or pid | |
$pkill java | |
# Golang... | |
# MogoDB | |
# add the MongoDB repository to your system, open your text editor | |
# and create a new YUM repository configuration file | |
# named mongodb-org.repo inside the /etc/yum.repos.d/ directory: | |
[mongodb-org-4.0] | |
name=MongoDB Repository | |
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/ | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc | |
yum install mongodb-org | |
mkdir /data/mongodb | |
mkdir /data/db | |
# logs | |
# /var/log/mongodb | |
# /var/run/mongodb | |
# run mongodb as daemond | |
mongod --fork --logpath /var/log/mongodb.log | |
# in docker container | |
mongod --bind_ip_all --fork --logpath /shared/mongodb.log | |
# stop mongodb | |
mongod --shutdown | |
# mariadb | |
# https://mariadb.com/kb/en/library/installing-and-using-mariadb-via-docker/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment