码迷,mamicode.com
首页 >  
搜索关键字:usr    ( 26217个结果
Python Special Syntax
#!/usr/bin/python# Filename: for.pyfor i in range(1, 5): print ielse: print 'The for loop is over'for循环在这个范围内递归——for i in range(1,5)等价于for i in ...
分类:编程语言   时间:2014-07-02 19:12:24    阅读次数:288
objc/runtime.h 相关
Objecitve-C的重要特性是Runtime(运行时),在Interacting with the Runtime(交互运行)中,运行时函数部分,苹果给出了/usr/lib/libobjc.A.dylib库,这个共享库提供支持动态属性的objective - c语言,通过其接口,可以用于开发将其...
分类:其他好文   时间:2014-07-02 18:30:02    阅读次数:272
mysql 授权
cd /usr/local/mysql/bin/grant all privileges on *.* to 'root'@'%' identified by '12345678';flush privileges;grant select on weixin.wx_tuijian to 'bbc....
分类:数据库   时间:2014-07-02 17:55:37    阅读次数:229
python打印详细的异常信息
#!/usr/bin/env python#coding=utf-8import traceback try: 1/0except Exception, e: print e print traceback.format_exc()
分类:编程语言   时间:2014-07-02 17:34:59    阅读次数:266
apache编译安装
实验环境:centos6.32.6.32-431.20.3.el6.i686用到的包:APR1.5.1APR-util1.5.3httpd-2.4.9操作步骤:第一步:根据依赖关系,先解压、编译安装apr1.5.1#tarxfapr-1.5.1.tar.bz2-C/home#cd/home/apr-1.5.1#./configure--prefix=/usr/local/apr#make&&makeinstall第二步..
分类:其他好文   时间:2014-07-02 16:17:18    阅读次数:180
python mysql模块
#!/usr/bin/pythonimportMySQLdbdefnew_mail_mysql(ak):printakconn=MySQLdb.connect(host=‘m3306.sae.sina.com.cn‘,user=‘sae_ol‘,passwd=‘7b149edb22ae7526‘,db=‘sae‘,port=3306)cur=conn.cursor()sql="selectnamefromappwhereaccesskey=‘%s‘"%akcur.execute(sql)app_name=cu..
分类:数据库   时间:2014-07-02 16:14:12    阅读次数:285
CentOS 5.5 x64下安装升级Python3.3
1、下载linux版本的Python3.3.5,以下是我共享的百度云盘的下载地址http://pan.baidu.com/s/1kT3IHLH2、解压:tar-zxvfPython-3.3.5.tgz3、进入解压后的目录:cdPython-3.3.54、创建安装目录,这里我将其安装在/usr/local下mkdir/usr/local/python3.35、编译python3.3./configu..
分类:编程语言   时间:2014-07-02 15:52:41    阅读次数:557
Centos 5.2下安装多个mysql数据库
一、编译安装第一个MySQL 5.1.33cd /opt/usr/sbin/groupadd mysql/usr/sbin/useradd -g mysql mysql -s /bin/nologin -d /usr/local/mysqltar -zxvf mysql-5.1.33.tar.gzc...
分类:数据库   时间:2014-07-02 14:17:19    阅读次数:346
rman 连接本地、远程数据库方法解析
rman 连接: 连接到本地数据库: 1、首先指定ORACLE_SID ; --如果数据库只有一个实例,那么就不需要进行指定了,rman默认连接到唯一的实例上; >set ORACLE_SID=ORCL 2、然后rman target usr/pwd nocatalog;--这样默认就是连接的指定的数据库服务名称,关于catalog是什么意思,我还不知道; >rman target us...
分类:数据库   时间:2014-07-02 11:38:08    阅读次数:195
nagios_kehu.sh
####yuminstall##yuminstallgccgcc-c++openssl*ntpperl-ExtUtils-CBuilderperl-ExtUtils-MakeMaker-yecho‘exportLC_ALL=C‘>>/etc/profiletail-1/etc/profilesource/etc/profile/usr/sbin/ntpdatepool.ntp.org####installnagios###/usr/sbin/addusernagios-M-s/sbin/nolog..
分类:移动开发   时间:2014-07-02 11:31:30    阅读次数:191
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!