Installations Document
Installations Document
Git is a free and open source distributed version control system designed to handle everything
from small to very large projects with speed and efficiency.
To check version :
$ git --version
Java
To install
Maven is a build automation tool used primarily for Java projects. Maven can also build any
number of projects into desired output such as jar, war, metadata. Maven can also be used to
build and manage projects written in C#, Ruby, Scala, and other languages.
# wget http://www-us.apache.org/dist/maven/maven-
3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
Extract the downloaded archive file, and rename it using following commands.
# mv apache-maven-3.5.4/ apache-maven/
Configure Apache Maven Environment
# cd /etc/profile.d/
# vim maven.sh
export M2_HOME=/usr/local/src/apache-maven
export PATH=${M2_HOME}/bin:${PATH}
# mvn --version
Output:
Jenkins is a free and open source automation server. It helps automate the parts
of software development related to building, testing, and deploying,
facilitating continuous integration and continuous delivery. It is a server-based
system that runs in servlet containers such as Apache Tomcat. It supports version
control tools.
Process of Installation:
Step 1. Go to mobaxterm
Step 2. Login to server (from AWS console@public Ip)
Step 3. Need to Install packages like Java&wget
# YUM INSTALL JAVA
#YUM INSTALL WGET
To check Java version or JDK files
JAVA -VERSION or WHERE IS JAVA
Eg : http://18.220.172.206:8080/
Sample Link
https://linuxize.com/post/how-to-install-jenkins-on-centos-7/
# yum -y update
# yum install httpd
# ps -ef|grep httpd
# netstat -tnlp
# vi /etc/httpd/conf.d/vhost.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName mytecmint.com
ServerAlias www.mytecmint.com
DocumentRoot /var/www/html/mytecmint.com/
ErrorLog /var/log/httpd/mytecmint.com/error.log
CustomLog /var/log/httpd/mytecmint.com/access.log
combined
</VirtualHost>
vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/rhel/7/$basearch/
gpgcheck=0
enabled=1
curl 192.168.170.150
Ansible
Ansible is an open-source software provisioning, configuration management, and
application-deployment tool enabling infrastructure as code. It runs on many Unix-
like systems, and can configure both Unix-like systems as well as Microsoft
Windows.
DOCKER
Install Docker:
dnf update -y
dnf config-manager
--add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf list docker-ce
docker --version
[mongodb-org]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/
4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
# dnf repolist