07 2015 档案

摘要:Linux 系统任何时候都运行在一个指定的运行级上,并且不同的运行级的程序和服务都不同,所要完成的工作和要达到的目的都不同,系统可以在这些运行级之间进行切换,以完成不同的工作。Ubuntu 的系统运行级别:0 系统停机状态1 单用户或系统维护状态2~5 多用户状态6 重新启动查看当... 阅读全文
posted @ 2015-07-29 21:22 asnjudy 阅读(3928) 评论(0) 推荐(0) 编辑
摘要:docker runasn@hadoop1:~/Desktop$ docker run --help Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...] Run a command in a new container -a, --attach... 阅读全文
posted @ 2015-07-29 20:42 asnjudy 阅读(16547) 评论(0) 推荐(1) 编辑
摘要:1 修改dnsmasq配置文件/etc/dnsmasq.conf 在/etc/dnsmasq.conf文件底部增加#++++++++++++++++++++++++++++++++++++++++ # Change this line if you want dns to get its upstr... 阅读全文
posted @ 2015-07-29 20:07 asnjudy 阅读(5445) 评论(0) 推荐(0) 编辑
摘要:dnsmasq 1 修改dnsmasq配置文件/etc/dnsmasq.conf # Change this line if you want dns to get its upstream servers from somewhere other that /etc/resolv.conf # 如果你想让dns从某个地方(而不是/etc/resolv.conf)获得上游服务 resolv-f... 阅读全文
posted @ 2015-07-28 22:40 asnjudy 阅读(526) 评论(0) 推荐(0) 编辑
摘要:netstat 用于显示各种网络相关信息,如网络连接,路由表,接口状态 (Interface Statistics),masquerade 连接,多播成员 (Multicast Memberships) 等等grid_hd@hadoop1:~$ netstat -h usage: netstat [... 阅读全文
posted @ 2015-07-28 20:49 asnjudy 阅读(5526) 评论(0) 推荐(0) 编辑
摘要:1 protocol buffer sudo apt-get install libprotobuf-dev asn@hadoop1:~/Desktop$ protoc --version libprotoc 2.5.0 2 安装CMake apt-get install cmak... 阅读全文
posted @ 2015-07-24 22:41 asnjudy 阅读(991) 评论(0) 推荐(0) 编辑
摘要:/etc/sudoers文件## This file MUST be edited with the 'visudo' command as root.## Please consider adding local content in /etc/sudoers.d/ instead of dire... 阅读全文
posted @ 2015-07-19 20:14 asnjudy 阅读(1453) 评论(0) 推荐(1) 编辑
摘要:1 Centos 6.5 编译hadoop2.7.1 主机配置: sudo yum install gcc gcc-c++ sudo yum install ncurses-devel sudo yum -y install lzo-devel zlib-devel autoconf automak... 阅读全文
posted @ 2015-07-19 15:28 asnjudy 阅读(817) 评论(0) 推荐(0) 编辑
摘要:参考http://blog.sina.com.cn/s/blog_62449fcf0100nfar.htmllinux下tar命令解压到指定的目录 :#tar zxvf /bbs.tar.zip -C /zzz/bbs //把根目录下的bbs.tar.zip解压到/zzz/bbs下,前提要保证存在/... 阅读全文
posted @ 2015-07-18 15:12 asnjudy 阅读(16711) 评论(0) 推荐(0) 编辑
摘要:实例讲解虚拟机3种网络模式(桥接、nat、Host-only)转载自:http://www.cnblogs.com/ggjucheng/archive/2012/08/19/2646007.html很多人安装虚拟机的时候,经常遇到不能上网的问题,而vmware有三种网络模式,对初学者来说也比较眼花聊... 阅读全文
posted @ 2015-07-12 17:25 asnjudy 阅读(609) 评论(0) 推荐(0) 编辑
摘要:参考 http://blog.itpub.net/12272958/viewspace-676977/一、开机自动挂载光驱1.按习惯,root用户,在/media目录下建立目录cdrom——mkdir/media/cdrom2.修改/etc/fstab文件。在该文件最后按顺序添加如下内容:/dev/... 阅读全文
posted @ 2015-07-12 15:47 asnjudy 阅读(10697) 评论(0) 推荐(1) 编辑
摘要:1 cp 拷贝、复制NAMEcp - copy files and directoriesSYNOPSIScp [OPTION]... [-T] SOURCE DEST-- cp 源位置 目标位置cp [OPTION]... SOURCE... DIRECTORYcp [OPTION]... -t ... 阅读全文
posted @ 2015-07-12 11:47 asnjudy 阅读(1420) 评论(0) 推荐(0) 编辑
摘要:Main nano help textThe nano editor is designed to emulate 仿真、模拟 the functionality and ease-of-use of the UW Pico text editor.There are four main secti... 阅读全文
posted @ 2015-07-12 10:58 asnjudy 阅读(1665) 评论(0) 推荐(0) 编辑
摘要:shell脚本的三种调试方法:-n读一遍脚本中的命令但不执行,用来检查脚本中的语法错误-v一边执行脚本,一边将执行过的脚本命令打印到标准输出端-x提供跟踪执行信息,将执行的每一条命令和结果一次打印出来,这应该就像C语言的gdb一样有用吧,有助于检查错误使用这些选项有三种方法1.在命令行提供参数:$s... 阅读全文
posted @ 2015-07-11 14:54 asnjudy 阅读(362) 评论(0) 推荐(0) 编辑
摘要:统计对组文件第4列的用户列表进行统计asn@asn-vm:~$ cat /etc/grouproot:x:0:daemon:x:1:bin:x:2:sys:x:3:adm:x:4:syslog,asntty:x:5:disk:x:6:lp:x:7:mail:x:8:news:x:9:uucp:x:1... 阅读全文
posted @ 2015-07-11 11:10 asnjudy 阅读(227) 评论(0) 推荐(0) 编辑
摘要:参考http://coolnull.com/3339.html说明:如我系统已安装有java 1.6,还想要安装java 1.7,但我不想卸载java 1.6。就可以通过update-alternatives –config在多个java版本间进程切换。update-alternatives是用于在... 阅读全文
posted @ 2015-07-10 20:47 asnjudy 阅读(11096) 评论(0) 推荐(1) 编辑
摘要:1 /etc/passwd文件用户名 密码 UID GID Full Name 主目录 默认的shellasn :x :1000 :1000 :asnjudy@163.com :/home/asn :/bin/bash... 阅读全文
posted @ 2015-07-10 20:13 asnjudy 阅读(927) 评论(0) 推荐(0) 编辑
摘要:df - report file system disk space usage 显示文件系统磁盘空间使用情况 语法: df [OPTION]... [FILE]... 描述: df displays the amount of disk space available on the file system If no file name is given, the space ... 阅读全文
posted @ 2015-07-10 17:44 asnjudy 阅读(738) 评论(0) 推荐(0) 编辑
摘要:asn@asn-vm:~/Desktop$ sudodocker images -hUsage: docker images [OPTIONS] [REPOSITORY]List imagesdocker images -a显示所有镜像,包括中间镜像-a, --all=false Show all ... 阅读全文
posted @ 2015-07-10 16:35 asnjudy 阅读(606) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示