Install VPS and LNMP in Ubuntu

Source: Internet
Author: User
Tags vps vps server
In Linux, VPS (virtual servers) have become essential products for many server space operators, so that you can maximize the benefits with minimal investment. VPS is used to install several virtual servers on one server. Each virtual server can have an independent IP address, and the environment does not interfere with each other. The security aspect is higher than that of the virtual host, unless someone can obtain the permissions of the host server from the Virtual Server Overflow. For Ubuntu enthusiasts, if you install vps and deploy different LNMP environments, you can easily develop, debug, optimize, and other applications.

In Linux, VPS (virtual servers) have become essential products for many server space operators, so that you can maximize the benefits with minimal investment.
VPS is used to install several virtual servers on one server. Each virtual server can have an independent IP address, and the environment does not interfere with each other. The security aspect is higher than that of the virtual host, unless someone can obtain the permissions of the host server from the Virtual Server Overflow. For Ubuntu enthusiasts, if you install vps and deploy different LNMP environments, you can easily develop, debug, optimize, and other applications.

So how to install a vps server in ubuntu? And see the following :)

After ubuntu is installed, first change the password:

Passwd

Change the password of the root account as needed:

Sudo passwd root

Update the system software source, open the/etc/apt/sources. list file, and modify it to the following:

Deb http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/ karmic-proposed main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
Deb-src http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
The deb-src http://archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
Deb-src http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
Deb-src http://archive.ubuntu.com/ubuntu/ karmic-proposed main restricted universe multiverse
Deb-src Co., http://archive.ubuntu.com/ubuntu/. karmic-backports main restricted universe multiverse

There is also a problem with locale, which may cause garbled characters in the SSH terminal. Debian can be set with dpkg-reconfigure locales. This is not the case with Ubuntu. You can first check the SUPPORTED locale settings in the/usr/share/i18n/SUPPORTED file and then use the command to activate it.

Locale-gen en_US.UTF-8
Locale-gen fr_FR
Locale-gen zh_CN.UTF-8
Locale-gen zh_CN
Locale-gen zh_CN.GBK
Locale-gen zh_CN.GB18030

Then set the system's default encoding language so that there will be no garbled characters under SSH. Open the/etc/default/locale file, enter the following content, and then restart the system.

LANG = "zh_CN.UTF-8"
LANGUAGE = "zh_CN: zh"

Because the system's pygrub has been replaced with pvgrub, we can upgrade the system kernel according to our preferences... Then we can run www.linuxidc.com to clear the kernel...

Apt-get update
Apt-get upgrade
Apt-get dist-upgrade

Now we need to confirm the system kernel, and then erase the excess system kernel...

Uname-a # confirm the next version. Do not delete the currently used version.
Dpkg -- get-selections | grep linux # list of system kernels

Then, change/boot/grub/menu. lst and modify the version. Of course, restart and delete the system kernel.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.