- 浏览: 50669 次
最新评论
文章列表
./configure
--prefix=/usr/local/apache/httpd
--enable-so
--with-apr=/usr/local/apache/apr
--with-apr-util=/usr/local/apache/apr-util/
--with-pcre=/usr/local/apache/pcre/
- 2012-04-28 10:10
- 浏览 259
- 评论(0)
[user@localhost桌面]$
ls mysql-5.1.51.tar.gz
mysql-5.1.51.tar.gz
[user@localhost桌面]$
su
- 2012-03-31 15:53
- 浏览 1006
- 评论(0)
进入vi的命令vi filename :打开或新建文件,并将光标置于第一行首vi +n filename :打开文件,并将光标置于第n行首vi + filename :打开文件,并将光标置于最后一行首vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filenamevi filename....filename
- 2012-03-26 11:00
- 浏览 400
- 评论(0)
网卡开闭 ifconfig eth0 down ifconfig eth0 up
自动获取IP dhclient eth0
打开关闭防火墙 chkconfig iptables on/off
1.etc/httpd/httpd.conf 配置文件
2.配置默认主页
/var/www/html
Vim index.html
3.配置个人主页
#UserDir disable
UserDir public_html 去掉注释
去掉以下注释
370<Directory /home/*/public_html>
371 AllowOverride FileIn ...
- 2012-03-26 10:56
- 浏览 278
- 评论(0)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE students SYSTEM "dtd1.dtd">
<?xml-stylesheet type="text/css" href="css1.css"?>
<students>
<student>
<id>123</id>
<name>zhang</name>
</stud ...
- 2012-01-08 17:06
- 浏览 492
- 评论(0)
var xmlHttpRequest ;
function validate(){if(window.ActiveXObject){try{xmlHttpRequest =new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){try{xmlHttpRequest =new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}}}else if(window.XMLHttpRequest){xmlHttpRequest =new XMLHttpRequest();}if( ...
- 2011-12-15 19:47
- 浏览 352
- 评论(0)
<!DOCTYPE html>
<html>
<head>
<title>login.html</title>
</head>
<script type="text/javascript">var xmlHttpRequest;function validate(){ if(window.activeXObject){ xmlHttpRequest =new ActiveXObject("Microsoft.XMLHttpRequest"); }else ...
- 2011-12-08 12:53
- 浏览 359
- 评论(0)
/^ $/ 以两个开始和结尾
/^\w{5,15} $/.test(f.name.value); 5-15位
/^ \w+@\w+.\w+ $/.test(f.name.value);
正则表达式
字符
java中正则
意义
.
"."
代表任何一个字符
\d
"\\d"
代表0-9的任何一个数字
\D
"\\D"
代表任何一个非数字字符
\s
"\\s"
代表空格类字符: \t \n \x0B \f \r
\S
"\S&quo ...
- 2011-12-07 16:27
- 浏览 255
- 评论(0)
interface Subject{public void say(String name,int age);
}
class RealSubject implements Subject{public void say(String name,int age){System.out.println("我叫:"+name+"年龄:"+age);}
}
class ProxySubject implements Subject{Subject sub=null;public ProxySubject(Subject sub){this.sub=sub ...
- 2011-12-01 16:08
- 浏览 276
- 评论(0)
interface Contact{
}
class BaseInfo implements Contact{private String name;private int age;public BaseInfo(String name,int age){setName(name);setAge(age);} public void setName(String name) {this.name = name;}public void setAge(int age) {this.age = age;}public String getName() {return (this.name) ...
- 2011-11-30 20:02
- 浏览 621
- 评论(0)
<form action="smartupload_demo01.jsp" method="post" enctype="multipart/form-data">请选择要上传的文件<input type="file" name="pic"><input type="submit" name="submit" value="提交">
</form>
利用SmartUpload ...
- 2011-11-27 13:12
- 浏览 715
- 评论(0)
vi /etc/exports 进入到配置文件
/home/soft 193.168.0.200/24(ro,rw)
service portmap status
service nfs start
showmount -e //察看共享
ifconfig //ip配置
mount 192.168.0.44://home/soft /root/abc //挂载
cd /var/www/html //放在该站点下
vi index.html
service httpd start (Apache启动)
- 2011-11-22 09:00
- 浏览 274
- 评论(0)
public static final String DRIVER="oracle.jdbc.driver.OracleDriver";
public static final String DRURL="jdbc:oracle:thin:@localhost:1521:orcl";
public static final String DRIVER="org.gjt.mm.mysql.Driver";public static final String DRURL="jdbc:mysql://localhost: ...
- 2011-11-04 16:55
- 浏览 705
- 评论(0)
import java.util.ArrayList;
interface Watched{public void addWatcher(Watcher watcher);public void removeWatcher(Watcher watcher);public void notifyWatchers(String str);
}
interface Watcher{public void update(String str);
}
class House implements Watched{ArrayList<Watcher> list =new ArrayLi ...
- 2011-10-24 12:16
- 浏览 374
- 评论(0)
interface Flag{
}
class Cont implements Flag{private String name;private int age;public Cont(String name,int age){this.name=name;this.age=age;}public String toString(){return "姓名:"+this.name+" 年龄:"+this.age;}
}
class Cont2 implements Flag{private String address;private String ...
- 2011-10-23 12:30
- 浏览 478
- 评论(0)