rpm些许命令

rpm -e --nodeps pcre 删除已安装软件
. 不能启动二进制程序

hdfs dfs -D dfs.blocksize=1048576 -put text.txt
put: `.': No such file or directory

卸载jdk
1.rpm -qa|grep jdk
2.rpm -e --nodeps jdk-1.6.0_16-fcs

关闭防火墙
service iptables stop 临时关闭
chkconfig iptables off

rpm -qa | grep ssh 查询软件是否存在

netstat -tunlp | grep 22 查看所占端口

NFS 就是 Network FileSystem 的缩写,最早之前是由sun 这家公司所发展出来的。
它最大的功能就是可以透过网络,让不同的机器、不同的操作系统、可以彼此分享
个别的档案 (share files)。所以,你也可以简单的将他看做是一个文件服务器
(file server) 呢!这个 NFS 服务器可以让你的 PC 来将网络远程的 NFS 服务器
分享的目录,挂载到本地端的机器当中, 在本地端的机器看起来,那个远程主机的
目录就好像是自己的一个磁盘分区槽一样 (partition)!使用上面相当的便利.

内部命令查看 enable

mapreduce设计模式

备份原来的yum源
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
设置aliyun的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
添加EPEL源
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
清理缓存并生成新的缓存
yum clean all
yum makecache

原文地址:https://www.cnblogs.com/huiandong/p/9435036.html