1. Open network file
[ root@yxy ~]# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=yxy (the host name you want to modify)
2. Modify the system host table file
[ root@yxy ~]# vi /etc/hosts
127.0.0.1 localhostlocalhost.localdomain localhost4 localhost4.localdomain4
::1 localhostlocalhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 yxy localhost.localdomain localhost4localhost4.localdomain4 (add this line)
3. Restart the system
[ root@yxy ~]# reboot
Broadcast message from root@yxy
( /dev/pts/0) at 0:20...
The system is going down for reboot NOW!
[ root@yxy ~]#
Set up password-free login:
[ root@yxy ~]# ssh-keygen (press 3 enter)
[ root@yxy ~]# ssh-copy-id yxy (host name) 1032763126 (password)
If -bash: ssh-copy-id: command not found appears
Install with command first
[ root@yxy ~]# yum -y install openssh-clients
Use after installation
[ root@yxy ~]# ssh-copy-id yxy 1032763126
Test whether the password-free login is effective:
[ root@yxy ~]# ssh yxy
· Hadoop is an open source distributed system infrastructure developed by the Apache Foundation. It is developed using Java and is a software platform for processing large-scale data.
· Hadoop can scale from a single node to thousands of nodes. Users can develop distributed programs without understanding the underlying details of distributed. Make full use of the power of clusters for high-speed computing and storage.
https://tomcat.apache.org/ can download tomcat.tar.gz
Put jdk.gz under /root
Unzip the installation package to /root/apps
. /java –version
Modify the environment variable vi /etc/profile, add two lines at the end
Reload environment variables #source/etc/profile
Verify that the jdk is successfully configured: #java –version
Recommended Posts