This mission seems to be easier--we can just decompression Tomcat to our virtural machine and deploy ssh to login without password.Login ssh without password is very critical,although distributed Systems can also run without it.But,as we know,distributed system are based on many servers,isn't it inconvenient for you if every time you try to connect the server's ssh you should enter your password?So,that's the importance of it.

  First of all, we should download Tomcat to our system(As I have said before,download the file whose suffix name is .tar.gz):

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第1张

Also,we should decompression the file :

 

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第2张

Succeed

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第3张

Next,we should start our Tomcat to observe it can use or not.The starting program of Tomcat is in the folder named bin,whose name is startup.sh

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第4张

now we execute the starting program:

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第5张

It can be seen on the screen that Tomcat started successfully,now we will start the browser to prove it,definitely,we will unable to access the website:192.168.109.151:8080(your ip + :8080).Why,this is because of the firewall.We must to stop the firewall:

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第6张

You can connect to the website again and yiou will find we can browse it.

  The second step is to download ssh:there are two programs we should download ---openssh.client and openssh.server,we can just use the instruction "yum" to download it rather than DIY:

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第7张

 

After this step,we'll try if you can try to connect your own system by the instruction:

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第8张

You'll find you should enter your password even if you try to connect your own system!It's so inconvenient for us to enter it!

Then we will change it's authorization file to accomplish login it without password:

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第9张

Then we just press "enter" to the end

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第10张

Next we should find a file named file .ssh,which is hidden.We should enter this file and we'll find three text,the thing we should do is to change the name of the text named id_isa.pub into authorized_keys

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第11张

Then we can try to use our system to connect our own system again,you 'll find you can connect to your system without password!

Learning Experience of Big Data: Deploying Tomcat 8.0 and connect ssh without password Hadoop 第12张
 

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄