首先介绍下kernel.sem 这个参数 cat?/proc/sys/kernel/sem
250?????32000???32??????128
或者
ipcs?-ls
------?Semaphore?Limits?--------
max?number?of?arrays?=?128
max?semaphore...
分类:
其他好文 时间:
2015-07-15 15:22:41
阅读次数:
167
使用python调用playbook和shell脚本
我的python脚本为:
#!/usr/bin/env python
import ansible.playbook
from ansible import callbacks
from ansible import utils
import json
import commands
status, result = commands....
分类:
其他好文 时间:
2015-07-13 20:42:57
阅读次数:
250
题意:数字反转思路:醉了,提交了好几次,难点不在于怎么反转,而是判断是否益处,原题中给的是int,4个字节,32位,开始不知道怎么判断。现在知道了是limits.h中的INT_MIN和INT_MAX作为int的下界和上界。代码: long long int s = 0; while(x!...
分类:
其他好文 时间:
2015-07-10 14:44:54
阅读次数:
117
1.利用dm-crypt来创建加密文件系统。编写shell脚本
2.编写ansible,playbook文件
3.编写python脚本
首先编写shell脚本
#!/bin/sh
sudo apt-get install dmsetup cryptsetup
sudo modprobe dm-crypt
echo "dd if=/dev/zero of=/home/prod/secr...
分类:
其他好文 时间:
2015-07-10 13:29:46
阅读次数:
139
修改linux的软硬件限制文件/etc/security/limits.conf.在文件尾部添加如下代码:*softnofile65535*hardnofile65535保存并推出。命令说明:dominotypeitemvaluedomino是以符号@开头的用户名或组名,*表示所有用户,type设置为hardorsoft。item指定想限制的资源。如cpu,corenofil..
分类:
系统相关 时间:
2015-07-08 22:55:02
阅读次数:
265
To enforce the ability of an object to hide its data, the compiler limits the scope of instance variables—that is, limits their visibility within the ...
分类:
其他好文 时间:
2015-07-08 22:10:42
阅读次数:
157
AIX Study之--用户访问系统资源限制配置
Aix 用户使用的系统资源限制包括两个概念 --- 硬限制(hard limits) 和软限制(soft limits)。hard limits自Aix 4.1版本开始引入。hard limits 应由Aix系统管理员设置,只有security组的成员可以将此值增大,用户本身可以减小此限定值,但是其更改将随着该用户从系统退出而失效。...
分类:
其他好文 时间:
2015-07-07 16:52:47
阅读次数:
125
1.创建mysql的playbook结构[root@ansibleroles]#pwd
/etc/ansible/roles
[root@ansibleroles]#mkdir-pmysql_install/{files,handlers,meta,tasks,templates,vars}
[root@ansibleroles]#treemysql_install/
mysql_install/
├──files
├──handlers
├──meta
├──tasks
..
分类:
数据库 时间:
2015-07-06 20:08:24
阅读次数:
213
1. 修改用户限制 root用户:修改 /etc/security/limits.conf 文件,加上下面的参数 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 655...
分类:
数据库 时间:
2015-07-06 19:19:03
阅读次数:
153
重温了一下《IOS 7 Programming: Pushing the Limits》这本书,有许多零碎的知识点,记录一下,勉强算作是学习笔记吧。
CALayer
Part 1
动画的基本单元就是 UIView,它是非常重量级的对象,所以不能多用。但你又想让你的 UI 看起来更酷,那就需要使用 Core Animation 了。Core Animation 中最基础也最重要的部...
分类:
其他好文 时间:
2015-07-01 18:29:00
阅读次数:
86