Automatic redirection from http to http by nginx service under Linux

1. Realize automatic jump to http://bbs.westos.org when accessing http://xin.westos.org/bbs//   (1) Firstly, a virtual host is configured and tested to ensure that the configured virtual host is correct. [root@server1 ~]# vim /usr/local/nginx/conf/nginx.conf #Write the following server module in the http module (write 151-159 ...

Posted by Chapel on Fri, 26 Apr 2019 06:24:35 -0700

Linux stat function and stat command

Stat function and stat command In the linux file, [inode = index node] explains: to understand inode, you must understand disk and [directory item], inode is actually the intermediate material connecting [directory item] and disk. The big circle in the picture represents the hard disk, and the small circle in the picture represents a file stor ...

Posted by nesargha on Wed, 24 Apr 2019 14:21:34 -0700

The combination of Memcache and PHP adds cache to PHP

I. concept 1. What is memcache Memcached is a free, open source, high performance, distributed memory object caching system Memcached is a software developed by Brad Fitzpatric of Danga Interactive, a company owned by LiveJournal. Now it has become an important factor to improve the extensibility of Web applications in m ...

Posted by markjreed on Wed, 24 Apr 2019 13:30:34 -0700

FastDfs Distributed File System (Measured Successfully)

Recently, the company needs to build a FastDfs distributed file system to query and refer to a lot of information on the network, but according to their configuration from beginning to end, there will be more or less errors in the middle, which may be versions or other problems. After continuous research, the system has been successfully confi ...

Posted by jayarsee on Wed, 24 Apr 2019 11:18:35 -0700

Build DNS master-slave server to realize reverse parsing, subdomain, forwarding, intelligent DNS and debugging and Internet DNS architecture experiment

1 Basic Knowledge Points DNS services DNS: Domain Name System Application Layer ProtocolC/S,53/udp, 53/tcpBIND: Bekerley Internat Name DomainISC (www.isc.org)Local Name Resolution Profile: hosts DNS domain name Root regionLevel 1 domain name: Top Level Domain: tldcom, edu, mil, gov, net, org, int,arpaThree categories: organizational domain, ...

Posted by jmcall10 on Tue, 23 Apr 2019 15:18:35 -0700

Reading and Writing Separation of MySQL Database

I. Overview: After the master-slave structure of MySQL database is configured, under normal circumstances, all the read-write operations of the database are on the master database. The slave database is only used as data backup. Obviously, the server resources can not be used effectively, so the requirement of realizing the read-write separati ...

Posted by metalhead41 on Mon, 22 Apr 2019 14:48:33 -0700

nsca passive monitoring of nagios

brief introduction _Generally, we can basically achieve monitoring needs by using nagios active monitoring, but with the increase of the number of servers, nagios server will continue to use active monitoring will be overwhelming; in addition, when we need to use third-party data acquisition tools combined with nagios for alarm, we need to us ...

Posted by prasanthmj on Mon, 22 Apr 2019 01:33:35 -0700

Git Series II Data Management

1.Git Basic Management Basic operations commonly used in git 1.1 Data submission We can simply think of working directory as a directory managed by Git service program. Git will keep track of file changes in the directory at all times. In addition, after installing Git service program, by default, a branch called master will be created. We ...

Posted by johnsworld on Fri, 19 Apr 2019 15:33:35 -0700

Python Automation Development (2): HelloWorld Program, Variables and Assignment, User Interaction, Conditional Judgment and Indentation, Cyclic Control

You can edit py files with vim in the shell, or you can write code with pycharm, with. py as the file name The simplest code presentation #!/usr/bin/env python # _*_ coding: utf-8 _*_ # @Time : 2017/3/13 10:15 # @Author : eason # @File : FirstProgram.py print("Hello World!") Meaning of variables: Store temporary data while the program ...

Posted by xentia on Fri, 19 Apr 2019 13:09:34 -0700

Construction of FastDFS Cluster Edition

What is FastDFS FastDFS is an open source distributed file system written in c language. FastDFS is customized for the Internet. It fully considers the mechanism of redundant backup, load balancing, linear expansion, and pays attention to high availability, high performance and other indicators. Using FastDFS, it is easy to build a high-perform ...

Posted by daneilair on Wed, 17 Apr 2019 13:39:32 -0700