As a general VPS user, it is possible to use the LNMP (linux+nginx+mysql+php) or the LLSMP (linux+litespeed+mysql+php) architecture as our VPS build system environment. Each environment has its own characteristics, such as the use of LNMP processing
As a VPS operator, the author is seen such talent, a person at the same time operation and maintenance of more than 10 VPs, but also with SSH operation, without FTP as a file management, even if you want to modify the file locally, but also with the
What is the reverse proxy?
A reverse proxy is a proxy server that accepts a connection request on the Internet and then forwards the request to a server on the internal (or other) network and returns the results obtained from the server to the
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
First, the Installation plan task
This program may not be pre-installed on some systems, and you will need to perform the following command to install it.
Yum Install-y Vixie-cron
Then start the service
Service Crond Start
Second, set up
One, prepare to work
1, login into the VPS Control Panel, ready to reboot the VPS at any time.
2, shut down the Web server first, too much load will cause the subsequent operation is difficult, or even directly unable to login SSH.
3, just in case,
In general we use the manual backup VPS site on it. Generally old left like 1 weeks to back up the site, such frequency should still be good, for yesterday to share the "database/website files Automatic Timing Backup" method is more important for
I use the putty, follow the operating procedures of this VPS, record these common commands
passwd: Modify Password
Cd:current Directory: access to catalogue;
Eg:cd/home into the home directory; CD/to root directory
Ls:list: Lists the current
First, install LFTP environment
Because we need to use the LFTP environment when uploading FTP files, we can't make sure all the systems are installed, so we'd better reinstall them first.
The code is as follows
If we want to modify the root default password, generally through 2 methods, some panels can be modified by the password, we can directly modify in the panel, if not on the selection of this article introduced the original password with SSH login to
Once the site to use the VPS, we need to do is operations, not only to ensure that the site can be stable operation, and the need to regularly back up the Web site files and databases, so as to avoid accidents can also use the data has been backed
VPS Scheduled BACKUP DATABASE command, save the following code as BACKSQL.SH, and then set the scheduled task to run.cd/home/admin/Backup #切换到备份目录btimes=$(Date+%y%m%d%h%M) #定义备份时间agobtimes=$(Date-d-7day +%y%m%d%h%M) #定义删除七天前的备份RM-RF
Today, share with you the most basic security configuration of VPS.First, modify the SSH portVPS Default SSH port is 22, those who scan the poor lift password, also bound to start from 22, so, modify 22 for an additional number, is very necessary.OK,
As the MySQL database is running on the website, the backup problem becomes increasingly prominent. You may not be able to import or export data when using phpmyadmin to export or import data because of a large timeout file. The following describes
DDOS is crazy recently
The module mod_evasive in Apache that prevents DoS attacks. In lighttpd, mod_evasive can also be used to limit the number of concurrent connections to prevent DDOS attacks.In lighttpd. add the following code to the conf file
What is reverse proxy?
A reverse proxy is a proxy server that accepts connection requests from the Internet and forwards the requests to an internal (or other) network server, return the result obtained from the server to the Client Requesting
After logging on to VPs remotely, configure the environment. Here we will accept the simplest PHP environment Configuration:
Step 1:
Enter the command "yum-y install Yum-fastestmirror" and press Enter.
The installation has started:
After the
Use the psftp.exeand putty.exe in the puttyinstallation package to achieve your goal.
To use psftp.exe for upload, you only need to know the following four commands:
1. OpenExample: Open *** .dreamhost.com-- Connect to the server. Replace "***
Generally, you can manually back up the websites in the VPS. Generally, the old man prefers to back up a website once a week. This frequency should be quite good. The "automatic and timed backup of database/website Files" method shared yesterday is
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.