Linux Configure for Java Web develop

Source: Internet
Author: User

Installing Ubuntu requires configuration files and installs many software, because you do not have a deep understanding of Ubuntu, some problems will reinstall the system. A few more times after summing up some of the commonly used configurations and trampled pits:

Partitioning scheme
/boot     boot分区,引导系统程序所需要的文件,安装多个操作系统时用来引导/         根分区/usr      系统用户工具和程序/home     用户目录swap分区   大小约等于内存的大小,相当于win下的虚拟内存
Change root privilege password

The newly installed Ubuntu root privilege password needs to be activated

sudo passwd
Update the software source

Setting –> software and updating –> changing the server, canceling the 下载源码 option saves a lot of time.

sudosudo apt-get upgrade
Remove unnecessary software

Amazon and other packages in Ubuntu software are useless to us, new deleted in the software

Install Sogou Pinyin

Check if it is installed fcitx ,bssh

sudo-l-l|grep libssh

Go to Sogou Enter the Judge network download installation, restart after the effective

Configure Java
    • Download JDK
    • Configuring Environment variables
sudo vim /etc/profileaddexport JAVA_HOME=your jdk direxport CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/libexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATHEXITsource /etc/profile
    • The difference between/etc/environment and/etc/profile
      /etc/environmentsetting for the entire system, and for users in the/home /etc/profile directory
      If the configuration of the above two files is the same, the configuration in/etc/profile is displayed in the user's desktop environment
Install Git

GIT official website
Git help

$ git help <verb>$ git <verb> --help$ man git-<verb>e.g.git help config
Ssh

SSH with git and github-related configurations
Public and private keys

ssh-keygen-t-C"your email"cd ~/.ssh将id_rsa.-T [email protected].com
Install MySQL

Ubuntu comes with a package version and a community-maintained version of the difference, the general official Community maintenance version is faster than the Ubuntu team version update, so we install the Community version

    1. Download. deb file, note Select version
    2. Adding the MySQL APT Repository
      1. sudo dpkg -i mysql-apt-config_w.x.y-zubuntu14.04_all.deb
      2. During the installation of the package, you'll be asked to choose the versions of the MySQL server and other components (for example, the MySQL Workbench) that's want to install. If you is not sure which version to choose, don't change the default options selected for you. You can also choose None if you don't want a particular component to be installed. After making the choices for all components, choose Apply to finish the configuration and installation of the release pack Age.
      3. The selected package can be reconfiguredsudo dpkg-reconfigure mysql-apt-config
    3. sudo apt-get update(Update software list) point I view updated those packages
    4. sudo apt-get install package-name
    5. Installationsudo apt-get install mysql-server
Starting and stopping the MySQL Server

shell> sudo service mysql status

Stop the MySQL server with the following command:
shell> sudo service mysql stop

To restart the MySQL server, use the following command:
shell> sudo service mysql start

Reference

    • MySQL Official Installation Guide

The above is the experience of installing Linux summary multiple times.

Linux Configure for Java Web develop

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.