Linux Remote Control and IP Address Configuration

Source: Internet
Author: User
Linux Remote Control and IP Address Configuration-Linux Enterprise Application-Linux server application information. See the following for details. Today, I went to the China Unicom data center to learn how to configure the php + apache + mysql environment in linux. I learned how to install the official instal.txt file.

Main subjects for returning home: Remote Control and IP Address Configuration.

Ssh (putty, secure crt) Remote Management in linux

Remote Control

Activate the ssh port and IP address

During linux installation, the built-in ssh is installed, but it cannot be used directly. You also need to activate it:

Activate ssh:
/Etc/rc. d/init. d/sshd start
Service sshd start
Netstat-tl

After activation, You have to reactivate each time you start the system.

Ssh can be automatically started when linux is started:
Add/usr/sbin/sshd &
(/Usr/sbin/sshd is started by ssh)

In this way, you do not need to activate it again after each boot, and you can directly remotely control it.

Configure the IP Address:
/Etc/sysconfig/network-scripts/ifcfg-eth0

Content:
# Cat ifcfg-eth0 [root @ localhost network-scripts] #
DEVICE = eth0
BOOTPROTO = none
ONBOOT = yes
TYPE = Ethernet
NETMASK = 255.255.255.0
IPADDR = 192.168.0.2
USERCTL = no
PEERDNS = yes
GATEWAY = 192.168.0.1

After Configuration:
/Etc/init. d/network reload or service network

View Nic information: route-n View physical NIC: mii-tool restart eth0: ifup eth0 view eth0 letter

Interest: ethtool eth0 add IP Address: ifconfig eth0 IP netmask subnet mask broadcast address.

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.