Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the knowledge of linux when installing hadoop?

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Install hadoop when the knowledge about linux, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

1. Network configuration

Ifconfig View Network Interface Information

Ping-c 4 192.168.0.144 sends a specified number of network test packages

Hostname displays the current host name

Call the setting interface for setup

Service network restart restarts network services

Service iptables status View Firewall status

two。 Close SELinux

Permanently valid:

Change the SELINUX= "" in the / etc/selinux/config file to disabled, and then restart.

Effective immediately setenforce 0

3. Turn off the firewall

Permanent entry into force

Enable: chkconfig iptables on

Turn off: chkconfig iptables off

Effective immediately and expire after restart

Enable: service iptables start

Turn off: service iptables stop

4. Delete command

The command to delete a directory under Linux is "rm"

Several of our commonly used parameters are "- f-I-r-v"

-I ask for confirmation one by one before deletion.

-f even if the original file property is set to read-only and forced deletion, the system will not let us confirm one by one.

-r delete the directory and the following files. Note: if rm does not take this parameter, the directory cannot be deleted.

-v or-- verbose displays the result information after the instruction is executed.

5. The host is bound to ip

Edit: add one line to vi / etc/hosts

Authentication: ping-c 4 hostname

6. Extract the file

* .tar is decompressed with tar xvf

* .gz is decompressed with gzip-d or gunzip

* .tar.gz and * .tgz are decompressed with tar xzvf

* .bz2 is decompressed with bzip2-d or bunzip2

* .tar.bz2 is decompressed with tar xjf

* .Z decompress with uncompress

* .tar.Z is decompressed with tar xZf

* .rar is decompressed with unrar e

* .zip is decompressed with unzip

7. Modify the current host name

Effective immediately: hostname XXX modifies the current host name

Permanently valid: vi / etc/sysconfig/network

8. Set up ssh

Ssh-keygen-t rsa uses rsa algorithm to generate secret key

Cd .ssh enters the .ssh directory

Ls view the files in this directory: id_rsa id_rsa.pub

More id_rsa.pub View key content

Cp id_rsa.pub authorized_keys copy key

Ssh localhost login authentication

9. View and set the time

Clock-- show view hardware time

Clock-set--date= "05swap 09tick 15 23:25" to set the hardware time

Date View system time

Clock-hardware clock synchronization system clock for hctosys

Note: hc represents hardware time, sys represents system time

10. Error record

1.Q:Error,some other host already uses address

A: edit the file / etc/sysconfig/network-scripts/ifup-eth and comment out the following text:

If! Arping-Q-c 2-w ${ARPING_WAIT:-3}-Dmuri I ${REALDEVICE} ${IPADDR}; then

Net_log $"Error, some other host already uses address$ {IPADDR}."

Exit 1

Fi

Restart network services

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report