Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Openfire achieve load balancing cluster by Nginx     - ORA-00020: No more process state objects available (Database)

- mysqldump implement database logical backup (Database)

- Docker Basic Concepts (Linux)

- Java filter (Programming)

- Elasticsearch 2.20 Beginners: aggregation (Server)

- Install Ubuntu 14.04 and Windows 8 / 8.1 dual-boot in UEFI mode (Linux)

- RedHat 6 xrdp use remote login interface (Linux)

- Oracle Character Set Summary (Database)

- The best known for archiving / compression tool under linux (Linux)

- Linux environment variable configuration (Linux)

- Spring Data study notes -Helloworld (Programming)

- Java memory area Explanation (Programming)

- AngularJS - Getting Started with Routing (Programming)

- LAN Deployment Docker-- from scratch to create your own private warehouse Docker (Linux)

- CentOS 7.0 Experience with previous versions (Linux)

- Ubuntu modify DNS restart loss problem (Linux)

- Simple steps allows you to build a more secure Linux server (Linux)

- Slow update statement Performance Analysis (Database)

- Struts2 form of non-use component tags (Programming)

- RedHat Linux 6.4 installation RTL8188CUS wireless network card driver (Linux)

  Openfire achieve load balancing cluster by Nginx
  Add Date : 2018-11-21      
  Some time ago realized Openfire cluster deployment, if you want to achieve in your application, we also need to apply a critical job: load distribution, we select the tool load is Nginx (The reason is simple: open source, free).

1, install nginx (RedHat Enterprise Edition 6.5 64bit environment)

Nginx official website to download the latest version of the file, the latest version when nginx-1.9.3.tar.gz

The latest version was chosen because the new version of nginx has provided support tcp load, no need to introduce other projects;

installation steps:

1, using the tar command to extract the project files: tar -zxvf nginx-1.9.3.tar.gz

2, down into the unpacked project with the path to re-compile the project: ./configure --prefix = / usr / local / nginx --with -stream


If you need to use load tcp protocol at compile time it has to pass parameters --with -stream

System error, suggested that the lack or pcre zlib library, two stocks that mirror a file system, we follow the prompts to install the two libraries, follow these steps:

1, add the image file to the virtual machine

2, the image file will be mounted under the path:

mount --bind /media/RHEL_6.5 x86_64 Disc 1 /root/redhat6.5iso

3, using the command yum install the missing libraries:

yum install pcre *

yum install zlib *

3, the use of make, make install command to install

First implementation of make command, and then execute the command make install

4, modify the configuration

Using the vi editor /usr/local/nginx/conf/nginx.conf configuration files, some configuration information added to it

stream {
      upstream backend {
                hash $ remote_addr consistent;
                server weight = 5;
                server weight = 5;
        server {
            listen 5222;
            proxy_connect_timeout 10s; long must set the connection timeout when #
            proxy_timeout 30s; long must set the proxy timeout #
            proxy_pass backend;

5, start

The latest version of nginx start command: / usr / local / nginx / sbin / nginx, Close command: / usr / local / nginx / sbin / nginx -s stop
- How to install the NVIDIA 358.16 driver in Ubuntu 15.10,14.04 (Linux)
- Linux desktop system using the remote server in clear text ssh password (Server)
- Linux System Getting Started tutorial: Ubuntu desktop using the command line to change the system proxy settings (Linux)
- CentOS7 virtual machine creation failed Solution (Linux)
- Swift string common method (Programming)
- Linux iptables firewall settings (Linux)
- Linux server startup and logon security settings (Linux)
- Linux SVN account password to save your settings (Linux)
- Restore Oracle Database Cold backup and database reconstruction emca (Database)
- APT-GET commonly used Linux command (Linux)
- Python basis: os module on the file / directory using methods commonly used functions (Programming)
- Sorting algorithm of dichotomy (binary) insertion sort algorithm (Programming)
- Configuration OpenOCD + FT2232 under Ubuntu (Linux)
- Ubuntu cut screen method (Linux)
- Linux ACL permissions (Linux)
- Use SocketServer write a sockets program (Programming)
- By creating a personal technology blog Detailed GitHub (Linux)
- Syncthing: Private Security Synchronization tool to synchronize files between computers / folder (Linux)
- Configuring Allatori code confusion when developing general Java applications in NetBeans (Programming)
- Security: set limits on password (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.