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.