March 2018
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  

Categories

March 2018
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  

Install Mod Security on Nginx for CentOS 6 and 7

Install Mod Security on Nginx for CentOS 6 and 7 4 Comments Introduction

ModSecurity is a toolkit for real-time web application monitoring, logging, and access control. you can consider it as an enabler, there are no hard rules telling you what to do, instead, it is up to you to choose your own path […]

Start a docker container on CentOS at boot time as a linux service

Note: If docker daemon does not start at boot, you might want to enable the docker service

1 systemctl enabledocker.service

Here are the steps.

Create the file /etc/systemd/system/docker_demo_container.service

1 2 3 4 5 6 7 8 9 10 11 [Unit] Wants=docker.service After=docker.service [Service] RemainAfterExit=yes ExecStart=/usr/bin/dockerstart my_container_name ExecStop=/usr/bin/dockerstop my_container_name [Install] WantedBy=multi-user.target

Now I can start […]

docker install on centos 7.4

hostnamectl set-hostname clusterserver1.rmohan.com ifconfig -a vi /etc/selinux/config systemctl disable firewalld systemctl stop firewalld vi /etc/hosts yum install wget yum update yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo yum-config-manager –enable docker-ce-edge yum list docker-ce –showduplicates | sort -r yum install docker-ce

systemctl […]

disable directory browsing apache2.4

<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>

to

<Directory /var/www/> Options FollowSymLinks AllowOverride None Require all granted </Directory>

dockert centos

Docker is an open-source tool that automates the deployment of applications inside software containers by providing an additional layer of abstraction of operating system level virtualization on Linux. Docker makes it easier to create, deploy and run applications by using containers. Containers allow a developer to package up an application with all of the libraries […]

How to sync standby database which is lagging behind from primary database

How to sync standby database which is lagging behind from primary database Primary Database cluster: cluster1.rmohan.com Standby Database cluster: cluster2.rmohan.com

Primary Database: prim Standby database: stand

Database version:11.2.0.1.0

Reason:- 1. Might be due to the network outage between the primary and the standby database leading to the archive gaps. Data guard would be able to […]

Kubernetes basic concepts study notes

Kubernetes (commonly known as K8s) is an open source system for automatically deploying, extending, and managing containerized applications and is an “open source” version of Borg, Google’s internal tool.

Kubernetes is currently recognized as the most advanced container cluster management tool. After the release of version 1.0, Kubernetes has been developing at a faster speed […]

Tomcat log cutting and regular deletion

Tomcat log cutting and regular deletion

In Tomcat’s software environment, if we allow log files to grow indefinitely, one day the disk is full (crap). Especially in the case of log file growth is very fast, cutting log files by log and delete, is a very necessary work, the following describes the method of cutting […]

Tomcat load balancing using Nginx reverse proxies.

This essay focuses on Tomcat clusters and Tomcat load balancing using Nginx reverse proxies.

First, we need to literacy some knowledge points (to literacy, embarrassment): Cluster (Cluster) Simply put, N servers form a loosely coupled multiprocessor system (external is a server), internal communication through the network. Let N servers cooperate with each other and jointly […]

Docker Webshpere

Docker Webshpere

Step 1 docker websphere 1. docker pull ibmcom/websphere-traditional:8.5.5.12-profile

2. docker run –name websphere -h test -e UPDATE_HOSTNAME=true -p 9043:9043 -p 9443:9443 -d ibmcom/websphere-traditional:8.5.5.12-profile

3. docker exec websphere cat /tmp/PASSWORD

4. docker run –name test -h test -v $(pwd)/PASSWORD:/tmp/PASSWORD -p 9045:9043 -p 9445:9443 -d ibmcom/websphere-traditional:8.5.5.12-profile

5.websphere? https://172.10.21.30:9043/ibm/console/login.do?action=secure

Install image

The ibmcom/websphere-traditional:install Docker image contains […]