Apache是目前广泛使用的一种网络服务器程序,不仅在UNIX/LINUX平台上被大量使用,而且在Windows平台上也有许多站点放弃了IIS而转向Apache。.NET是微软推出的功能强大的开发技术,其目标就是与Java抗衡。ASP.NET非常适合于中小企业的Web应用,其性能较ASP3.0有了极大的提高。下面就介绍让Apache支持ASP.NET的办法。
免光驱安装:
1、获取iso
2、解压缩第一张光盘下isolinux到硬盘,比如第一个扩展分区(hd0,4)
3、grub引导
root (hd0,4)
kernel /isolinux/vmlinuz
initrd /isolinux/initrd.img
boot
TEXT安装模式下指定iso文件所在位置
开始安装程序...
免光驱添加删除组件(假设RHEL4.iso文件放在fat32格式分区上):
【Redhat AS4】
/mnt目录下创建src文件夹用于挂载
mount -t vfat /dev/hda5 /mnt/src #hda5根据分区不同而不同
system-config-packages --isodir=/mnt/src/REEL.iso
【Redhat AS5】
Redhat AS5下可没那么轻松了,组件包的安装都是通过yum所以要对yum进行配置
具体在命令行下操作如下:
[codes=vbs]
1. mount -o loop rhel-5-server-dvd.iso /media/rhel
2. vi /etc/yum.repos.d/rhel-local.repo
[Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch - Cluster
baseurl=file:///media/rhel/Cluster
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - ClusterStorage
baseurl=file:///media/rhel/ClusterStorage
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Server
baseurl=file:///media/rhel/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch - VT
baseurl=file:///media/rhel/VT
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
3. mkdir -p /var/rhel/{Cluster,ClusterStorage,Server,VT}
4. createrepo -o /var/rhel/Cluster -g /media/rhel/Cluster/repodata/comps-rhel5-cluster.xml /media/rhel/Cluster
createrepo -o /var/rhel/ClusterStorage -g /media/rhel/ClusterStorage/repodata/comps-rhel5-cluster-st.xml /media/rhel/ClusterStorage
createrepo -o /var/rhel/Server -g /media/rhel/Server/repodata/comps-rhel5-server-core.xml /media/rhel/Server
createrepo -o /var/rhel/VT -g /media/rhel/VT/repodata/comps-rhel5-vt.xml /media/rhel/VT
5. mount --bind /var/rhel/Cluster/repodata /media/rhel/Cluster/repodata
mount --bind /var/rhel/ClusterStorage/repodata /media/rhel/ClusterStorage/repodata
mount --bind /var/rhel/Server/repodata /media/rhel/Server/repodata
mount --bind /var/rhel/VT/repodata /media/rhel/VT/repodata
6. yum clean all
[/codes]
1、获取iso
2、解压缩第一张光盘下isolinux到硬盘,比如第一个扩展分区(hd0,4)
3、grub引导
root (hd0,4)
kernel /isolinux/vmlinuz
initrd /isolinux/initrd.img
boot
TEXT安装模式下指定iso文件所在位置
开始安装程序...
免光驱添加删除组件(假设RHEL4.iso文件放在fat32格式分区上):
【Redhat AS4】
/mnt目录下创建src文件夹用于挂载
mount -t vfat /dev/hda5 /mnt/src #hda5根据分区不同而不同
system-config-packages --isodir=/mnt/src/REEL.iso
【Redhat AS5】
Redhat AS5下可没那么轻松了,组件包的安装都是通过yum所以要对yum进行配置
具体在命令行下操作如下:
[codes=vbs]
1. mount -o loop rhel-5-server-dvd.iso /media/rhel
2. vi /etc/yum.repos.d/rhel-local.repo
[Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch - Cluster
baseurl=file:///media/rhel/Cluster
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - ClusterStorage
baseurl=file:///media/rhel/ClusterStorage
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Server
baseurl=file:///media/rhel/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch - VT
baseurl=file:///media/rhel/VT
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
3. mkdir -p /var/rhel/{Cluster,ClusterStorage,Server,VT}
4. createrepo -o /var/rhel/Cluster -g /media/rhel/Cluster/repodata/comps-rhel5-cluster.xml /media/rhel/Cluster
createrepo -o /var/rhel/ClusterStorage -g /media/rhel/ClusterStorage/repodata/comps-rhel5-cluster-st.xml /media/rhel/ClusterStorage
createrepo -o /var/rhel/Server -g /media/rhel/Server/repodata/comps-rhel5-server-core.xml /media/rhel/Server
createrepo -o /var/rhel/VT -g /media/rhel/VT/repodata/comps-rhel5-vt.xml /media/rhel/VT
5. mount --bind /var/rhel/Cluster/repodata /media/rhel/Cluster/repodata
mount --bind /var/rhel/ClusterStorage/repodata /media/rhel/ClusterStorage/repodata
mount --bind /var/rhel/Server/repodata /media/rhel/Server/repodata
mount --bind /var/rhel/VT/repodata /media/rhel/VT/repodata
6. yum clean all
[/codes]
动态加载js:
[codes=js]
var script=document.createElement("script");
script.text="alert(1);";
var body=document.getElementsByTagName('body')[0];
body.appendChild(script);
[/codes]
或者
[codes=js]
var script=document.createElement("script");
script.src='test.js';
var body=document.getElementsByTagName('body')[0];
body.appendChild(script);
[/codes]
注意:网页中必须存在body元素
[codes=js]
var script=document.createElement("script");
script.text="alert(1);";
var body=document.getElementsByTagName('body')[0];
body.appendChild(script);
[/codes]
或者
[codes=js]
var script=document.createElement("script");
script.src='test.js';
var body=document.getElementsByTagName('body')[0];
body.appendChild(script);
[/codes]
注意:网页中必须存在body元素
暑假慢慢研究,主要用于解决firefox与ie下事件绑定不兼容问题,既然你们各自的方法都互相不兼容,那我就来个另辟蹊径......








