今天简单学习了一下vi和gcc/g++的使用。 首先是第一次用root超级管理用户登录了Linux系统,因为Ubuntu系统第一次登录只能是普通用户,但是很多事情必要要用root权限,所以今天特地上网搜了怎么用root用户,先用普通用户登录,然后输入sudo passwd root,就可以设置...
分类:
系统相关 时间:
2014-07-07 13:14:26
阅读次数:
245
1#-*-coding:utf-8-*-2#批量操作linux服务器(执行命令,上传,下载)3#!/usr/bin/python4importparamiko5importdatetime6importos7importthreading8defssh2(ip,username,passwd,cmd...
分类:
编程语言 时间:
2014-07-07 11:21:24
阅读次数:
259
《判断用户是否存在,如不存在则新建》user=`grep '^admin:' /etc/passwd`if [ -z "$user" ];thengroupadd adminuseradd -d /home/admin -s /bin/bash -g admin adminecho '123456'...
分类:
系统相关 时间:
2014-07-07 10:10:10
阅读次数:
357
css相关知识:1. 使用box-shadow设置图片阴影,为照片加上阴影eg: box-shadow: 0 0 5px 3px #abc2. 使用tansform-origin定义变形原点eg: -webkit-transform-origin: 0 1px3. 使用transform变形,常用变...
分类:
Web程序 时间:
2014-07-03 20:41:28
阅读次数:
242
1. git的安装和配置(1)使用yum源安装gityum install git(2)创建git用户并设置密码#useradd--home/home/git git#passwd git//注意这里要设置一个密码,建议不要不设密码,网上很多资料都不设密码(3)创建一个git仓库,验证git是否可用...
分类:
Web程序 时间:
2014-07-03 12:49:56
阅读次数:
251
Ubuntu 下获得root 权限在终端中输入:sudo passwd rootEnter new UNIX password: (在这输入你的密码)Retype new UNIX password: (确定你输入的密码)passwd: password updated successfully以后...
分类:
其他好文 时间:
2014-07-02 21:30:47
阅读次数:
247
#!/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
用户分类:管理员:root用户,UID为0系统用户:UID范围1-499一般用户:UID范围:500-60000组分类:基本组或私有组:创建用户时,如果没有为其指定所属的组,则系统默认会创建一个与用户名同名的组。附属组:默认组以外的其他组。当一个用户执行程序的时候,系统会判断当前用户..
分类:
其他好文 时间:
2014-07-02 11:52:41
阅读次数:
239
.put { -webkit-transition:border linear .2s,-webkit-box-shadow linear .2s; outline:none; border-color:rgba(241,39,242,.6); -webkit-box-shadow:0 0 8px ...
分类:
其他好文 时间:
2014-07-01 17:46:03
阅读次数:
228
yum -y install subversion 建立版本库目录 mkdir /opt/svn/repo 修改配置文件(3个文件authz passwd svnserve.conf) cd /opt/svn/repo/conf vi svnserve.conf ...
分类:
Web程序 时间:
2014-07-01 00:55:07
阅读次数:
278