1.开始Vim test.py#!/usr/bin/pythonprint "hello,world!";chmod +x test.py./test.py2.基本知识Python有五个标准的数据类型:Numbers(数字)String(字符串)List(列表)Tuple(元组)Dictionary...
分类:
编程语言 时间:
2014-07-22 22:32:16
阅读次数:
270
安装系统所需要的依赖包[root@namenode~]#yum-yinstallgccgcc-c++gcc-g77autoconfautomakezlib*fiex*libxml*ncurses-devellibmcrypt*libtool-ltdl-devel*cmakebison创建mysql用户与用户组[root@namenode~]#groupaddmysql[root@namenode~]#useradd-r-gmysqlmysql安装mysql[root@..
分类:
数据库 时间:
2014-07-22 18:15:22
阅读次数:
315
新增用户 sudo useradd -m -s /bin/bash $USER加入sudo组 sudo adduser $USER sudo修改密码 sudo passwd $USER禁止用户使用shell登录系统 sudo usermod -s /bin/false $USER
分类:
系统相关 时间:
2014-07-22 00:25:35
阅读次数:
311
一、配置环境root用户运行groupadd oinstallgroupadd dbauseradd -d /home/oracle -g oinstall -G dba -m oracle mkdir -p /u01/app/oracle/product/11.2.0 chown -R oracl...
分类:
数据库 时间:
2014-07-22 00:21:36
阅读次数:
425
linuxC之access函数access():判断是否具有存取文件的权限相关函数stat,open,chmod,chown,setuid,setgid表头文件#include定义函数int access(const char * pathname, int mode);函数说明access()会检...
分类:
数据库 时间:
2014-07-21 23:39:36
阅读次数:
473
apache-tomcat的配置
首先下载软件包
apache-tomcat-6.0.33.tar.gz tomcat-connectors-1.2.32-src.tar.gz
httpd-2.2.17.tar.gz jdk-6u25-linux-i586-rpm.bin
1.安装JDK
chmod +x jdk-6u25-linux-i586.bin
./j...
分类:
系统相关 时间:
2014-07-21 11:24:44
阅读次数:
317
1、安装samba(CentOS Linux):yum install samba system-config-samba samba-client samba-common 2、创建www账号 ?/usr/sbin/groupadd www/usr/sbin/useradd -g www www mkdir -p /data/ chown -R www:www /...
分类:
其他好文 时间:
2014-07-21 10:32:32
阅读次数:
263
一、chown 命令 用途:更改文件的所有者或组。命令由单词change owner组合而成。 使用示例: 1,更改文件的所有者: chown jim program.c 文件 program.c 的所有者更改为 jim。作为所有者,jim 可以使用 chmod 命...
分类:
其他好文 时间:
2014-07-21 10:19:30
阅读次数:
185
写出以下shell脚本1 判定一个用参数指定的文件是否为可执行,如果不是,则改为可执行#!/bin/bash if [ -x $1 ]then echo "OK"else echo "chmod a+x"chmod a+x $1fi 2 用while和until循环,实现输出某年前9个月月历的效果 ...
分类:
其他好文 时间:
2014-07-21 08:19:28
阅读次数:
279
MongoDB主从配置1.实验环境主:192.168.3.206从:192.168.3.2102.安装方法(分别在主、从执行下面命令)groupaddmongodbuseraddmongodb-gmongodbcd/root/softtar-zxvfmongodb-linux-x86_64-2.6.3.tgzmvmongodb-linux-x86_64-2.6.3mongodbmvmongodb/usr/local/cd/usr/local/chown-Rm..
分类:
数据库 时间:
2014-07-20 06:25:37
阅读次数:
529