- 博客(14)
- 资源 (3)
- 收藏
- 关注
原创 linux下chkconfig使用
1.chkconfig使用方法比较多 chkconfig --list 来查看系统启动的服务的详情 chkconfig --add 将服务增加到系统启动boot阶段
2014-12-31 11:54:02 517
原创 linux下rsyslog syslog比较
1.linux下会看到早期的syslog服务,但后续就看到只使用rsyslog服务了 rsyslog 相当于 syslog的升级版,rsyslog可以将日志写到文件中
2014-12-31 10:13:58 11293 2
原创 selinux状态查询
[root@dev-kazoo01 yum.repos.d]# sestatusSELinux status: disabled
2014-12-30 17:26:43 883
原创 linux下查看主机名及配置主机名
在linux下查看主机名的命令hostname[root@dev-kazoo01 scripts]# hostnamedev-kazoo01.wj.sankuai.info
2014-12-30 11:22:35 42633 1
原创 linux下hg命令
1.linux下hg命令 hg命令是程序mercurial程序的执行命令。 man一下(前提,你要安装上hg,在ubuntu/debian中安装包为mercurial 在centos中安装包为hg)NAME hg - Mercurial source code management systemSYNOPSIS hg com
2014-12-29 19:58:32 9465
原创 yum命令使用
1.yum install命令是安装命令,默认执行完后会提示是否安装,如下标红的提示,如果想直接安装不提示 Transaction Summary==============================================================================Install 3 Package(s)Upgrade
2014-12-29 19:06:57 707
原创 mac笔记6
9.git clone https的代码错误解决办法 git clone https://github.com/2600hz/monster-ui Cloning into 'monster-ui'... fatal: unable to access 'https://github.com/2600hz/monster-ui/': Server aborted the
2014-12-29 18:09:42 2133
原创 mac笔记5
6.怎么使用mac自带的截图工具全屏截图: 全屏截图: 使用shift+command+3 ,会自动保存到桌面,不需自己去保存 部分截图: 使用shift+command+4,同样会自动保存到桌面
2014-12-25 17:15:02 865
原创 在mac上安装macvim
在Mac上使用vim代替SourceInsight发表于 OpenStack 2014-06-18 23:08 字数: 651 阅读量: 1593一直以来在Mac上找不到好的代码阅读工具,最近根据网上的教程,自己总结一下,做了个在Mac的类sourceinsight的vim,感觉很好用。我不喜欢那种把vim搞的很复杂的配置,所以做了个仅仅能满足浏览代码的vim。使用
2014-12-25 14:37:16 29506
原创 mac笔记三
5.使用homebrew进行包管理 homebrew是在Mac中进行包管理的比较好的一个工具,是基于ruby脚本定制的包,名为formula 首先需要在Mac上安装homebrew,使用命令 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install
2014-12-25 14:32:08 9039
原创 mac笔记二
4.mac文件系统目录结构Applications应用程序homeLibrary资源库 installer.failurerequestsNetwork netSystem系统 privateUsers用户 sbinVolumes tmpbin
2014-12-24 18:02:32 1227
原创 mac笔记一
Mac笔记一:1.查看os的版本: 打开终端:在finder中 应用程序->实用工具 ->终端 用more命令查看more /System/Library/CoreServices/SystemVersion.plist 结果如下: ProductBuildVersion 14A389a Produ
2014-12-24 11:40:55 747
原创 php学习笔记一
1.php数组$arr1 = array(2,3);$arr2 = $arr1;$arr2 [ ] = 4;print_r($arr1);$arr3 = &$arr1;$arr3[ ] = 5;print_r($arr1);>结果为:第一个输出结果为Array([0] >= 2 [1] >= 3) 第二个输
2014-12-04 19:59:25 409
原创 统计二进制正整数中1的个数
统计二进制正整数中1的个数常见的办法,也是比较笨的办法,假设这个整数是32位的unsigned int的,那就比较简单的思路,就是每次将整数向右移一位,然后与1进行与操作,然后判断另一种办法:让这个数每次减一,然后和原来的数进行与操作,然后将结果减一,然后和原数进行与操作,一直返回,知道结果为0为止 举例:10的二进制数是1010,那么1010减一的话就是1001,1010&
2014-12-03 23:48:04 639
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人