上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 53 下一页
摘要: 安装完centos7后,默认没有启用sudo,首先应该是对sudo进行设置。sudo的作用就是使当前非root用户在使用没有权限的命令 时,直接在命令前加入sudo,在输入自己当前用户的密码就可以完成root用户的功能,而不必在每次使用su -来回切换用户了。sudo的配置文件位于/etc/sudo 阅读全文
posted @ 2016-03-14 17:44 圆旭 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 前提配置:使用root登录修改配置文件:/etc/ssh/sshd_config,将其中三行的注释去掉,如下: 然后重启ssh服务:service sshd restart。最后退出root,以下所有操作都在hadoop用户下进行。 主机信息如下: 如上图,当前登录用户为hadoop,主机名为sla 阅读全文
posted @ 2016-03-14 17:26 圆旭 阅读(754) 评论(0) 推荐(0) 编辑
摘要: centos7 minimal版默认安装好后没有获取ip地址,需要手动配置。方法如下:1.输入“ip addr”并按回车键确定,发现无法获取IP(CentOS 7默认没有ifconfig命令),记录下网卡名称(本例中为ens33)。 2.输入“cd /etc/sysconfig/network-sc 阅读全文
posted @ 2016-03-14 17:11 圆旭 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: myserver.py: myclient.py: 阅读全文
posted @ 2016-03-14 09:20 圆旭 阅读(263) 评论(0) 推荐(0) 编辑
摘要: the canonical way to read one line of input with the read builtin is: 如: IFS=',' read -ra DEPS <<< ${dependencies}   转自: http://unix.stackexchange.com 阅读全文
posted @ 2016-03-13 15:54 圆旭 阅读(1749) 评论(0) 推荐(0) 编辑
摘要: 导入一个叫service-listener.py的文件是一直遇到错误: SyntaxError: invalid syntax 单独运行service-listener这个文件时,没有问题,只是不能被别的文件导入。。。 最后换名字为service_listener就没问题了,应该是命名规则问题。 阅读全文
posted @ 2016-03-11 17:09 圆旭 阅读(3777) 评论(0) 推荐(0) 编辑
摘要: Currently cobbler can help generate a ISC DHCP configuration (package name: dhcpd) it can also alternatively use dnsmasq. DNSmasq is a bit confusing b 阅读全文
posted @ 2016-03-11 11:41 圆旭 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 查看那个进程占用了xxx端口 lsof -i:xxx 查看进程号为xxx的进程在哪里 ps -ef|grep xxx 转自: http://zhidao.baidu.com/link?url=_Dmo29rxjQDTyZU_y6iCOF17JQWQc5LxBDHojuvP5O087FgIjbLovE 阅读全文
posted @ 2016-03-10 10:25 圆旭 阅读(241) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install avahi-daemon sudo apt-get install avahi-utils 阅读全文
posted @ 2016-03-10 10:15 圆旭 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: ifconfig | grep inet | grep 10 阅读全文
posted @ 2016-03-10 09:27 圆旭 阅读(481) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 53 下一页