Store Session of Nginx+Tomcat Load Balancing Cluster with Redis

Environment: Cent OS 7.0 (Virtual Machine Environment), Nginx 1.9.8, Redis 3.2.1 1. Background When using Nginx+Tomcat for load balancing, because Nginx distributes different requests to a Tomcat, Tomcat runs in different containers, because session s are out of sync or lost. 2. Installation and Configuration of Nginx 1. Nginx I ...

Posted by TalonFinsky on Tue, 09 Jul 2019 10:52:53 -0700

Installation of linux PHP environment

Nginx installation nginx relies on three modules, zlib pcre ssl, which should be installed before installation and ignored if installed Installation by source code: These three extensions do not need to specify the installation directory, they are all installed by default in the / usr/local directory. The first step is to download the sour ...

Posted by riddhi on Sun, 07 Jul 2019 19:51:05 -0700

zabbix remote command configuration

1. zabbix remote command:1.1 Function:    Restart service;    Restart the server through IPMI interface.    Functions that any custom script can accomplish: cleaning disk space, virtual machine instance migration, etc.1.2 Related attributes:    Tatget list: The target ho ...

Posted by 7khat on Mon, 01 Jul 2019 13:29:35 -0700

ngnix+keepalive Load Balancing Setup

3.7 Load Balancing Setup 3.7.1 Environment Architecture Figure 3.7.1 nginx environment architecture diagram   3.7.2 Install dependency packages Command: #yum -y install gcc pcre-devel zlib-devel openssl-devel   3.7.3 Upload the Nginx and Keepalived installation packages to the server Upload nginx-1.6.2.tar.gz and keepali ...

Posted by hanji on Sun, 30 Jun 2019 12:26:39 -0700

php turns html into pictures

The compiled html is converted into pictures by server-side parsing. Because html is usually parsed by client browser, the server can not parse HTML code directly. So we need php class libraries and extensions to fulfill this requirement. The file conversion process is html - > PDF - > png. The class libraries needed are mPDF, imagick The ...

Posted by taskhill on Sat, 29 Jun 2019 12:40:20 -0700

Cloud Server LNMP Environment Construction

Write in front On Purpose This is an introduction to how to build an LNMP environment on cloud servers. Content is based on my recent study and practice, so some content will be repeated with other articles online, so the purpose of this article is to pass the knowledge of the predecessors, and try to summarize a set of effective methods ...

Posted by lobobr on Mon, 24 Jun 2019 15:40:13 -0700

nginx Configuration Actual

http reverse proxy configuration Let's start with a small goal: to complete an http reverse proxy, regardless of the complexity of the configuration. The nginx.conf configuration file is as follows:Note: conf / nginx.conf is the default configuration file for nginx.You can also specify your profile using nginx-c #Running User #user s ...

Posted by imperium2335 on Mon, 24 Jun 2019 14:02:53 -0700

LNMP source code compilation and installation

Linux system is CentOS 6.7 Start preparations Switch to Package Directory cd /usr/local/src Clean up installed packages rpm -e httpd rpm -e mysql rpm -e php yum -y remove httpd yum -y remove mysql yum -y remove php #Search apache packages rpm -qa http* #Mandatory unloading of apache packages rpm -e --nodeps File name queried #Check ...

Posted by Digital Wallfare on Sun, 23 Jun 2019 10:21:26 -0700

Nginx + uWSGI + Python + Django deployment instance

Nginx: Nginx is a high-performance Web and reverse proxy server. It has many excellent features:As a Web server: Compared with Apache, Nginx uses fewer resources, supports more concurrent connections and embodies higher efficiency, which makes Nginx especially popular with virtual host providers. Thanks to Nginx for choosing epoll and kqueue as ...

Posted by Cliftron on Sat, 22 Jun 2019 17:50:08 -0700

Developers learn Linux(7): CentOS 7 compiles, installs and configures PHP-FPM

1. PrefaceThe last article described how to compile and install MySQL. Although it can be installed by yum install or rpm, there is a feature of yum install and RPM installation. Some parameters are customized according to the needs of the public. If you need to specify your own specific parameters, this is difficult to do. Therefore, people wh ...

Posted by deano2010 on Sat, 22 Jun 2019 14:27:34 -0700