1. Installing VMware
2, import CentOS3, the process may be a problem (set your computer to support virtual technology, computer restart press F1 to set up and then F10 Save exit) 4, the system default username/password for root/1234565, set up virtual machine network, the core point to remember, The system on the virtual machine can connect to the network (intranet or extranet), there is an IP address, the outside system (WIN7) can be connected remotely. Select Nat mode. [[email protected] Desktop] #[username @ hostname Directory Name] #: Indicates that the current user belongs to the root user, the Super Administrator user (the user is used when configuring the system) $ : Indicates that the user belongs to the normal user ifconfig Ipconfig6, obtains the IP address automatically--can connect the Internet (ping www.baidu.com Stop the command ctrl+c ) eth0 is the network card name Auto Get IP address changed to manually set the IP address, the virtual machine cannot connect to the Internet (IPv4 settings>manual>address : 192.168.52.111 netmask:255.255.255.0 gateway:192.168.52.1) 7, # Useradd Wanglei Create a regular user # passwd wanglei There is a password for each user under Linnux under Linux systems, by default, Create a user at the same time will give the user in the system directory to create a user's own directory, which is called the user home directory rule:/home/username, the user home directory can be used to represent # Su-wanglei Switch to normal user (note the space on both sides of the bar), do not need to enter the password # su by the normal user switch to the Super user needs to enter the password 123456 # pwd Show current User directory # hostname View Host name   # hostname Hadoop-senior Set host name (note: This way to set the host name, only in the current use of no problem, but the host name will change after restarting the machine) why??? Cause: In a Linux system, all information is from the file. The above method sets the hostname and does not modify the file, so the system restarts, or read the original configuration file, so the host name restored to the original. Permanent settings host name # cat/etc/sysconfig/network read file contents on Linux system # vi /etc/sysconfig/network Edit File To start the modification you need to press the I key on the keyboard, exit edit mode Press ESC, and then SHIFT+:WQ save Modify host name (takes effect after restarting the machine), do not save shift+:q! reboot system # halt Shutdown # reboot Restart # init 6 Restart------------------------------------------------------------------Remote Connection tool-----------------------------------Four remote connection Tools 1 , securecrt,xshell Remote command line 2, xftp 5 Remote FTP (transfer file) 3, notepad++ (need to install NPP FTP plugin) remote editing tools, more simple than VI editing tools ULTRAEDIT4, Xmanager4 remote interface Tools Remote connection Four elements * IP address * user name * & nbsp Password * Protocol ssh hostname and IP address mapping, configuration files: Linux:/etc/hosts &NB Sp win7:c:\windows\system32\drivers\etc\hosts win7 after the hosts file has been modified, Xshell can be successfully connected via IP or configured hostnameAfter the Linux modified hosts, ping hostname can also ping the common host name is more convenient, good remember, after the IP changed only need to modify the mapping in the file, rather than modify the other configuration, the role is very large hadoop-senior192.168.68.111
Linux Fundamentals 02