in here The introduction of rsync combined with inotify configuration file real-time synchronization method, with the need for a friend reference. About the software I will not introduce more, please refer to the degree Niang! Note : 1. At the time
1. ArchitectureServer side: 192.168.202.135Client: 192.168.202.1292.rsync server-Side installation configurationYum Install rsync-y #安装rsync服务To provide a configuration file for the Rsync service:vim /etc/rsyncd.conf #文件默认不存在, add the following
First we download the package to the specified directorytar -zxvf redis-2.8.19.tar.gz cd redis-2.8.19 makemake PREFIX=/usr/local/redis install/usr/local/redis/etc/cp redis.conf /usr/local/redis/etc/ cd /usr/local/redis/bin/cp redis-benchmark
#是否以后台进程运行, the default is noDaemonize Yes#如以后台进程运行, you need to specify a PID, which defaults to/var/run/redis.pidPidfile D:/redis/var/redis.pid#监听端口, default is 6379Port 6379#绑定主机IP, the default value is 127.0.0.1 (note)# bind 127.0.0.1#超时时间,
1 Preliminary NoteI ' m using the II OpenSUSE systems here:
NFS Server:server.example.com, IP address:192.168.0.100
NFS Client:client.example.com, IP address:192.168.0.101
2 Installing NFSServerOn the NFS server we run:Zypper
For reading curlheadergzip, when using curl to extract some compressed websites, you want to obtain the header PHPcode $ ch = curl_init (); curl_setopt ($ ch, CURLOPT_URL, & quot; http://www.example.com/" ;); cu reading curl header gzip
When
For reading curlheadergzip, when using curl to extract some compressed websites, you want to obtain the header PHPcode $ chcurl_init (); curl_setopt ($ ch, CURLOPT_URL, & quot; www.example.com & quot ;); curl_setopt ($ ch, CURLOPT_HEADER, 1); $ co
PHP uses the curl method to post data to the api interface. most of the HTTP requests of the API are GET. therefore, no matter AJAX or PHP is used for secondary processing, the returned data can be obtained, however, the HTTP request method of some
One-click rsync server shell script configuration in CentOS
1. Save the following code as a file and upload it to the server named rsync. sh.
#! /Bin/bash
# Rsync Written by zhumaohai
# For more information please visit http://www.centos.bz
Ext. data. connection is for Ext. lib. ajax encapsulation, which provides a general method for configuring and using Ajax. It internally uses Ext. lib. ajax implementation and background asynchronous call. Compared with the underlying Ext. Lib. Ajax,
Installed after several twists and turns
1. Download
Wget http://download.redis.io/releases/redis-2.8.7.tar.gz
The downloaded file is redis-2.8.7.tar.gz in the current directory
2. Compile and install
Tar xf redis-2.8.7.tar.gz
CD
Redis is a key-value storage system. Similar to memcached, memcached supports more storage value types, including string, list, set, and zset) and hash (hash type ). These data types support push/pop, Add/Remove, Intersection Set and difference set,
Apache introduction:
Apache is a famous web server software. It is a tool for implementing the HTTP protocol, while httpd is the main program of the Apache Hypertext Transfer Protocol server.
Next I will talk about the Apache configuration file
The configuration file of the Apache server is located in the/etc/httpd/CONF/directory. Traditionally, three configuration files are used: httpd. conf, access. conf and SRM. conf to configure the behavior of the Apache server.
Httpd. conf
When we connect to the server through a terminal, when the mouse and keyboard do not operate for a long time, the server will automatically disconnect, and we still need to re-connect, it feels very troublesome, summarize the solutions to this
1. sshpass enables SSH to remember the password for SSH Automatic Login (1) install sshpasssudo apt-Get install sshpass.pdf download sshpass-1.05.tar.gz shell> tar xvf sshpass-1.05.tar.gzshell> Cd sshpass-1.05shell> make & make install (2) test
Serverroot/Apache
# You can use the absolute path E: webapache
# Serverroot is used to specify the httpd running directory of the daemon. After httpd is started, it automatically changes the current directory of the process to this directory,
I. About redis
Redis is an advanced key-value database. It is similar to memcached, but data can be persistent and supports a wide range of data types. It keeps key-value databases simple and fast, while absorbing the advantages of some relational
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.