Next let's take a look at how to add and delete swap partitions in linux vps. I will use the Xen VPS to create swap partitions.
Root permission is required for all operations
1. Create a swap PartitionFirst, use fdisk-l to view hard disk partitions.
The Code is as follows:
Copy code
Fdisk-lDefaultDisk/dev/sda: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits
1. Build a VPN
First, go to the configuration panel of VPS.
The system is CentOS 5 32bit. Reload the system to complete the entire process.
Use Xshell 4 to connect to the remote host and change the initial password.
Directly use the PPTPD one-click installation package.
1wget http://www.diahosting.com/dload/pptpd.sh sh pptpd.shWait a few minutes. The following image is displayed after the installation is complete.The bottom line is the VPN account
First confirm uninstalling PPTPD and iptables#apt-get Remove pptpdApt-get Autoremove pptpdApt-get Purge pptpd#apt-get Remove iptables*Apt-get Autoremove iptables*Apt-get Purge iptables*Next Install pptpdApt-get Install pptpdVi/etc/pptpd.conf Fix the following two lines: where VPS_IP is the public IP of your VPS, can be viewed through the ifconfig command, 10.100.0.2-10 This is the IP segment assigned to the VPN user. Localip vps_ip Remoteip 10.100.0.2
LINUX VPS does not have root privileges is very difficult to do, and password landing is also convenient.The Linux version of my AWS VPs is Ubuntu 13.10, first signed in with an AWS certificate verified account,1. Change the root passwordsudo passwd root2, sudo chmod 777/etc/ssh/sshd_configUse up and change the authority back.3, Vi/etc/ssh/sshd_configPermitrootloginThis line should readPermitrootlogin YesPa
Many times do not know that they bought the VPS is the kind of virtualization technology, afraid to the business of the flicker, below to introduce how simple to judge their own VPS virtualization technology. 1. Make sure that the Ll/proc/ps:/proc directory has a Xen directory below it through the relevant directory or file on the system.The OpenVZ will have a vz directory. This method can only be seen with
First, the host name and IP should be set correctly, and the external network can be connected normally.
1, enter the following command to get root permissions:
sudo su
2, install MySQL 5, enter the following command:
Aptitude Install Mysql-server Mysql-client
The MySQL database administrator password is required to be set during installation, and two new passwords are entered continuously.
3. Install Apache 2
Aptitude Install Apache2
After the installation is complete, enter the IP address of t
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
Copy Code
#CentOS Yum Install lftp
#Debian Apt-get Install Lftp
Second, create a backup directory
The code is as follows
Copy Code
/home/backup/
My VPS Situation:
Operating system –centos 7 64-bitWeb Server Software –apacheGhost1 is based on Node.js, which itself has a Web server and does not need Apache.
Install Ghost
Main reference Ghost official Help 2.Download Ghost$ curl-l Https://ghost.org/zip/ghost-latest.zip-o ghost.zipDecompression Ghost$ unzip-uo ghost.zip-d GhostInstall Ghost$ CD Ghost$ NPM Install--productionStart Ghost$ npm Start--productionNow, you can access the Ghost blog vi
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, SSH login vps, modify configuration file.Vi/etc/ssh/sshd_configLocate #port 22, remove the previous #, and modify it to Port 1380 (this number is used as much as 4 digits to avoid being occupied), and the
Overview: configure the mysql database on the linuxvps host. because the InnoDB engine is started using the database installed in yum by default, and its etcmycnf configuration is not very suitable for our vps host, this article explains in detail how to configure the mysql configuration file suitable for your vps host. objective:
Overview:Configure the mysql database on the linux
First, SOLUSVM set the Simplified Chinese language
If we buy a host of overseas VPS products, if it happened to use the SOLUSVM panel, then we see the panel after the English interface, we are based on common operating habits, you can switch Simplified Chinese, can also be directly in English.
Here to see whether the business has Simplified Chinese package, if not, we still use English, because see this article will not f
Several Methods for installing kali linux on VPS, vpskali
During penetration testing, we often need to bounce a shell back. You can use empire, MSF, or other tools to avoid public IP address issues. At this time, we need a VPS for further penetration testing.
There are many ways to establish channel connections, such as NAT ing and ssh tunnel. We will not discuss them here.
Establishing a channel is highly
(a) the website environment constructs
First of all, is the website environment Choice, at present the more popular has LNMP, lamp, WDCP, AMH, Lum and so on, here I choose is the military elder brother's Lnmp newest version (www.lnmp.org).
1, the VPS system reload. (If it is a newly opened VPS or has been reset, you can ignore this step.) )
First into the KIWIVM backstage, stop the
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, the setting of the Web server system started automatically run away.
(If you can not log in to the system, and restart after the overload caused by the boot
Old left at the beginning of the month Ramnode New Year's promotional campaign to purchase the one-month Ramnode KVM 512MB program and then also wrote a KVM program evaluation article (here), personally think Ramnode VPS host stability is still relatively good, and if there are individual small blog to choose an annual payment scheme is relatively high cost. One of the KVM architecture VPS schemes comes wit
A few days wrote two use VPS security Settings blog, in fact, regardless of how we set up security, timely backup of the VPS data is the most important. Because the VPS and host different, host may be a lot of time the service provider for our backup, VPS operations and security most need our own responsibility, even i
Many times, in some cases, due to the increasing number of Web site data, resulting in sometimes, our website access speed has become very slow, a lot of people usually think that the site is a problem, or poisoning ah, is caused by the attack, in fact, a lot of time, Just because we have not been able to optimize our VPS host on the MySQL database caused by. This article explains in detail how to configure the MySQL configuration file for your
VPS Host Whether it is a Linux VPS or Windows VPS Theoretically can support both ASP and PHP programs, a lot of people have just started to use VPS host, so, will encounter a lot of problems at many times, here to share with you some of the more common web errors, and solutions.ASP or PHP Web extensions are improperly
Many Webmasters have misunderstandings about restricted traffic and unlimited VPs. This article will introduce some basic concepts and use some practical cases to explain the differences between restricted traffic and unlimited traffic.
When purchasing a server in the U.S., there are two options:
1. unlimited bandwidth and traffic restriction:
That is, Mb is exclusive and the traffic is limited to GB. If the traffic exceeds 2000 GB, another traf
In CentOS, determine whether your VPS is OpenVZ or Xen.
Generally, VPS Virtualization Technologies include Xen, OpenVZ, Xen HVM, and VMware. How can we determine which virtualization technology your VPS is based on?
1. Run the ls/proc/command. Generally, the Xen VPS and/proc Directory have the xen directory, and open
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.