自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(346)
  • 资源 (4)
  • 收藏
  • 关注

转载 从Objective-C到Swift,你必须会的(四)DLog

调试的时候打断点太慢,所以输出log就是一个很好的选择了。断点,一行一行的按,太麻烦了。从log里一条一条的看,很快就可以找到到哪个函数的哪个地方这个代码就没执行了。这里不详细讨论调试技巧的事。不过大概就是这个样子。但是,输出的log你只想在调试的时候看。在正式发布的版本里,那些东西你给谁看,而且语句的执行还多少占资源。所以,这个时候就要用到#ifdef这样的处理命令,在DEBUG的时候输出log

2014-10-20 16:26:59 210

原创 ZjDroid工具介绍及脱壳详细示例

前提条件:1、Root手机一部2、需要通过Xposed installer(http://dl.xposed.info/latest.apk)安装Xposed Framework;一、ZjDroid工具介绍ZjDroid是基于Xposed Framewrok的动态逆向分析模块,逆向分析者可以通过ZjDroid完成以下工作:DEX文件的内存dump基于Dalv

2014-09-08 11:09:14 846

原创 Javascript实战开发:教你使用raphael.js绘制中国地图

最近的数据统计项目中要用到中国地图,也就是在地图上动态的显示某个时间段某个省份地区的统计数据,我们不需要flash,仅仅依靠raphael.js以及SVG图像就可以完成地图的交互操作。在本文中,我给大家分享如何使用js来完成地图交互。先简单介绍下raphael.js,raphael.js是一个很小的javascript库,它可以在网页中实现绘制各种矢量图、各类图表、以及图像裁剪、旋

2014-09-06 10:53:13 238

原创 Desugar Scala(17) -- Option和for,以及脑子里发生的事情

欢迎关注我的新博客地址:http://cuipengfei.me/blog/2014/08/30/options-for/ Scala里的for关键字是个很有趣的东西。可以用来把多层嵌套for循环写成一层。比如这样:1for(i1 to 10;j1 to 10;k1 to 10) yield(s"$i $j $k")

2014-09-01 13:09:33 288

转载 批处理命令大全

1.Echo 命令  打开回显或关闭请求回显功能,或显示消息。如果没有任何参数,echo 命令将显示当前回显设置。  语法  echo [{on|off}] [message]  Sample:echo off / echo hello world  在实际应用中我们会把这条命令和重定向符号(也称为管道符号,一般用> >> ^)结合来实现输入一些命令到特定格式的文件中.这将在以

2012-06-20 17:46:18 1434

转载 VMWare 6.0桥接模式虚拟机网络配置

桥接网络模式是最简单的网络连接模式,设置方法也最简单,与主机的配置完成一样。具体可以下步骤进行:(1)首先需要确保在相应虚拟机“以太网”设置窗口中的相应虚拟网卡上为“桥接”模式,如图6-27所示(也可以是在“自定义”单选项下拉列表的其他桥接虚拟网络中选择,此处仅以默认的VMNet0虚拟网络为例进行介绍,其他桥接模式的虚拟网络配置方法一样)。此时是把相应虚拟机加入到VMnet0这个桥接模式的虚拟网络。也可以选择“自定义”单选项,然后在下面的下拉列表中选择已配置成桥接模式的虚拟网络。各虚拟网络的网络连接模式设置

2011-03-21 22:09:00 336

转载 (C#)用MyXls生成Excel报表

MyXls是用C#开源项目,可以应用于asp.net 或者 .net应用程序上。它根据微软公开的Excle文档格式文件(BIFF),以二进制格式直接生成excel文档,支持Excel versions 97 - 2007. 。这意味着可以不用在服务器上安装office就能够以excle格式输出数据库中存储的数据了。这对于许多项目来说都是很有用的。     目前MyXls已经实现了单元格(cell)

2010-03-24 13:45:00 2708 2

转载 Sybase数据库和DBArtisan客户端中文乱码完全解决办法!

本文源地址:http://blog.chinaunix.net/u/20824/showart.php?id=1868502参考地址:(http://blog.youkuaiyun.com/kingspider/) (http://blog.sina.com.cn/u/1163490885) 1.     JDBC连接串要有字符集设置jdbc:sybase:Tds:192.168.3.11:500

2010-02-25 10:15:00 1760

翻译 c++对象内存模型之虚析构函数篇(2)

现在讨论第二种情况:(第一种情况传送门,单独一个类,有虚析构函数,虚函数)(2)有继承关系,单一继承,父类无虚析构函数,子类有(子类没有就没必要说了)这种情况让我相当晕,照例先贴代码 : 1 #include 2 using namespace std; 3 4 class A 5 { 6 int ia; 7 publ

2014-10-22 21:11:50 255

转载 从web编辑器 UEditor 中单独提取图片上传,包含多图片单图片上传以及在线涂鸦功能

UEditor是由百度web前端研发部开发所见即所得富文本web编辑器,具有轻量,可定制,注重用户体验等特点,开源基于MIT协议,允许自由使用和修改代码。(抄的...)UEditor是非常好用的富文本web编辑器,而且全中文API和注释,方便学习和使用。特别是图片上传查看及涂鸦功能极为喜欢,但是有很多情况我们并不需要Web编辑器,而只需要图片上传。那么问题来了,提取图片上传哪家强.....

2014-10-22 21:11:03 491

转载 Debian 基本使用进阶

系统安装好了我们,迫不及待的想要在Linux系统中肆意翱翔。如果是刚刚接触Linux的系统的话,可能一时间还无法适应Linux的系统环境。对于使用Debian来做服务器的选择,最好的练习方式的就是使用非界面的终端模式。而不断的练习才是大部分人深入了解Linux的重要途径之一。       紧接上篇的系统安装,如果我们选择的安装包是不带其它应用软件的安装包的话,系统安装完成之后。我们还是无法

2014-10-22 21:08:31 614

转载 IIS Express魔法堂:解除localhost域名的锁定

一、前言                                   单点登录是通过域名从cookie中获取登录信息,然后再根据cookie的键值对获取用户信息。但由于通过IIS Express调试应用时默认使用localhost作为域名且无法直接修改,导致无法获取cookie信息。以前的做法就是直接将Web应用部署到IIS上,然后在VS中通过“附加进程”来调试,麻烦多了,也不便团队搭

2014-10-22 21:07:48 288

转载 Android:谈一谈安卓应用中的Toast情节(基础)

前言  Toast,这个曾经也是现在正在迷倒万千软件开发者尤其是android开发者的小美女,向来不乏在各个明星应用中频繁登场。Toast是神马~听说是一种吐司面包,能吃吗?如果手机屏幕是巧克力做的,我觉得兴许味道还不错的说。言归正传,先来说一说Toast的应用场景,毕竟Toast哥也是见过大场面的人儿了。张三正打算拿在移动互联网上冲一个浪,突然Toast一个:“网络不给力啊,我都拿不到数

2014-10-22 08:10:53 221 1

转载 简单看看这两个类 String和StringBuilder

http://ycool.com/post/bjfvym9http://ycool.com/post/ca76xathttp://ycool.com/post/cu89jeshttp://ycool.com/post/yzzsj9bhttp://ycool.com/post/umeap3yhttp://ycool.com/post/2wqyct3http://ycool.com/post/3396

2014-10-22 06:33:08 3183

转载 简单看看这两个类 String和StringBuilder

http://ycool.com/post/bjfvym9http://ycool.com/post/ca76xathttp://ycool.com/post/cu89jeshttp://ycool.com/post/yzzsj9bhttp://ycool.com/post/umeap3yhttp://ycool.com/post/2wqyct3http://ycool.com/post/3396

2014-10-22 06:33:04 2406

转载 简单看看这两个类 String和StringBuilder

http://ycool.com/post/bjfvym9http://ycool.com/post/ca76xathttp://ycool.com/post/cu89jeshttp://ycool.com/post/yzzsj9bhttp://ycool.com/post/umeap3yhttp://ycool.com/post/2wqyct3http://ycool.com/post/3396

2014-10-22 06:29:32 5529

转载 简单看看这两个类 String和StringBuilder

http://ycool.com/post/bjfvym9http://ycool.com/post/ca76xathttp://ycool.com/post/cu89jeshttp://ycool.com/post/yzzsj9bhttp://ycool.com/post/umeap3yhttp://ycool.com/post/2wqyct3http://ycool.com/post/3396

2014-10-22 06:29:21 9517

转载 用swift重写stanford CS193P的纸牌游戏 (2)- PlayingCard,PlayingDeck和ViewCotronller

本系列编号基本对应stanford CS193P的课程编号,可能有一两节课的误差:比如我标(1)就对应Lecture 1,但有时我做得快了就变成(1)对应lecture 1的全部和lecture 2的一部分。正文:本文包括三个类,PlayingCard和PlayingDeck,两个单元测试类,和两个单元测试的用到的工具类。写完之后的感觉:只要写完view controller这个程序就

2014-10-20 16:27:47 407

转载 MVC&WebForm对照学习:文件上传(以图片为例)

在web应用中,文件上传是个很普遍的功能,那么今天就来小结一下asp.net中文件上传的方式。首先我们快速来回忆一下WebForm中的文件上传的方法。Part 1 WebForm中的文件上传 FileUpload服务器控件 aspx: "~/uploads/1.jpg" ID="img2" runat="server" Width="150px" Heigh

2014-10-20 08:49:29 180

转载 jQuery选择器

jQuery的核心思想就是:选取元素,对其操作。很多时候写jQuery代码的关键就是怎样设计合适的选择器选中需要的元素。jQuery选择器主要有三大类,即css基本选择器,css位置选择器和过滤选择器。一、CSS基本选择器jQuery的css选择器借鉴了css选择器的语法。有3种最基本的选择器:标签名、ID和类。最基本的选择器选择器cssjQ

2014-10-20 08:48:44 133

转载 看看这个超级实用的一种类型——匿名类型

既然说到匿名类型超级实用,得要找到场景来说服一下,如果大家玩过php,里面有一个万能的关联数组array,任你在关联数组array里面怎么写,都可以用json_encode来生成json,非常非常的方便。<?php //可以这么写 $arr= array("name"=>"hxc","age"=20,"isMale"=>true); //也可以这么写

2014-10-20 08:48:00 148

转载 从Objective-C到Swift,你必须会的(二)组合options

http://music.douban.com/doulist/13915810/http://music.douban.com/doulist/13915808/http://music.douban.com/doulist/13915807/http://music.douban.com/doulist/13915805/http://music.douban.com/doul

2014-10-20 02:41:46 115

转载 从Objective-C到Swift,你必须会的(二)组合options

http://music.douban.com/doulist/13915810/http://music.douban.com/doulist/13915808/http://music.douban.com/doulist/13915807/http://music.douban.com/doulist/13915805/http://music.douban.com/doul

2014-10-20 02:38:33 103

转载 从Objective-C到Swift,你必须会的(二)组合options

http://music.douban.com/doulist/13915810/http://music.douban.com/doulist/13915808/http://music.douban.com/doulist/13915807/http://music.douban.com/doulist/13915805/http://music.douban.com/doul

2014-10-20 02:38:16 104

转载 从Objective-C到Swift,你必须会的(二)组合options

http://music.douban.com/doulist/13915810/http://music.douban.com/doulist/13915808/http://music.douban.com/doulist/13915807/http://music.douban.com/doulist/13915805/http://music.douban.com/doul

2014-10-20 02:38:10 108

转载 [NHibernate]HQL查询

目录写在前面文档与系列文章查询的几种方式HQL查询一个例子总结写在前面上篇文章介绍了nhibernate在项目中的基本配置,包括数据库连接字符串的设置,映射文件的配置及需注意的地方,这篇文章将介绍nhibernate的查询方法。文档与系列文章[Nhibernate]体系结构[NHibernate]ISessionFactory配置[NHibe

2014-10-19 17:06:58 144

转载 python脚本实现集群检测和管理

http://www.lvyou114.com/youji/37/711354.htmlhttp://www.lvyou114.com/youji/37/711345.htmlhttp://www.lvyou114.com/youji/37/711336.htmlhttp://www.lvyou114.com/youji/37/711318.htmlhttp://www.lvyou114.com/

2014-10-19 16:43:07 164

转载 python脚本实现集群检测和管理

http://www.lvyou114.com/youji/37/711354.htmlhttp://www.lvyou114.com/youji/37/711345.htmlhttp://www.lvyou114.com/youji/37/711336.htmlhttp://www.lvyou114.com/youji/37/711318.htmlhttp://www.lvyou114.com/

2014-10-19 16:43:07 250

转载 python脚本实现集群检测和管理

http://www.lvyou114.com/youji/37/711354.htmlhttp://www.lvyou114.com/youji/37/711345.htmlhttp://www.lvyou114.com/youji/37/711336.htmlhttp://www.lvyou114.com/youji/37/711318.htmlhttp://www.lvyou114.com/

2014-10-19 16:39:19 452

转载 Java多线程学习笔记——从Java JVM对多线程数据同步的一些理解

http://www.lvyou114.com/youji/37/39766.htmlhttp://www.lvyou114.com/youji/37/39767.htmlhttp://www.lvyou114.com/youji/37/39768.htmlhttp://www.lvyou114.com/youji/37/39769.htmlhttp://www.lvyou114.

2014-10-19 13:57:25 98

转载 Android中ActionBar及Overflow的显示

最近在按照Android的API文档学习Android中actionbar的使用,Action bar 最基本的形式,就是为 activity 显示标题,并且在标题左边显示一个 app icon。在这样简单的形式下,对于所有的 activity 来说,action bar 对告知用户他们当前所处的位置十分有用,并为你的 app 维护了持续的同一标识。Action Bar是一种新増的导航栏功能,

2014-10-19 07:33:53 194

转载 [我给Unity官方视频教程做中文字幕]beginner Graphics – Lessons系列之摄像机介绍Cameras

[我给Unity官方视频教程做中文字幕]beginner Graphics – Lessons系列之摄像机介绍Cameras最近得到一些Unity官方视频教程,一看全是纯英文的讲解,没有任何字幕或者讲稿之类的东西。虽然基本上看的懂,但很难听清其中一些细致的知识点。于是产生了做中文字幕的想法。本篇分享一下首个已完工的视频,即《beginner Graphics – Lessons系列之摄像机

2014-10-19 07:29:04 332

转载 深入浅出Mybatis系列(二)---配置简介(mybatis源码篇)

上篇文章《深入浅出Mybatis系列(一)---Mybatis入门》, 写了一个Demo简单体现了一下Mybatis的流程。本次,将简单介绍一下Mybatis的配置文件:上次例子中,我们以 SqlSessionFactoryBuilder 去创建 SqlSessionFactory,  那么,我们就先从SqlSessionFactoryBuilder入手, 咱们先看看源码是怎么实现的:

2014-10-18 08:49:33 93

转载 经典串匹配算法(KMP)解析

一.问题重述现有字符串S1,求S1中与字符串S2完全匹配的部分,例如:S1 = "ababaababc"S2 = "ababc"那么得到匹配的结果是5(S1中的"ababc"的a的位置),当然如果S1中有多个S2也没关系,能找到第一个就能找到第二个。。-------最容易想到的方法自然是双重循环按位比对(BF算法),但在最坏的情况下BF算法的时间复杂

2014-10-18 08:41:43 214

转载 网站性能之meta标签

meta标签常被html初学者忽略就是作死,但对于一个网站来说,它十分重要。定义:提供页面有关的元信息。比如针对搜索引擎和更新频度的关键字和描述。简单地说meta标签和搜索引擎打交道,可以优化网站SEO。格式:head标签内自闭和标签浏览器支持:全属性:content:定义与http-equiz和name有关的元信息 http-equiz:将content关联到

2014-10-18 08:37:31 117

转载 领英、脸书面试以及onsite小记(北美)

http://www.wenjuan.com/s/AvYvIf?test=1http://www.wenjuan.com/s/viY3ei?test=1http://www.wenjuan.com/s/niuE7n?test=1http://www.wenjuan.com/s/zmEVNn?test=1http://www.wenjuan.com/s/2iAjqi?test=1

2014-10-18 08:15:09 285

转载 Python学习 - 编写自己的ORM(1)

http://zhan.renren.com/111119?gid=3602888498058951667http://zhan.renren.com/111119?gid=3602888498058951666http://zhan.renren.com/111119?gid=3602888498058951665http://zhan.renren.com/111119?gid=3602888

2014-10-18 08:14:39 123

转载 Python学习 - 编写自己的ORM(1)

http://zhan.renren.com/111119?gid=3602888498058951667http://zhan.renren.com/111119?gid=3602888498058951666http://zhan.renren.com/111119?gid=3602888498058951665http://zhan.renren.com/111119?gid=3602888

2014-10-18 08:14:35 82

转载 Python学习 - 编写自己的ORM(1)

http://zhan.renren.com/111119?gid=3602888498058951667http://zhan.renren.com/111119?gid=3602888498058951666http://zhan.renren.com/111119?gid=3602888498058951665http://zhan.renren.com/111119?gid=3602888

2014-10-18 08:10:27 140

转载 基于继承类的属性模版中无法绑定的原因和解决方法

这个的晚上想学学WPF 做一个类似于ERP 左边菜单。构思一下思路 。。。。。。 创建一个类基于Expander类。 1 public class ExpanderBox : Expander 2 { 3 #region 定义依赖属性 4 5 6 //定义ItemsSource数据源 7

2014-10-18 03:04:53 144

ORACLE.10G入门与实践

ORACLE.10G入门与实践 目录: 第1章 Oracle数据库10g概述 1-1 数据库和信息管理 1-2 Oracle 10g服务器 1-3 Oracle数据库体系结构 1-4 Oracle数据库特性 1-5 安装Oracle数据库10g 第2章 认识Oracle企业管理器 2-1 概述 2-2 监视Oracle环境 2-3 应用性能管理 2-4 数据库管理 2-5 应用服务器管理 2-6 管理部署 2-7 作业系统 第3章 在Oracle数据库10g中创建数据库 3-1 数据库逻辑结构设计 3-2 设计数据库物理结构 3-3 准备创建数据库 3-4 创建数据库 3-5 删除数据库 第4章 对常用Oracle方案对象进行操作 4-1 方案对象空间管理 4-2 分区表和分区索引 4-3 表 4-4 索引 4-5 视图 4-6 同义词和序列 第5章 实例和数据库的启动与关闭 第6章 Oracle网络服务 第7章 备份与恢复实战 第8章 数据库安全管理 第9章 使用Oracle Data Guard创建备用数据库 第10章 典型的基于Oracle 10g的应用开发模型

2012-04-06

Solaris 10 System Administration Essentials

目录 Chapter 1 Installing the Solaris 10 Operating System 1 1.1 Methods to Meet Your Needs 1 1.2 The Basics of Solaris Installation 2 1.2.1 Installing Solaris on a SPARC System 6 1.2.2 Installing Solaris on an x86 System 9 1.3 Solaris JumpStart Installation 13 1.3.1 Setting up a JumpStart Server 13 1.3.2 Creating a Pro?le Server for Networked Systems 14 1.3.3 Performing a Custom JumpStart Installation 22 1.4 Upgrading a Solaris System 25 1.5 Solaris Live Upgrade 26 Chapter 2 Boot, Service Management, and Shutdown 33 2.1 Boot 33 2.1.1 The Bootloader 33 2.1.2 The Kernel 34 2.1.3 User-Mode Programs 34 2.1.4 GRUB Extensions 35 2.1.5 Modifying Boot Behavior 36 2.1.6 Run Levels 37 2.1.7 Troubleshooting 37 2.2 Service Management Facility 39 2.2.1 enabled 40 2.2.2 state, next_state, and state_time 40 2.2.3 logfile 41 2.2.4 dependency 41 2.2.5 How SMF Interacts with Service Implementations 42 2.2.6 The Service Con?guration Facility 44 2.2.7 Health and Troubleshooting 44 2.2.8 Service Manifests 45 2.2.9 Backup and Restore of SCF Data 45 2.3 Shutdown 46 2.3.1 Application-Speci?c Shutdown 46 2.3.2 Application-Independent Shutdown 46 Chapter 3 Software Management: Packages 47 3.1 Managing Software Packages 47 3.2 What Is a Package? 47 3.2.1 SVR4 Package Content 48 3.2.2 Package Naming Conventions 49 3.3 Tools for Managing Software Packages 49 3.4 Installing or Removing a Software Package with the pkgadd or pkgrm Command 50 3.5 Using Package Commands to Manage Software Packages 51 3.5.1 How to Install Packages with the pkgadd Command 51 3.5.2 Adding Frequently Installed Packages to a Spool Directory 54 3.5.3 Removing Software Packages 56 Chapter 4 Software Management: Patches 59 4.1 Managing Software with Patches 59 4.2 What Is a Patch? 59 4.2.1 Patch Content 60 4.2.2 Patch Numbering 61 4.3 Patch Management Best Practices 61 4.3.1 Proactive Patch Management Strategy 62 4.3.2 Reactive Patch Management Strategy 68 4.3.3 Security Patch Management Strategy 70 4.3.4 Proactive Patching When Installing a New System 71 4.3.5 Identifying Patches for Proactive Patching and Accessing Patches 73 4.4 Example of Using Solaris Live Upgrade to Install Patches 75 4.4.1 Overview of Patching with Solaris Live Upgrade 75 4.4.2 Planning for Using Solaris Live Upgrade 77 4.4.3 How to Apply a Patch When Using Solaris Live Upgrade for the Solaris 10 8/07 Release 79 4.5 Patch Automation Tools 86 4.6 Overview of Patch Types 88 4.7 Patch README Special Instructions 93 4.7.1 When to Patch in Single-User Mode 93 4.7.2 When to Reboot After Applying or Removing a Patch 94 4.7.3 Patch Metadata for Non-Global Zones 95 4.8 Patch Dependencies (Interrelationships) 96 4.8.1 SUNW_REQUIRES Field for Patch Dependencies 96 4.8.2 SUNW_OBSOLETES Field for Patch Accumulation and Obsolescence 97 4.8.3 SUNW_INCOMPAT Field for Incompatibility 97 Chapter 5 Solaris File Systems 99 5.1 Solaris File System Overview 99 5.1.1 Mounting File Systems 100 5.1.2 Unmounting File Systems 102 5.1.3 Using the /etc/vfstab File 103 5.1.4 Determining a File System Type 104 5.1.5 Monitoring File Systems 105 5.2 UFS File Systems 105 5.2.1 Creating a UFS File System 106 5.2.2 Backing Up and Restoring UFS File Systems 107 5.2.3 Using Quotas to Manage Disk Space 108 5.2.4 Checking File System Integrity 110 5.2.5 Using Access Control Lists 112 5.2.6 Using UFS Logging 113 5.2.7 Using Extended File Attributes 115 5.2.8 Using Multiterabyte UFS File Systems 115 5.2.9 Creating UFS Snapshots 115 5.3 ZFS File System Administration 117 5.3.1 Using Pools and File Systems 118 5.3.2 Backing Up a ZFS File System 120 5.3.3 Using Mirroring and Striping 121 5.3.4 Using RAID-Z 122 5.3.5 Using Copy-on-Write and Snapshots 122 5.3.6 Using File Compression 124 5.3.7 Measuring Performance 124 5.3.8 Expanding a Pool 125 5.3.9 Checking a Pool 126 5.3.10 Replacing a Disk 127 5.4 NFS File System Administration 127 5.4.1 Finding Available NFS File Systems 128 5.4.2 Mounting an NFS File System 129 5.4.3 Unmounting an NFS File System 129 5.4.4 Con?guring Automatic File System Sharing 130 5.4.5 Automounting File Systems 130 5.5 Removable Media 133 5.5.1 Using the PCFS File System 135 5.5.2 Using the HSFS File System 136 5.6 Pseudo File System Administration 136 5.6.1 Using Swap Space 136 5.6.2 Using the TMPFS File System 138 5.6.3 Using the Loopback File System 139 Chapter 6 Managing System Processes 141 6.1 Overview 141 6.1.1 State of a Process 143 6.1.2 Process Context 143 6.2 Monitoring the Processes 145 6.2.1 Process Status: ps 146 6.2.2 Grepping for Process: pgrep 149 6.2.3 Process Statistics Summary: prstat 149 6.2.4 Reap a Zombie Process: preap 151 6.2.5 Temporarily Stop a Process: pstop 152 6.2.6 Resuming a Suspended Process: prun 152 6.2.7 Wait for Process Completion: pwait 152 6.2.8 Process Working Directory: pwdx 152 6.2.9 Process Arguments: pargs 152 6.2.10 Process File Table: pfiles 153 6.2.11 Process Libraries: pldd 154 6.2.12 Process Tree: ptree 154 6.2.13 Process Stack: pstack 155 6.2.14 Tracing Process: truss 156 6.3 Controlling the Processes 158 6.3.1 The nice and renice Commands 158 6.3.2 Signals 159 6.4 Process Manager 164 6.5 Scheduling Processes 170 6.5.1 cron Utility 171 6.5.2 The at Command 175 Chapter 7 Fault Management 179 7.1 Overview 179 7.2 Fault Noti?cation 181 7.3 Displaying Faults 182 7.4 Repairing Faults 184 7.5 Managing Fault Management Log Files 184 7.5.1 Automatic Log Rotation 185 7.5.2 Manual Log Rotation 186 7.5.3 Log Rotation Failures 187 7.5.4 Examining Historical Log Files 188 7.6 Managing fmd and fmd Modules 188 7.6.1 Loading and Unloading Modules 189 7.6.2 fmd Statistics 191 7.6.3 Con?guration Files 192 7.7 Fault Management Directories 193 7.8 Solaris Fault Management Downloadable Resources 193 7.8.1 Solaris FMA Demo Kit 193 7.8.2 Events Registry 194 Chapter 8 Managing Disks 197 8.1 Hard Disk Drive 197 8.2 Disk Terminology 199 8.3 Disk Device Naming Conventions 200 8.3.1 Specifying the Disk Subdirectory in Commands 202 8.4 Overview of Disk Management 202 8.4.1 Device Driver 202 8.4.2 Disk Labels (VTOC or EFI) 203 8.4.3 Disk Slices 205 8.4.4 Slice Arrangements on Multiple Disks 207 8.4.5 Partition Table 208 8.4.6 format Utility 210 8.4.7 format Menu and Command Descriptions 211 8.4.8 Partition Menu 213 8.4.9 x86: fdisk Menu 214 8.4.10 Analyze Menu 215 8.4.11 Defect Menu 217 8.5 Disk Management Procedures 217 8.5.1 How to Identify the Disks on a System 218 8.5.2 How to Determine If a Disk Is Formatted 218 8.5.3 How to Format a Disk 219 8.5.4 How to Identify a Defective Sector by Performing a Surface Analysis 221 8.5.5 How to Repair a Defective Sector 222 8.5.6 How to Display the Partition Table or Slice Information 223 8.5.7 Creating Disk Slices (Partitioning a Disk) and Labeling a Disk 224 8.5.8 Creating a File System On a Disk 228 8.5.9 Additional Commands to Manage Disks 229 Chapter 9 Managing Devices 235 9.1 Solaris Device Driver Introduction 235 9.2 Analyzing Lack of Device Support 236 9.2.1 Device Does Not Work 236 9.2.2 Obtaining Information About Devices 236 9.2.3 Obtaining Information About Drivers 241 9.2.4 Does the Device Have a Driver? 248 9.2.5 Current Driver Does Not Work 250 9.2.6 Can a Driver for a Similar Device Work? 250 9.3 Installing and Updating Drivers 251 9.3.1 Backing Up Current Functioning Driver Binaries 251 9.3.2 Package Installations 252 9.3.3 Install Time Updates 252 9.3.4 Manual Driver Binary Installation 253 9.3.5 Adding a Device Driver to a Net Installation Image 256 9.3.6 Adding a Device Driver to a CD/DVD Installation Image 262 9.3.7 Swapping Disks 263 9.4 When Drivers Hang or Panic the System 266 9.4.1 Device Driver Causes the System to Hang 266 9.4.2 Device Driver Causes the System to Panic 268 9.4.3 Device Driver Degrades System Performance 269 9.5 Driver Administration Commands and Files 270 9.5.1 Driver Administration Command Summary 270 9.5.2 Driver Administration File Summary 272 Chapter 10 Solaris Networking 275 10.1 Introduction to Network Con?guration 275 10.1.1 Overview of the TCP/IP Networking Stack 275 10.1.2 Con?guring the Network as Superuser 277 10.2 Setting Up a Network 277 10.2.1 Components of the XYZ, Inc. Network 277 10.2.2 Con?guring the Sales Domain 280 10.2.3 Con?guring the Accounting Domain 283 10.2.4 Con?guring the Multihomed Host 288 10.2.5 Setting Up a System for Static Routing 296 10.2.6 Con?guring the Corporate Domain 300 10.2.7 Testing the Network Con?guration 302 10.3 Monitoring Network Performance 304 10.3.1 dladm Command 304 10.3.2 ifconfig Command 305 10.3.3 netstat Command 305 10.3.4 snoop Command 307 10.3.5 traceroute Command 308 Chapter 11 Solaris User Management 309 11.1 Solaris Users, Groups, and Roles 309 11.1.1 File System Object Permissions 310 11.1.2 User Account Components 312 11.1.3 User Management Tools 313 11.1.4 User Management Files 313 11.2 Managing Users and Groups 314 11.2.1 Starting the Solaris Management Console 314 11.2.2 Adding a Group and a User to Local Files 315 11.2.3 Adding a Group and a User to an NIS Domain 317 11.3 Managing Roles 318 11.3.1 Changing root from a User to a Role 318 11.3.2 Viewing the List of Roles 319 11.3.3 Assigning a Role to a Local User 319 Chapter 12 Solaris Zones 321 12.1 Overview 321 12.2 How Zones Work 323 12.3 Branded Zones 324 12.4 Network Interfaces in Zones 324 12.5 Devices in Zones 325 12.6 Packages and Patches in a Zones Environment 325 12.7 Administering Zones 326 12.7.1 Zone Con?guration 327 12.7.2 Viewing a Zone Con?guration 331 12.7.3 Zone Installation and Booting 331 12.7.4 Zone Login Using the zlogin Command 332 12.8 Halting, Uninstalling, Moving, and Cloning Zones 333 12.9 Migrating a Zone to a New System 334 12.10 Deleting a Zone 336 12.11 Listing the Zones on a System 336 12.12 Zones Usage Examples 337 12.12.1 Adding a Dedicated Device to a Non-Global Zone 337 12.12.2 How to Export Home Directories in the Global Zone into a Non-Global Zone 337 12.12.3 Altering Privileges in a Non-Global Zone 337 12.12.4 Checking the Status of SMF Services 338 12.12.5 Modifying CPU, Swap, and Locked Memory Caps in Zones 338 12.12.6 Using the Dtrace Program in a Non-Global Zone 339 Chapter 13 Using Naming Services 341 13.1 Using Naming Services (DNS, NIS, AND LDAP) 341 13.1.1 Naming Service Cache Daemon (nscd) 342 13.1.2 DNS Naming Services 342 13.1.3 NIS Naming Services 342 13.1.4 LDAP Naming Services 343 13.1.5 Organizational Use of Naming Services 343 13.1.6 Network Database Sources 344 13.2 Name Service Switch File 347 13.2.1 Con?guring the Name Service Switch File 347 13.2.2 Database Status and Actions 349 13.3 DNS Setup and Con?guration 350 13.3.1 Resolver Files 350 13.3.2 Steps DNS Clients Use to Resolve Names 350 13.4 NIS Setup and Con?guration 351 13.4.1 Setting Up NIS Clients 351 13.4.2 Working with NIS Maps 352 13.5 LDAP Setup and Con?guration 356 13.5.1 Initializing a Client Using Per-User Credentials 357 13.5.2 Con?guring an LDAP Client 359 13.5.3 Using Pro?les to Initialize an LDAP Client 362 13.5.4 Using Proxy Credentials to Initialize an LDAP Client 362 13.5.5 Initializing an LDAP Client Manually 363 13.5.6 Modifying a Manual LDAP Client Con?guration 363 13.5.7 Troubleshooting LDAP Client Con?guration 364 13.5.8 Uninitializing an LDAP Client 364 13.5.9 Initializing the Native LDAP Client 364 13.5.10 LDAP API Entry Listings 368 13.5.11 Troubleshooting Name Service Information 368 Chapter 14 Solaris Print Administration 369 14.1 Overview of the Solaris Printing Architecture 369 14.2 Key Concepts 370 14.2.1 Printer Categories (Local and Remote Printers) 370 14.2.2 Printer Connections (Directly Attached and Network Attached) 370 14.2.3 Description of a Print Server and a Print Client 371 14.3 Solaris Printing Tools and Services 371 14.3.1 Solaris Print Manager 371 14.3.2 LP Print Service 371 14.3.3 PostScript Printer De?nitions File Manager 372 14.4 Network Protocols 372 14.4.1 Berkeley Software Distribution Protocol 372 14.4.2 Transmission Control Protocol 372 14.4.3 Internet Printing Protocol 373 14.4.4 Server Message Block Protocol 373 14. 5 Planning for Printer Setup 373 14. 5.1 Print Server Requirements 373 14. 5.2 Locating Information About Supported Printers 374 14. 5.3 Locating Information About Available PPD Files 375 14. 5.4 Adding a New PPD File to the System 375 14. 5.5 Adding Printers in a Naming Service 377 14. 5.6 Printer Support in the Naming Service Switch 377 14. 5.7 Enabling Network Listening Services 378 14.6 Setting Up Printers with Solaris Printer Manager 379 14.6.1 Assigning Printer De?nitions 379 14.6.2 Starting Solaris Print Manager 380 14.6.3 Setting Up a New Directly Attached Printer With Solaris Print Manager 381 14.6.4 Setting Up a New Network-Attached Printer with Solaris Print Manager 381 14.7 Setting Up a Printer on a Print Client with Solaris Print Manager 385 14.7.1 Adding Printer Access With Solaris Print Manager 385 14.8 Administering Printers by Using LP Print Commands 385 14.8.1 Frequently Used LP Print Commands 386 14.8.2 Using the lpstat Command 386 14.8.3 Disabling and Enabling Printers 387 14.8.4 Accepting or Rejecting Print Requests 387 14.8.5 Canceling a Print Request 388 14.8.6 Moving Print Requests from One Printer to Another Printer 389 14.8.7 Deleting a Printer 390 14.9 Troubleshooting Printing Problems 392 14.9.1 Troubleshooting No Output (Nothing Prints) 392 14.9.2 Checking That the Print Scheduler Is Running 393 14.9.3 Debugging Printing Problems 393 14.9.4 Checking the Printer Network Connections 394 Index 395

2012-04-06

RH133 - Red Hat Linux System Administration

Red Hat Linux 5 考试认证官方文档 RH133课程

2012-04-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除