-effective virtualization infrastructure software for a wide range of users, which can reduce operational costs, improve hardware utilization, optimize infrastructure, and increase server availability.Finally, in a comprehensive comparison:VM HYPER Xen is software, is a software to build virtual server, so often also say VM host, HYPER host, Xen host. These three kinds of always belong to the virtual server (a kind of VPS) just say that the software u
We have a Linux VPS command to manage him, let's list some basic and simple Linux commands1.lsLS/view root directoryLs-a/View the files you want in the root directory, including hidden filesLs-l/Detailed information about the permissions of files in the directory, owner file size, etc., can be simply entered | |Ls-f/list file name and its directory type; * indicates executable file, @ denotes symbolic link,/end indicates directory nameLs–t list file n
Kloxo is a Linux VPS server is very outstanding foreign free panel, the domestic user is also very large. Han is also in place. Before the author to introduce the use of a key installation package is very convenient (one-click Installation kloxo). Although this may be a little strange for the first-time friends, today, the Eagle will give the novice friend the door to do a basic tutorial on the use of operations. Can make novice friends quickly start.
Recently, I would like to install flow monitoring, but do not know how to do, the VPS is not normal, forget, for the future stability, reload forget, now record the steps for a rainy days.
The first step is to back up the data
1. Back up old data:
The old data includes four directories,/HOME/FTP,/home/mysql_data,/home/pgsql_data,/home/lum_safe_files
When reloading, just modify the name, you can modify it (use MV command or WINSCP modify the direct
Some notes in the configuration process:
One, VPS only a root partition, no swap swap partition. The VPS has little memory, so I added a swap file for it.
1, into a directory
cd/var/
2, get 256M of File Block:
DD If=/dev/zero of=swapfile bs=1024 count=262144
3. Create swap file
/sbin/mkswap Swapfile
4. Activate swap file
/sbin/swapon Swapfile
5. Check to see if swap is correct:
/sbin/swapon-s
6, add to the
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 data, and can not be maintained in front of the computer for a long time.
For example, some friends often travel, back to open the Web site found that the data is not the case, such friends still need to au
The heart of the people must not be. There are always some boring or intentional people on the Internet. I don't have much to say. On dry Goods, configure VPS APF to prevent small traffic DDoS attacks.
For large traffic DDoS attacks, the need for the computer room hardware firewall, the internal VPS may also be unable to carry.
1. Install DDoS deflate
The principle of DDoS deflate is to use the netstat comm
Code
Swapoff-a
Delete a swap partition
The code is as follows
Copy Code
Fdisk/dev/sda
This is similar to the increment operation, except to delete the partition instead, enter D
The code is as follows
Copy Code
Partition number (1-4):
Enter the partition number you want to delete, 2
Enter P to view the partition and has been deleted.
Enter W save exit.
Modify/etc/fstab file, delete/dev/sda2 sw
It is said that now PPTP, L2TP and so on are not very good, and the OpenVPN sometimes seemingly also do not connect (for example, the previous article, on many people can not connect to the reaction installed), this article is about using the OpenVPN Access server free version to build an anti-jamming VPN;
OpenVPN Access Server free version only supports 2 users to connect at the same time, but it is completely OK for your own use, and the installation is very simple. Let's talk about t
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 directory;
Mkdir:make directory: New Catalog;
Eg:mkdir AA
Mv:move: Moving files;
Usage: MV FileName file directory
Rm:remove: removal of files;
wget: Download; Usage: wget download address
Zip:zip compr
Including the old Chiang usually installed in the VPS host a certain environment, because of the different server IP problems, even the same service provider with a computer room, the IP address is different, at the same time wget a file when some of them will not download files. Or when we install a file program, the download speed is very slow through the wget.
There are two possible problems encountered, the first is our server DNS problem
A lot of friends in reading the article can also be installed to use, but there are some users mentioned more complex, after all, for the first contact with Linux users, the input command is a key difficult. So Chiang tidied up to the OpenVZ VPS host based on Ubuntu, Debian, CentOS this 3 release version to install VNC Remote Desktop Tutorial.
First, install VNC one key package
A, Ubuntu (12.04 32 or 64 bits)
Th
Linux VPS Host site for many novice friends, and the user is accustomed to using a virtual host may still prefer to have a Visual Web panel management site is more convenient, at least to see the menu, management site, so it seems more practical. It will be used to some free, paid web panels, and many domestic and foreign panels can be used, in view of the operation of the habit and language familiarity, but also in favor of the use of Chinese panels
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 volume is very small;
The operation is simple, all operations are implemented in a control panel.
Putty Download Address: Http://soft.vpser.net/manage/putty/puttyfile_0.60cn.zip
Download comp
Linux Default login mode is the account and password login, if you change to use a key to log in will be relatively safe, but the key to landing a good and bad, want to login VPS must carry a key file, if modified the default root username also need to modify the corresponding corresponding relationship is more cumbersome.Okay, here's how to log in with a key.
Preparatory work:
mkdir. SSHTouch/root/.ssh/authorized_keys
1. Create a lock and a key
R
First, modify the SSH portVi/etc/ssh/sshd_configFind the #port 22 (line 13th), remove #, and modify to Port 3333Use the following command to reboot the SSH service, note: Log in later with the new port.Service sshd RestartSecond, the prohibition of root landingFirst add a new account 80st, you can customize:Useradd 80stSet password for Weidao account:passwd 80stStill modify the/etc/ssh/sshd_config file, line 39th: #PermitRootLogin Yes, remove the front # and change Yes to No, then restart the SS
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 Allsql/vps_all_db_$agobtimes.Tar. GZ #删除操作 forDbinch'/usr/bin/mysql--user="Root"--password="123456"-b-n-E'SHOW DATABASES'|Xargs` Do(/usr/bin/mysqldump--user="Root"--password="123456"${DB} | /bin/gzip-9-> allsql/${db}.sql.g
:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.Is you sure want to continue connecting (yes/no)? Yeswarning:permanently added ' github.com,192.30.253.112 ' (RSA) to the list of known hosts.Permission denied (PublicKey).---------------------------------------------------------------------------------------Change the rookie tutorial to start over and failChange a VPS Follow the rookie tutorial re-knock on the success.[Email protected]:~# Groupadd Git[email
Old left in a number of previous articles have been shared in CentOS or in the Debian environment to install LNMP and LLSMP tutorials, the old left with the personality guarantee is certainly feasible, because I was in the actual operation after the screenshot and write down the article. Can let the VPS beginners hands-on learning how to install the system on the Linux VPS and set up a website. Old left for
Vps builds pptp, and the service does not respond for half a day after it is started-General Linux technology-Linux technology and application information. The following is a detailed description. [I = s] This post was last edited by 2010cpu
Today, I want to build pptp using vps as usual, but at the end of the day I used the command # service pptpd start to start the pptp service, I always stayed
Starti
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.