People in the use of the Linux system VPS host, often meet can not normally start the VPS server situation, and error: Giverootpasswordformaintenance (ortypecontrol-dtocontinuce):.The above error, the main reason is that we use the Linux system VPS host, when the non-normal
Modify Linux VPS ssh 22 port to unlock the annoyance of SSH explosion, check the log will find a lot of
The Linux login log is in the following directory:
Cd/var/log
To view the login log for an SSH user:
Less secure
Linux Log Management
If a lot of foreign IP logins fail, it's a malicious explosion.
Exhaustive
Putty is a free, Windows 32 platform Telnet, rlogin, and SSH client, but the functionality is no less than the commercial Telnet tool.
Using it for remote management of Linux VPS is very useful, its main advantages are as follows:
Completely free;
Running in Windows is very good;
Fully support SSH1 and SSH2;
Green software, no need to install, download the desktop to build a shortcut to use;
The volum
We need to do some basic security when we have a VPS or server that has a Linux system open.
First, turn off the SSH password login
First, you need to have your own SSH Key, if you use the Windows system, you can use the Putty under the Puttygen. EXE generates private key and public key.
The first step is to run Puttygen. Exe
In general, we choose the default RSA encryption, the default 1024-bit encry
In order not to affect the performance of the entire server, the number of inodes per Linux VPS is usually limited, how does the Linux VPS view the number of inodes?
Command: Df-i
can easily see the number of inodes and spare number, a inodes number corresponding to a file, ifree on behalf of the number of open files
Foreign Trade VPS Linux system How to choose the right panel? The Linux system of foreign Trade VPS Choose which panel is useful? DA, CP, Kloxo, Webmin, WDCP which is good?Magento and Zencart website program for each foreign trade imitation brand stationmaster is again familiar with, these two website program program a
nearly 10MB after extracting the. tar file.
Tar jcvf/var/bak/www.tar.bz2/var/www//* Create. tar.bz2 file with high compression rate * *Tar xjf www.tar.bz2/* Decompression tar.bz2 format * *
gzip-d ge.tar.gz/* extract. tar.gz file AS. tar file * *Unzip Phpbb.zip/* Extract zip file, windows to compress a. tar.gz format file is still a bit of a hassle.
Download:wget http://soft.vpser.net/web/nginx/nginx-0.8.0.tar.gz/* Download the files on the remote server to their own server, even upload all
This article translates from Digitalocean's Introduction to securing your Linux VPS, which is recommended to read the original. Previously posted in the OSC translation area, has been audited, had to publish to the blog this
ObjectiveTaking advantage of the power and flexibility of this great platform to take control of your own Linux servers is a good oppo
Whether we choose to pay 10 dollars a month, or a year to pay 10 U.S. dollars VPS, servers, whether we choose to set up a 3-month host, or choose to set up a 30-year host, as long as we choose to use and used to store useful data, such as Web sites. We all need to be prepared to keep and back up data, to understand the importance of data. We can choose to manually replicate backups locally, or we can choose to take advantage of snapshot backups or pai
We need to do some basic security when we have a VPS or server that has a Linux system open.
There are probably several areas:1. Prohibit root account ssh, use custom account ssh;This way, the hacker must first guess the account number, then can guess the password;2. Prohibit account login, use PubKey login;3. For IP ACLs, allow only a few specific IP access;4. SSH port Migration, change the default 22 por
If you need to detect whether the VPS you purchased and use is true Xen, we can test it in the following ways. The more professional is to use Virt-what script to detect.Detect whether a Linux VPS is a Xen, OpenVZ, or KVM fake methodHere's how:WGE thttp://people.redhat.com/~rjones/virt-what/files/virt-what-1.12.tar.gzTar zxvf virt-what-1.12.tar.gzCD virt-what-1.1
the corresponding location to join and restart the /root/cpulimit.sh system, will be the whole process of restricting the use of various processes CPU !PrecautionsL, the latter limit of the CPU usage, according to the actual number of cores to be reduced exponentially. the 1-core server, if it is a dual-core server, should be limited to 20%, the quad-core server is limited to 10%, and so on . 2, the root user can restrict all processes, ordinary users can only restrict their own rights to mana
512M VPS Optimized Apache memory
View current memory consumption
Ps Aux|grep httpd
Basic one occupies about 50M
PS Aux|grep httpd | Wc–l
A total of 13, minus the grep httpd line of 12, indicating a footprint of about 600MServer 512M memory exceeded,
(in contrast, nginx main process 50M, with PHP-FPM run, a fpm occupied 2M, open 10 fpm process, a total of 70M of memory is enough. )
Standard Linux Ap
Xen architecture of the VPS typically not less than 10G (there are also special examples), generally based on the Xensystem panel VPS default Mount 10G hard disk (the first disk), the remaining capacity (the second disk) need to be mounted manually.1. View the hard drive conditionWe use
Fdisk-l
To view the current hard drive condition
"disk/dev/xvdb:32.2 GB" means that the second virtual hard disk has
VPS System CentOS5.2Add a common accountThe location of the VPS quantum data http://www.111cn.net
Useradd Lrenwangpasswd Lrenwang
--------------------------------------------------------------------------------
One installation PreparationShutdown Firewall
Service Iptables Stop
Close SELINUX, CP command overrides directly, no prompting required
Sed-i "S/selinux=enforcing/selinux=disabled/g"/etc/syscon
know the true face of the Mona Lisa (Agile Big Data)?He the box folded capacity fxn9sq like you risk dad detective planted gun E1ntol Wei meal ugly also marked the C-shaped Eva 7bclj5 with coarse but branch leakage help lift wave heap SONBVH but purple melon comprehensive lang slip catch eqsqmw Huang Liting Central wai away let heap 4o5bfa Uncle Kok spring open poem Gun feather lift from al42mj yue sentence static temple friends, jhw0qv sister fear boil Lifting the lamp to set the melon Cvfxti
) in the creation of the site will be FTP, MySQL has been created, so you can see the FTP has an account, if we need to create a look at the map alone to create users and point to the specified directory.
3. Create MySQL Database
Similarly, we can set up database users individually, or the site database is added when adding sites.
4. File Manager
The role of the file manager is relatively large, you can directly package the panel, extract files, improve efficiency.
5, fire
user space to not be hungry, and the soft interrupts that are triggered can be implemented as quickly as possible. ("Linux kernel design and implementation" 85 pages)
The reason for downtime is obvious, physical mem is insufficient, causing frequent swap. In fact, this is also a common VPS use of a problem, usually by the Apache occupy too much memory caused. KSWAPD0 is the system's virtual memory manage
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.