Install docker and awscli Ex: On ubuntu. mohammedrafi@noc:~$ sudo apt install awscli mohammedrafi@noc:~$ sudo apt install python-pip mohammedrafi@noc:~$ pip install awscli --upgrade --user mohammedrafi@noc:~$ pip install awscli mohammedrafi@noc:~$ pip install --upgrade pip mohammedrafi@noc:~$ aws configure AWS Access Key ID [None]: AKIAJXP3JLTCXXXXXX AWS Secret Access Key [None]: COoE63zvyAMVQCC+kXXXXXXXX Default region name [None]: us-east-2 Default output format … Continue reading Using Aws ecr ecs services
Month: January 2018
Apache Benchmarking
Apache Benchmarking is a great tool for testing Apache performance on web servers, for example running the following bash command This will test 1000 connections (-n), limited to 10 concurrent connections (-c) on the website localhost [root@node1 ~]# ab -n 1000 -c 10 http://localhost/ This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam … Continue reading Apache Benchmarking
graceful restart of apache
What is the difference between a restart and a graceful restart of a web server? During a normal restart, the server is stopped and then started, causing some requests to be lost. A graceful restart allows Apache children to continue to serve their current requests until they can be replaced with children running the new … Continue reading graceful restart of apache
running jira as docker conatiner
[root@node1 ~]# docker search jira INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io/cptactionhank/atlassian-jira Atlassian JIRA wrapped in a Docker image 317 [OK] [root@node1 ~]# docker pull docker.io/cptactionhank/atlassian-jira [root@node1 ~]# docker run -d -p 80:8080 docker.io/cptactionhank/atlassian-jira 607ebcd0b3ec3054634019b5952416217b1df0840edb9907acee4c31fefb916d [root@node1 ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 607ebcd0b3ec docker.io/cptactionhank/atlassian-jira "/docker-entrypoint.s" 2 minutes ago Up … Continue reading running jira as docker conatiner
cleaning up disk
[root@node1 ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/sda1 xfs 10G 10G 11M 100% / [root@node1 ~]# du -h /| grep '[0-9\.]\+G' 1.3G /var/lib 5.8G /var/log/jenkins 5.8G /var/log 7.3G /var 4.0K /usr/share/locale/zh_CN.GB2312/LC_MESSAGES 4.0K /usr/share/locale/zh_CN.GB2312 1.8G /usr 10G / compress the file with tar i my case even i dont have space … Continue reading cleaning up disk
installing nexus in centos7
[root@node1 ~]# wget http://download.sonatype.com/nexus/3/latest-unix.tar.gz [root@node1 ~]# tar xvf latest-unix.tar.gz -C /opt [root@node1 ~]# cd /opt/nexus-3.7.1-02/ [root@node1 nexus-3.7.1-02]# ls bin deploy etc lib LICENSE.txt NOTICE.txt public system [root@node1 nexus-3.7.1-02]# ./bin/nexus start WARNING: ************************************************************ WARNING: Detected execution as "root" user. This is NOT recommended! WARNING: ************************************************************ Starting nexus [root@node1 nexus-3.7.1-02]# netstat -tln Active Internet connections (only servers) … Continue reading installing nexus in centos7
Intalling sonarqube in centos7
[root@node1 ~]# yum install http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm -y [root@node1 ~]# yum install mysql-server -y [root@node1 ~]# systemctl start mysqld [root@node1 ~]# mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password … Continue reading Intalling sonarqube in centos7
