Ubuntu 14.04 Server installation and software configuration

Source: Internet
Author: User
Tags locale

1, install the operating system, configure the root account, through sudo to set the root password if you use Ubuntu server 14.04, the root requires additional configuration

1. Turn on root telnet permission

Modify Permitrootlogin Without-password to permitrootlogin Yes

2. Restart the SSH service

2. Update Sources.list, then apt-get update

Vim/etc/apt/sources.list
Deb http://mirrors.163.com/ubuntu/trusty main restricted universe multiverseDeb http://mirrors.163.com/ubuntu/trusty-security main restricted universe multiverseDeb http://mirrors.163.com/ubuntu/trusty-updates main restricted universe multiverseDeb http://mirrors.163.com/ubuntu/trusty-proposed main restricted universe multiverseDeb http://mirrors.163.com/ubuntu/trusty-backports main restricted universe multiverseDEB-SRC http://mirrors.163.com/ubuntu/trusty main restricted universe multiverseDEB-SRC http://mirrors.163.com/ubuntu/trusty-security main restricted universe multiverseDEB-SRC http://mirrors.163.com/ubuntu/trusty-updates main restricted universe multiverseDEB-SRC http://mirrors.163.com/ubuntu/trusty-proposed main restricted universe multiverseDEB-SRC http://mirrors.163.com/ubuntu/trusty-backports main restricted universe multiverseDeb http://mirrors.sohu.com/ubuntu/trusty main restricted universe multiverseDeb http://mirrors.sohu.com/ubuntu/trusty-security main restricted universe multiverseDeb http://mirrors.sohu.com/ubuntu/trusty-updates main restricted universe multiverseDeb http://mirrors.sohu.com/ubuntu/trusty-proposed main restricted universe multiverseDeb http://mirrors.sohu.com/ubuntu/trusty-backports main restricted universe multiverseDEB-SRC http://mirrors.sohu.com/ubuntu/trusty main restricted universe multiverseDEB-SRC http://mirrors.sohu.com/ubuntu/trusty-security main restricted universe multiverseDEB-SRC http://mirrors.sohu.com/ubuntu/trusty-updates main restricted universe multiverseDEB-SRC http://mirrors.sohu.com/ubuntu/trusty-proposed main restricted universe multiverseDEB-SRC http://mirrors.sohu.com/ubuntu/trusty-backports main restricted universe multiverse
apt-Get

3, through the locale-a, check the Chinese bag problem, (Specific reference: English Ubuntu installation Chinese Package (locale) method;), and then, in the/root/.profile add: Export LC_ALL=ZH_CN. UTF-8 (Specific reference: Adjust changes to Ubuntu time zone, time, locale).

Vim/root/.profile
Export LC_ALL=ZH_CN. utf-8

Enter the following command to install:

Then re-open the terminal, you can find the Chinese locale has been installed, warning no longer appear.

Of course, you can also perform:

Rebuild the locale.

Ubuntu memory Problem: Adjustment parameters:/etc/sysctl.conf "for 4G memory configuration, Old cypress optimization"

 the  +  +  307200

4. Install related software
Installing OPENJDK

sudo apt-get install openjdk-7-jdk

Install MySQL

sudo apt-get Install Mysql-server

Installing LIBCV

sudo apt-get install LIBCV2. 4

Installing TOMCAT7

sudo apt-get install TOMCAT7  tomcat7-admin

Installing GCC

apt-get  install  build-essential

Installing libstdc++5

sudo apt-get install libstdc++5

Installing Libxv-dev

apt-get Install Libxv-dev

Installing Libcurl (httpclient)

./configure--prefix=/usr/local/curl    ;   Make  ;   

5. Configuration of software and environment parameters
Environment variables:

Export pkg_config_path=/usr/local/lib/pkgconfig: $PKG _config_path export Ld_library_path= $LD _library_path:/usr/local/lib:/opt/xdt/videocheck/libs/dh:/opt/xdt/videocheck/libs/HK Export Java_opts="-server-xms512m-xmx1024m-xx:permsize=600m-xx:maxpermsize=600m"Export Pkg_config_path=/usr/local/lib/pkgconfig: $PKG _config_path export Ld_library_path= $LD _library_path:/usr/local/lib:/opt/xdt/videocheck/libs/dh:/opt/xdt/videocheck/libs/HK Export Lc_all=zh_cn. utf-8Export Java_opts="-server-xms512m-xmx1024m-xx:permsize=600m-xx:maxpermsize=600m" 

6. Optimize TOMCAT
Installing the Authbind tool: Apt-get Install Authbind

Modify the Tomcat configuration file:/etc/default/tomcat7
/ETC/DEFAULT/TOMCAT7, Modified: Authbind=yes

Open 80 Ports:
Touch/etc/authbind/byport/80
chmod 0755/etc/authbind/byport/80
Chown tomcat7:tomcat7/etc/authbind/byport/80

7. mysql database (stored procedure and parameter configuration)
To turn on the MySQL event stats feature:
sudo vim/etc/mysql/my.cnf
Add the following content:

--Check whether the timer is turned on
SHOW VARIABLES like ' Event_scheduler ';
--Open Timer 0:off 1:on
SET GLOBAL event_scheduler = 1;

Event_scheduler = 1
Bind-address = 0.0.0.0

[Client]
Default-character-set=utf8
[Mysqld]
Character_set_server=utf8
[MySQL]
Default-character-set=utf8

GRANT all privileges on * * to ' root ' @ '% ' identified by ' system ' with GRANT OPTION;
Flush privileges;

La La la

Ubuntu 14.04 Server installation and software configuration

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.