Ubuntu12.0464bit latest environment installation tutorial

Source: Internet
Author: User
Recently, I have suffered various hardships when setting up the Ubuntu12.0464bit environment in the company. I have sorted it out here and posted it to help you. If there are any deficiencies in this article, please remind me to correct them. I tried to install the latest package after being a super mouse. After many tests, I finally installed Ubuntu12.0464bit successfully. Now I installed it on a local Virtual Machine and installed it successfully, now we use the linode Virtual Machine for testing. After the installation is complete, record the steps as follows.

Recently, I have suffered various hardships when setting up the 64-bit Ubuntu 12.04 environment in our company. I have sorted it out here and posted it to help you. If there are any deficiencies in this article, please remind me to correct them.

I tried to install the latest package. After many tests, I finally installed Ubuntu 12.04 64bit. Now I installed it on a local virtual machine, now we use the linode Virtual Machine for testing. After the installation is complete, record the steps below. If you do not use an automatic installation script such as Lnmp, if you do not understand the installation details, you can do it yourself, understand the installation process of the required components, and gain a deeper understanding of each part of the system.

Operating system version: Ubuntu 12.04 64bit

Use the root account to log on to the system and create related directories.

Download path

/Home/ubuntu/down

Installation Directory

/Usr/local/php # install php-5.4.3

/Usr/local/mysql # install mysql5.5.25

/Usr/local/openresty # ngx_openresty-1.0.15.9

/Usr/local/redis #2.4.14

Storage

/Storage/redis

Configuration File Path:

Php configuration

/Usr/local/php/etc/php. ini

/Usr/local/php/etc/php/php-fpm.ini

Nginx Configuration

/Usr/local/openresty/nginx/conf

The code path for project deployment is under the entire directory of the sub-project. There are actually a lot of mixed code here. How can this be better organized?

/Source/

/Source/restybuddy

After installing the system, set the root permission

Set root Account

Sudo passwd root # Set the root password

Su-root # Switch to root

Replace the nearest source of the server

Cp/etc/apt/sources. list/etc/apt/sources. list. bak

Vim/etc/apt/sources. list

Check which country you belong to and replace the fastest source. This will make updates faster.

Update Server time (different time zones can be changed by yourself)

Rm-rf/etc/localtime

Ln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime

Modify system time

Apt-get install-y ntpdate

Ntpdate-u pool.ntp.org

Date

Upgrade System Components

Apt-get update

Apt-get autoremove-y

Apt-get-fy install

Apt-get install-y build-essential gcc g ++ make

For packages in build-essential gcc g ++ make automake autoconf re2c wget cron bzip2 libzip-dev libc6-dev file rcconf flex vim nano bison m4 gawk less make cpp binutils diffutils unzip tar bzip2 libbz2-dev unrar p7zip libncurses5-dev connector libncurses5-dev libncurses5-dev libtool libevent-dev libpcre3 libpcre3-dev connector libssl-dev zlibc openssl libsasl2-dev libxml2 libxml2-dev libltdl3-dev libltdl-dev libmcrypt-dev libmysqlclient15-dev zlib1g zlib1g-dev libbz2-1.0 libglib2.0-0 libglib2.0-dev libpng3 runtime libbz2-dev lib120062 libjpeg62-dev libjpeg-dev libpng-dev libpng12-0 libpng12-dev curl libcurl3 libmhash2 libmhash-dev libpq-dev libpq5 gettext libncurses5-dev libcurl4-gnutls-dev libjpeg-dev libpng12-dev libxml2-dev zlib1g-dev libssl-libdev curl3 libfreetype6-dev libcurl4-openssl-dev mcrypt libcap- dev;

Do apt-get install-y $ packages-force-yes; apt-get-fy install; apt-get-y autoremove; done

Install Language Pack

Apt-get install language-pack-zh-hans language-pack-zh-hant

The server supports Chinese characters. If the Code contains Chinese characters, you can set it or not.

Export LC_ALL = "zh_CN.UTF-8 ″

Install vitualbox tools on a virtual machine

Now we need to go to the client operating system, my ubuntu, and run a command line console to mount the virtual Optical Drive.

Mkdir/mnt/cdrom // create the cdrom directory

Mount/dev/cdrom/mnt/cdrom // mount cdrom

Enter cdrom and run VBoxLinuxAdditions. run (Note: if the client is windows, run vboxlinuxadditions.exe ):

Cd/mnt/cdrom

Sh./VBoxLinuxAdditions. run

Related Article

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.