Thursday, August 13, 2020

Installation MySQL Database 5.7.31. in Ubuntu 18.04 - Mithun Technologies - 9980923226

 

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/ 
 
MySQL Database Installation  in Ubuntu

#Login as a root user
sudo su -


#Update the system packages.
apt-get update -y


#Check mysql packges in the server.

 apt-cache search mysql

#Install the mysql packages.

apt-get install mysql-server mysql-client  -y

#Check the status of mysql service
systemctl status mysql

#Enable the mysql service
systemctl enable mysql

#Check the which version of MySQL server installed using below command.
mysqld --version

#Check the which version of client utility installed using below command.
mysqladmin -V

#MySQL database server configuration file is availabe in /etc/mysql/mysql.conf.d directory.
See the configurations..
less /etc/mysql/mysql.conf.d/mysqld.cnf

#
mysql_secure_installation

#Connect to mysql server
mysql -u root -p

#Check the MySQL server version
SELECT VERSION();

SHOW VARIABLES LIKE "%version%";

#Using below command we can see how long the MySQL server has been running.
STATUS;
(OR)
mysqladmin version

#To Display database.
show databases;

Wednesday, August 12, 2020

Install Nginx HTTP server - RHEL 8 - Mithun Technologies - 9980923226

 

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/
Install Nginx HTTP Server Installation 
Method -1

#Login as root user and execute the below command for install nginx http server.
sudo su -
yum install nginx -y

#Enable the service as follows.

systemctl enable nginx.service

#Start the HTTP server as follows.

systemctl start nginx.service

Important Points
  1.   nginx.conf file is the configuration file for Nginx HTTP server, which is available in         /etc/nginx/  directory.
  2. Logs will be available in /var/log/nginx/ directory.

Sunday, August 2, 2020

Apache Tomcat Server Installation as a Service - Linux - Mithun Technologies - 9980923226


Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/ 
                                                       Install Tomcat as a Service

#Login as a root user
sudo su -

yum install wget unzip -y

cd /opt
wget https://downloads.apache.org/tomcat/tomcat-9/v9.0.44/bin/apache-tomcat-9.0.44.zip
unzip apache-tomcat-9.0.44.zip

chmod u+x /opt/apache-tomcat-9.0.44/bin/*.sh

mv apache-tomcat-9.0.44 tomcat9

#Create a system user called tomcat.
useradd -r tomcat

cp -r /opt/tomcat9 /usr/local/tomcat9

#Create a file called tomcat.service
 
vi /etc/systemd/system/tomcat.service


[Unit]
Description=Apache Tomcat Server
After=syslog.target network.target

[Service]
Type=forking

User=tomcat
Group=tomcat

Environment=CATALINA_PID=/usr/local/tomcat9/temp/tomcat.pid
Environment=CATALINA_HOME=/usr/local/tomcat9
Environment=CATALINA_BASE=/usr/local/tomcat9

ExecStart=/usr/local/tomcat9/bin/catalina.sh start
ExecStop=/usr/local/tomcat9/bin/catalina.sh stop

RestartSec=10
Restart=always

[Install]
WantedBy=multi-user.target

#Reload the systemd
systemctl daemon-reload
 
#Enable the  tomcat service
systemctl enable tomcat.service

#Start the tomcat service
 systemctl start tomcat.service

# Check the tomcat service
systemctl status tomcat.service

#netstat -tunlap
#ps -fax | grep tomcat


#vi /usr/local/tomcat9/webapps/manager/META-INF/context.xml

#Comment the below lines




<!--  
    <Valve className="org.apache.catalina.valves.RemoteAddrValve"
  allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />       -->



Ansible Installation in Amazon Linux - Mithun Technologies - 9980923226

  Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com                                                 ...