linux命令

176 阅读1分钟
  • tail -n -1 1.txt

  • tail -c -2 2.txt

  • echo "1" >2

  • 问题:老是关闭防火墙太麻烦,所以选择彻底关闭防火墙,发现每次都记不住命令!

下面是red hat/CentOs7关闭防火墙的命令!

1:查看防火状态

systemctl status firewalld

service iptables status

2:暂时关闭防火墙

systemctl stop firewalld

service iptables stop

3:永久关闭防火墙

systemctl disable firewalld

chkconfig iptables off

4:重启防火墙

systemctl enable firewalld

service iptables restart

5:永久关闭后重启

//暂时还没有试过

chkconfig iptables on

* blog.itpub.net/725820/view… 搭建ftp

service vsftpd start

service vsftpd start

linux ftp服务器匿名登录不能上传解决方法

blog.csdn.net/msq19895070…

blog.csdn.net/xin_y/artic… 关闭selinux

blog.csdn.net/qq_39004632… 设置参数

安装hadoop准备环境

1、添加超级管理员hadoop my.oschina.net/wxpi/blog/1…

  • /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=hadoop1

  • /etc/hosts hadoop01 192.168.1.4 安装jdk mv a etc/soft find / -type d -name 'ftp' tar -zvxf

搭建hadoop环境 www.jianshu.com/p/ec58e587d…

<configuration>
<property>
        <name>fs.defaultFS</name>
        <value>hdfs://master:9000/</value>
        <description>默认的HDFS端口,用于NameNode与DataNode之间到的通讯,IP为NameNode的地址</description>
    </property>


<property>
 <name>hadoop.tmp.dir</name>
 <value>/root/BigData/hadoop-3.0.0/tmp</value>
  <description>存放hadoop文件系统依赖的基本配置</description>
 </property>
</configuration>