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
#!/bin/bash | |
# This script used to install Mysql 5.7 | |
# from source Code | |
# Author Mansur Ul Hasan | |
# [email protected] | |
# Environment Function | |
PrepBuildEnvFunc () { | |
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
#!/bin/bash | |
# This script Mysql 5.7 from RPM Builder | |
# Author Mansur Ul Hasan | |
# [email protected] | |
Prepass () { | |
echo "Preparing Environement ....." | |
yum groupinstall "Development Tools" | |
yum install ncurses-dev libaio perl-DBI |
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
# |
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
# This script install Apache Maven 3.5.2 in Ubuntu 16.04 | |
# Author Mansur Ul Hasan | |
# [email protected] | |
DownloadVersion () { | |
case $1 in | |
setup_2-3-11) | |
wget -O neo4j-community-2.3.11-unix.tar.gz https://www.dropbox.com/s/uz2kb0kz1b4vwz6/neo4j-community-2.3.11-unix.tar.gz?dl=0 | |
mv `pwd`/neo4j-community-2.3.11-unix.tar.gz /usr/local/ |
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
#!/bin/bash | |
# This script install Redis 4 in RHEL7 / Ubuntu | |
# This installation is done from source code. | |
# Author : Mansur Ul Hasan | |
# Email : [email protected] | |
# | |
apt-get update -y | |
apt-get install libssl1.0.0 libssl-dev -y | |
mkdir -p /usr/local/mongo/ |
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
#!/bin/bash | |
# This script install Redis 4 in RHEL7 / Ubuntu | |
# This installation is done from source code. | |
# Author : Mansur Ul Hasan | |
# Email : [email protected] | |
# Main Function | |
InstallR () { | |
cd /usr/local/redis | |
make distclean |
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
# This script install Apache Maven 3.5.2 in Ubuntu 16.04 | |
# Author Mansur Ul Hasan | |
# [email protected] | |
CleanUp () { | |
# Removing Source Code | |
rm -f apache-maven-3.5.2-bin.tar.gz | |
} |
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
#!/bin/bash | |
# Get current swap usage for all running processes | |
# Courtesy By : Erik Ljungstrom 27/05/2011 | |
# Midified By : Mansur Ul Hasan | |
# Email : [email protected], [email protected] | |
SUM=0 | |
OVERALL=0 | |
for DIR in `find /proc/ -maxdepth 1 -type d | egrep "^/proc/[0-9]"` ; do | |
PID=`echo $DIR | cut -d / -f 3` |
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
#!/bin/bash | |
# this script build tomcat8 on CentOS 6.x and 7.x | |
# with Java OpenJDK 8 | |
# Author : Mansur Ul Hasan | |
# Servers Planets Inc. | |
# Email : [email protected], [email protected] | |
# Gist : https://gist.github.com/mansurali901 | |
UpdateRepo () { |
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
# This script install Mongo 3.4 in Ubuntu 16.04 | |
# Author Mansur Ul Hasan | |
# [email protected] | |
SetupMongo3_4 () { | |
# Adding gpg key | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 | |
# Adding MongoDB repository | |
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list |