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
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
PrerequisitesBefore we get started, here is the Web tools need for this tutorial:
Google Chrome Browser
Apache installed on your VPS (cloud server)
A Domain name you own
Access to a email address at this domain, either:
[Email protected]
[Email protected]
[Email protected]
Startssl.com offers completely free verified (your users won ' t has to see those scary red screens saying "this site isn ' t
However, after VPS is involved, it is not just about backing up MySQL, but also about backing up some independent site data.If there is a reliable third-party Linux host or cloud storage like Amazon, it is much simpler, and Linux-Linux backup is very convenient.However, I want to run a backup every day or every week in my Windows 7 environment.The general idea is as follows: Connect to the VPS using plink.e
The new idea is whether a single IP address VPS host can be implemented-Linux Enterprise Application-Linux server application information. The following is a detailed description. It is understood that the current market VPS host. You need to configure multiple IP lines. However, the computer performance virtualized by VPS is not flattering. A lot of IP resources
First, shut down the system running on the VPS, enter the command: shutdown to shut down the system, enter the command: rebuild, and select the system to be installed. Select the release version as required. for example, if you prefer CentOS5.232mnibit, enter 3 and press enter to start installation. Usually needs a few...
First, shut down the system running on the VPS, and enter the command: shutdown
Shut
Hacker intrusion preliminary work: Collect server/VPS or virtual host information
Method 1:You can use webmaster tools to query the website domain name and obtain the IP address to find the virtual host or vps used. For example: http://ip.2cto.com/, enter the Domain Name of the website you want to query, you can see the IP address of this website, and the host of the company name. However, the disadvantage
About last week, because a netizen mentioned Indovirtue business has provided the Singapore engine room of the VPS host products, then the old left on the simple use of the official test IP address ping and MTR tracking routes to see the speed is still relatively good. In fact, indovirtue merchants have provided 2 machine room machines, one is not optimized ordinary line (Budget Singapore SSD VPS), one is o
HostUS merchants seem to have to "attempt" in the Chinese market, starting from providing SoftLayer Asian data centers earlier, because they are looking for new attraction after canceling the SL direct connection some time ago, for example, add KVM architecture scheme configuration, add Alipay payment, upgrade KVM configuration hard disk, and prepare to adjust the direct connections of the Hong Kong data center and add another data center from the current three data centers.In his blog
A new VPS, the first thing to do is probably to do a good job security.Here are some of the things I've done to make the CentOS 6 random:
Change root password
Ssh-key Login
Configure Iptable
Installing Fail2ban
1. Change the root passwordLogin to the VPS, type passwd to change the root password, and note that the input is not rendered as an asterisk.2. Login with Ssh-keyThe advanta
There are a lot of novice stationmaster, do not know how to bind their domain name after the VPS Building station, here on the Windows System VPs host using the IIS binding site domain name method, a brief introduction.Usually, we use IIS to build a station, there will be a hint, we need to enter the site host header, in fact, this is the place to bind our domain name, of course, if the beginning does not k
How can I configure multiple VPS for a single domain name? I have a domain name. now I want to place website files to different VPS based on different languages. zh.mydomain.com nbsp; ING to nbsp; vps1en.mydomain.com nbsp; ING to nbsp; vps2jp.mydomain.com nbsp; and nb single domain names, how to configure multiple VPS?
I have a domain name. now I want to pl
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.