Getting started with CentOS

Source: Internet
Author: User

Getting started with CentOS

Getting started with CentOS

1. Configure the network and Firewall

Setup command

2. View Networks

Practical application of CentOS ifconfig, route, and ip commands

Ifconfig

Restart the network

/Ect/init. d/network restart

Or ifup ethx (, 2), etc.

View the network configuration file

Cat (vi)/etc/sysconfig/network-script/ifcfg-eth0 (1, 2 );

If ONBOOT = no, change to yes. Otherwise, you must manually enable the NIC again after the instance is restarted.

3. Switch the image or text mode

Modify the/etc/inittab file with a line id: 3: initdefault, which indicates that
Run level 3 (multi-user text interface), change it to id: 5: initdefault, Which is enabled by default
Running Level 5 (graphic interface for multiple users ).

4. view the system version

Check whether the system is X86 or X64: uname-m

X86_64

View the kernel and System Version: uname-r

2.6.32-504. el6.x86 _ 64

View the kernel and system version details: uanme-

Linux model 2.6.32-504. el6.x86 _ 64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

View the system version number: cat/etc/RedHat-release. The system type is listed, for example, CentOS release 6.6 (Final)

V. ssh connection tools

SecureCRT background color change:

Option-session option-terminal-simulation-Right Terminal select Linux (black and white) or other personal favorite

Check whether SSH is enabled on the server

Netstat-lntup | grep 22

Detailed graphic tutorial on SecureCRT Configuration

On SecureCRT, how does one use the public key to log on to the Linux server?

SecureCRT details: click here
SecureCRT: click here

6. view the installed grouplist

View the installed: yum grouplist

Update all installed versions: yum upgrade is similar to Windows patching and software upgrade.

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.