Skip to content

Instantly share code, notes, and snippets.

@eduardobc88
Last active June 26, 2019 22:40
Show Gist options
  • Save eduardobc88/f564ceba01430f5411c2e56a17c421c3 to your computer and use it in GitHub Desktop.
Save eduardobc88/f564ceba01430f5411c2e56a17c421c3 to your computer and use it in GitHub Desktop.
Shell Scripts for installations
# 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