例1:在python中包装ls命令#!/usr/bin/envpython#pythonwapperforthelscommandimportsubprocesssubprocess.call(["ls","-l"])在Linux中执行该命令[root@pydbpython]#pythonls.py...
分类:
编程语言 时间:
2014-05-10 01:32:55
阅读次数:
377
安装:1.需要root权限,所以要用root登录,或suroot2.yum
install"@ChineseSupport"3.exit4.回到桌面,system->preferences->inputmethod5.如果没有,先注销一下。6.按照提示添加输入法。7.最后
再次注销,登录即可。设置:...
分类:
系统相关 时间:
2014-05-09 17:44:03
阅读次数:
379
第一步:登陆root登陆之后切换到oracle用户上,输入su
oracle第二步:连接在oracle用户下,输入sqlplus /nolog第三步:使用管理员权限输入connect /as
sysdba第四步:启动/关闭服务输入startupstartup参数不带参数,启动数据库实例并打开数据库,...
分类:
数据库 时间:
2014-05-09 16:59:52
阅读次数:
390
在Ubuntu中创建新用户,通常会用到两个命令:useradd和adduser,虽然作用一样,但用法却不尽相同。本文接下来便为读者带来具体的解释。AD:51CTO学院:IT精品课程在线看!在Ubuntu中创建新用户,通常会用到两个命令:useradd和adduser。虽然作用一样,但用法却不尽相同:...
分类:
其他好文 时间:
2014-05-09 12:23:04
阅读次数:
236
公司用的是ubuntu server
服务器在美国亚马逊VPS现在要修改时区执行:tzselect 或直接修改 /etc/timezone
文件,我是改成(America/Los_Angeles)然后到/usr/share/zoneinfo/下找相应的时区文件复制到/etc/localtime我的是...
分类:
其他好文 时间:
2014-05-09 12:09:35
阅读次数:
311
关于catopen函数:参考网址:http://pubs.opengroup.org/onlinepubs/009695399/functions/catopen.html1)编辑消息文件[root@Master
catlogTest]# vi msg1.euc1 Hello msg1.euc 12...
分类:
其他好文 时间:
2014-05-09 11:41:02
阅读次数:
841
配置通过数据库认证用户登录打开webapp\WEB-INF目录下的deployerConfigContext.xml,替换 为
com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/db_name root 使用j...
分类:
数据库 时间:
2014-05-09 11:31:43
阅读次数:
477
There are no interfaces on which a capture can be
done解决方法:Open a terminal by pressingCtrl+Alt+Tand type the following
commands:sudo dpkg-reconfigure ...
分类:
其他好文 时间:
2014-05-08 22:18:45
阅读次数:
397
Ubuntu下执行命令:sudo apt-get install vim
失败解决办法:更新一下,命令:sudoapt-getupdate再安装即可成功:sudo apt-get install vim
分类:
其他好文 时间:
2014-05-07 20:11:29
阅读次数:
349
登陆mysql
harvey@harvey-Virtual-Machine:~/ruby/mydiary$ mysql -u root -pEnter password:
Welcome to the MySQL monitor. Commands end with ; or \g. 查看所有的数据...
分类:
数据库 时间:
2014-05-07 20:06:47
阅读次数:
452