mod_jk or mod_proxy_ajp ?

mod_jk or mod_proxy_ajp ? A Tomcat servlet container can be put behind an Apache web server using the AJP protocol, which carries all request information from Apache to Tomcat. There are two implementations of AJP module: mod_jk which must be installed separately mod_proxy_ajp which is a standard module since Apache 2.2 They both use protocol AJP, […]

Read more
Mysql backup

#!/usr/bin/env bash USER=”” PASSWORD=”” OUTPUTDIR=”” DAYS_TO_KEEP=60 databases=`mysql -u$USER -p$PASSWORD -e “SHOW DATABASES;” | tr -d “| ” | grep -v Database` cd $OUTPUTDIR for db in $databases; do if [[ “$db” != “information_schema” ]] && [[ “$db” != “performance_schema” ]] && [[ “$db” != “mysql” ]] && [[ “$db” != _* ]] ; then echo […]

Read more
How to install Fail2ban in rhel 6 & 7

How to install Fail2ban in rhel 6 & 7 What is fail2ban? Fail2ban works by scanning and monitoring log files for selected entries then bans IPs that show the malicious signs like too many password failures, seeking for exploits, etc. 1. Install Fail2Ban For RHEL 6 rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm For RHEL 7 rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm […]

Read more
Ngxin environment. It requires http to force a jump to https

The company intends to replace http with https in the Ngxin environment. It requires http to force a jump to https. This search on the Internet, the basic summary Configure rewrite ^(.*)$ https://$host$1 permanent; Or in the server configuration return 301 https://$server_name$request_uri; Or in the server with if, here refers to the need to configure multiple […]

Read more
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. Create a user in Mysql in linux login to mysql as a root mysql -u root -p now create user with following command CREATE USER ‘testdb’@’localhost’ IDENTIFIED BY ‘test123’; if you got error like below. then you have to […]

Read more
MySQL Slave Failed to Open the Relay Log

This problem is a little tricky, there are possible fixes that MySQL website has stated. Sad to say, the one’s I read in the forum and site didn’t fix my problem. What I encountered was that the relay-bin from my MySQL slave server has already been ‘rotated’, meaning deleted from the folder. This happens when the slave […]

Read more
Ngxin do http forced jump https interface POST request becomes GET

The company intends to replace http with https in the Ngxin environment. It requires http to force a jump to https. This search on the Internet, the basic summary Configure rewrite ^(.*)$ https://$host$1 permanent; Or in the server configuration return 301 https://$server_name$request_uri; Or in the server with if, here refers to the need to configure multiple […]

Read more
Linux Servers Prevent Pings and Open Pings

Linux defaults to allow ping responses, which means that ping is on, but ping may be the start of a network attack, so turning off ping can improve the server’s security factor. Whether the system allows ping is determined by two factors: 1. Kernel parameters, 2. Firewall. Two factors are required to allow ping at the same […]

Read more
Linux configuration ssh remote remote login

This configuration allows you to: ssh logins between cluster servers. If you only want to ssh login from other machines (slave1, slave2) from a single machine (such as master), only follow the second step. It is recommended to spend two or three minutes to read the full text and then follow the steps Steps: 1. Cluster […]

Read more
Nginx load balancing and configuration

Nginx load balancing and configuration 1 Load Balancing Overview The      origin of load balancing is that when a server has a large amount of traffic per unit time, the server will be under great pressure. When it exceeds its own capacity, the server will crash. To avoid crashing the server. The user has […]

Read more

Hit Counter provided by dental implants orange county