Java development environment to build--centos configuration

Source: Internet
Author: User
Tags ssh port

  1. Normal user added to Sudoers
    1. U Switch to root
    2. Visudo into the editor, locate root all= (all), and add the following
      MyUserName all= (All) all
  2. Configure the Network
    sudo vi/etc/sysconfig/network-scripts/ifcfg-eth0
    Modify
    Onboot=yes
    Bootproto=dhcp
    Then/etc/init.d/network restart or ifconfig eth0 192.168.1.100/24 up to make the configuration file effective

    View network conditions: IP addr
    Inquiry Public network Ip:curl ifconfig.me
    Query Internet gateway: Tracepath cnblogs.com

    If you want to use ifconfig, you need yum install net-tools
  3. accessing Windows shared Folders
    Yum Install cifs-utils.x86_64 (reference: http://blog.csdn.net/yasi_xi/article/details/38356247)
    Mount-t cifs//192.168.1.103/share/yasi/mnt/win-o username= "user", password= "pass"
    (Don't remember if yum install samba-client is required)
    (originally intended to pass files in this way, installing the sun JDK requires downloading the installation package, browsing the web, finding the installation package, downloading the installation package, or Windows convenient.)
    Later found a better way to pass the file: SSH)
  4. SSH upload file
    Note: My centos here is a virtual machine, the network is set to NAT, so I need to configure the port mapping (I am the SSH Port 22 mapped to the native 9922)
    1. SSH connection to CentOS
      ssh-p 9922 [email protected] Remote host IP or domain name
    2. viewing remote host Files
      SSH [email protected] Remote host IP or domain-p9922 command ls "/"
    3. Download files for remote hosts
      scp-p9922 [email protected]:~/hello.txt./
      Download the entire folder
      scp-p9922 [email protected]:~/dir/*./targetdir/
    4. Uploading files to a remote host
      scp-p9922 hello.txt [Email protected]:~
      scp-p9922 hello.txt [Email protected]:/home/tom
  5. FileZilla file, exempt from command line trouble
  6. Installing the JDK
    1. Go to Oracle website to download RPM packages
    2. Uploading files to a remote host
    3. Yum Install jdk-xxx.rpm
  7. Installing Tomcat reference: http://blog.csdn.net/fwj380891124/article/details/41458727

Java development environment to build--centos configuration

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.