# 阻止列出所有文件
IndexIgnore *
# 阻止列出include文件夹
IndexIgnore /include
# 禁止浏览目录
Options -indexes
# 阻止列出所有文件
IndexIgnore *
# 阻止列出include文件夹
IndexIgnore /include
# 禁止浏览目录
Options -indexes
可以对文件批量转换。
[download id=”1″]
本来是float:right平行刚好平行于左边部分的,但是在IE8下却直接到了下面,并非整体宽度不够,找了很多,加了个 position:absolute; 就好了
#mr { width: 350px; margin-left: 6px; background-color: rgb(255, 255, 255);float:right ;clear:both;display:inline;position:absolute; }
不懂,只能死马当活马医了,到最后还是解决了,终于基本上现在页面在其他浏览器里也都打开正常了。
服务器做简单的文件共享可以用他哦,默认的文档浏览,太难看了,已经跟不上时代要求啦。发现还有人单独开发了,此类的美化程序,还是不错地。演示:http://wendang.cdianzi.com/
安装方法
httpd.conf or in any directory’s .htaccess file set for example:
DirectoryIndex index.html index.php /_h5ai/server/php/index.php
lighttpd.conf set for example:
index-file.names += ( "index.html", "index.php", "/_h5ai/server/php/index.php" )
nginx.conf set for example:
index index.html index.php /_h5ai/server/php/index.php;
cherokee.conf set for example:
vserver!1!directory_index = index.html,index.php,/_h5ai/server/php/index.php
程序下载:h5ai-0.22.1
在控制面板里—服务,启动Windows Firewall服务即可。右击计算机,选择管理打开计算机管理,在左侧单击展开“服务和应用程序”,单击“服务”,拖动右侧滑动条在右侧服务列表里找到Windows Firewall服务,右击它选择启动(或者单击选中它后在服务的左边单击启动),片刻,服务启动后关闭计算机管理,即完成启动Windows
Firewall服务。
打开Intel MyWifi,单击“共享我的互联网”,会再次弹出提示,单击确定,稍等“共享我的互联网”已经变成了“取消共享我的互联网”,现在就恢复正常了。
1.关闭正在运行的MySQL; 使用命令:net stop mysql; 可以直接进程里结束MYSQL进程
2.打开DOS窗口,转到mysql\bin目录;
一般在bin目录里面创建一个批处理1.bat,内容是cmd.exe运行一下即可就切换到当前目录,
3.输入
mysqld –skip-grant-tables
回车。如果没有出现提示信息,那就对了。
4.再开一个DOS窗口(因为刚才那个DOS窗口已经不能动了),转到mysql\bin目录。
5.输入mysql回车,如果成功,将出现MySQL提示符 >
6. 连接权限数据库
>use mysql; 别忘了最后的分号;
6.改密码:
> update user set password=password(“123456″) where user=”root”;
(别忘了最后的分号)
7.刷新权限(必须的步骤)
>flush privileges;
8.退出 关闭命令提示符
9注销计算机 再启动服务,用root 和123456登录mysql
1. 添加磁盘,查看磁盘状况
[root@db1 /]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 151 1305 9277537+ 83 Linux
/dev/sda2 1 150 1204843+ 82 Linux swap
Partition table entries are not in disk order
Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
从查询结果看出,多了一个/dev/sdb的盘
2. 用fdisk 对/dev/sdb 进行分区
[root@db1 /]# fdisk /dev/sdb
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-652, default 652):
Using default value 652
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
再次查看分区情况,多出来一个/dev/sdb1 的区,这个1是我们在前面指定的,如果我们指定2,就变成 sdb2了。
[root@db1 /]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 151 1305 9277537+ 83 Linux
/dev/sda2 1 150 1204843+ 82 Linux swap
Partition table entries are not in disk order
Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 652 5237158+ 83 Linux
[root@db1 /]#
3. 格式化 /dev/sdb1 分区
[root@db1 /]# mkfs -t ext3 /dev/sdb1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
655360 inodes, 1309289 blocks
65464 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1342177280
40 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
4. 创建目录 并将 /dev/sdb1 挂在到该目录下
[root@db1 /]# ls
backup dev initrd media opt sbin sys usr
bin etc lib misc proc selinux tftpboot var
boot home lost+found mnt root srv tmp
[root@db1 /]# mkdir /u01
[root@db1 /]# ls
backup dev initrd media opt sbin sys u01
bin etc lib misc proc selinux tftpboot usr
boot home lost+found mnt root srv tmp var
[root@db1 /]# mount /dev/sdb1 /u01
5. 验证挂载是否成功
[root@db1 /]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 9131772 7066884 1601012 82% /
none 454256 0 454256 0% /dev/shm
/dev/sdb1 5154852 43040 4849956 1% /backup
6. 设置开机自动挂载
[root@db1 /]# vi /etc/fstab
# This file is edited by fstab-sync – see ‘man fstab-sync’ for details
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
/dev/sdb1 /u01 ext3 defaults 0 0
/dev/hdc /media/cdrom auto pamconsole,exec,noauto,m
anaged 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,m
anaged 0 0