Every day, a series of data files are generated on the server, some of which are of great importance, but if we simply move the files, it will not be very good backup, here, we use Python to implement the cloud backup of the file.This program I use Python to write, borrowed the Sevencow library file, the use of the program is very simple.
First we can download this code file from GitHub, and we can take advantage of the git clone command.https://github.com/icorer/vpssync.git Source Downloa
Set Squid Agent to appear the connection is reset, this is because you on the website of the keyword is qiang cause your ip+ corresponding proxy port is blocked, causing the connection to be closed directly.So we just use squid encryption to block the keyword. Start squid here, let's talk about opening squid htps_port.Cooperating with Stunnel (forwarding HTTP unencrypted HTTP packets to HTTPS encryption)Use squid and stunnel to encrypt squid to prevent GFW from losing squid with keywords1. Turn
Detailed description of centos Nic configuration under the VPS server automatically activates the NIC and installs CENTOS 6. after X, you need to manually activate the NIC every time you start the system. The following methods can be used to automatically activate the NIC after the system starts. Cat/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE = "eth0" HWADDR = "00: 0C: 29: FC: 1C: 72 quot; NM_CONTROLLED = quot; yes quot; ONBOOT = quot; no qu
VPS Linux Centos6.3 build a VPN (pptpd) Server 1. find the software package: Run wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.el6.x86_64.rpm in Centos System (it seems sourceforge.net this I can not open this campus network, or OpenShift to download) 2. check System Support and install the ppp and iptables package. The latter is usually installed by default. Use the local yum source yum install-y ppp iptables3. install the pptp
Now I have changed Ubuntu 9.10, and the previous method is not very useful. Fortunately, I found the VPN introduction written by users who are also Linode Ubuntu 9.10 On the website. It has been tested before.
First, make sure that your vps has been following Getting Started With Linode
This article provides preliminary preparations. For VPN installation, you must set the update source. Edit your/etc/apt/sources. list file and remove the comments of a
If the iptables firewall is not configured properly, we will not be able to access the server on our own. Let's take a look at our own vps in a hurry today, and we won't be able to log on through ssh, so it is very difficult to query logs, several ip address access exceptions were found, which should be a crawler of a plug-in. Previously, the simple iptables graph was disabled and can only be enabled again. The main command is as follows:
Th
Mount extended Hard Disk Partitions using LVM in CentOS VPS
Linux partitions are LVM, and there are three phases to expand the hard disk: New partition -- New PV -- expand VG -- expand LVTo divide a single hard disk into multiple logical partitions, create a new partition. skip this step if you use the entire hard disk:
1234567891011121314151617
# Http://www.haiyun.mefdisk-l # view the partition to be mounted, usually/dev/xvdbfdisk/dev/xvdb Command (m
Connect VPS Enter First command
Netstat-anp |awk ' {print $} ' |sort|uniq-c |sort-rn
Here we look at Syn_recv these, see his connection number is not high, good hundreds of, it is possible to be DDoS
The next trace is from which IP emits syn
directive: Netstat-an | grep SYN | awk ' {print $} ' | Awk-f: ' {print $} ' | Sort | uniq-c | Sort-nr | More
Next, keep looking, input instructions.
Netstat-ntu | grep SYN | awk ' {print $} ' | Cut-d:-f1 | S
daemon=/usr/bin/spawn-fcgiDaemon_opts= "-A 127.0.0.1-p 9000-c 10-u www-data-f/usr/bin/php-cgi"
When you modify the stop, the action is: pkill-9 php-cgi
Save, exit.
(4) Configure Nginx, open PHP support
Vi/etc/nginx/sites-available/default
Index to add index.php, and the relevant PHP part of the comment cancellation, note that you need to modify the Fastcgi_param path
Location ~ \.php$ {Fastcgi_pass 127.0.0.1:9000;Fastcgi_index index.php;Fastcgi_param script_filename /var/www/nginx-defaul
, although to the Forum exchange can get outside the chain, but pay attention to ensure their own information security, do not disclose their account habits.
These are the personal experience of maintaining a Windows Server 2008 server, a basic Security configuration tutorial that can protect against most vulnerabilities; Of course, if memory allows, you can install antivirus software, while adding other precautions, however, for VPS or cloud host us
After a customer reflects the foreign VPS system time can not be synchronized update problem, came up with the following methods to solve ...
Win2003 System has a DOS command to implement date-time update synchronization: W32tm/resync
So, then we set a scheduled task, timed to let it execute on it.
In the C-packing directory to create a Time.bat file, the contents of the file is W32tm/resync.
Then, add a new scheduled task in Control Panel, and set
Linux VPS System anti-CC attack automatic pull black IP script is divided into 2 versions, the normal version is added to the crontab scheduled tasks performed every 5 minutes. Enhanced version is mainly to make up for the use of crontab execution time interval is only a minimum of 1 minutes, you can make CC protection more stringent, even every 1S execution once!
Function Description: Through the Netstat-an command to count the current request concu
First go to the official under the latest version of Memcached (memcached-1.4.22.tar.gz) and dependent package libevent (libevent-2.0.21-stable.tar.gz):
http://www.memcached.org/files/
http://libevent.org/
There are two more PHP expansion packs:
Http://pecl.php.net/package/memcache
Http://pecl.php.net/package/memcached
The latest version of my current edition is: Memcache-2.2.7.tgz and memcached-2.2.0.tgz
Because PHP memcached package to install first libmemcached download the following
With the mood to try to upload the file to the VPS. Did not think incredibly successful to the C disk of the garbage file cleared, the browser can also open, found a series of problems also solved. All right, the tool that will erase the junk files is shared. Download Address
Here is a batch, you can refer to (mainly used to delete temporary files, log files, such as some of the garbage files)
The code is as follows
Copy Code
VPS uses LNMP to install WordPress and vpslnmpwordpress. VPS install WordPress with LNMP. vpslnmpwordpress preface a few days ago, a friend had an idle vps and MB of memory on his hand. I decided to give it a try. After some thought, I still used to install WordPress and vpslnmpwordpress with LNMP for the remote VPS.
P
Subversion (SVN) is a famous version control software. It is especially suitable for controlling and managing software source code through the Internet in different places. Recently, I plan to work with my colleagues to develop something, so I decided to fully explore the favorable resources of our Linode VPS and install the SVN service terminal on the VPS. In this way, we can remotely develop software thro
For PHPnow websites made in VPS, the CPU is easily up to 100% nbsp; PHPnow nbsp; for websites made in VPS, the CPU is easily up to 100% and it seems there is memory leakage. the system is WIN2000. how can this problem be solved ........? For PHPnow websites in VPS, it is easy for the CPU to reach 100%
For PHPnow websites in
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.