新建一个目录,例如在var下新建fonts目录,将TTF字体复制到其中,修改/ect/fonts/fonts.conf配置文件。找到下面的第一行行,把最后一行加进去,这样系统就能找到字体文件的所在目录了。 dir~/.fonts/dir dir/var/fonts/dir 执行fc-cache 命令,然后在外观手...
修改/etc/php5/apache2下的php.ini,具体项如下: upload_max_filesize = 20M post_max_size = 20M memory_limit = 256M 当然,如果文件过大,会出现时间问题,必要的话,做如下修改: max_execution_time = 300 max_input_time = 600...
ps -ef | grep apache2 | wc -l...
If you are running Debian, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website. You should be able to use any of the listed mirrors by a...
1、网关主机设置 eth0为外网网卡, eth1是内网网卡。 (1) 修改/etc/network/interfaces文件内容如下: auto lo eth0 eth1 iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address 172.16.21.1 netmask 255.255.0.0 gateway 172.16.1.1 if...
1、安装Lamp软件 apt-get install mysql-server-5.0 apt-get install apache2 apt-get install php5 apt-get install php5-gd apt-get install php5-mysql 软件的依赖关系会自动配置好。 *安装顺序为mysql、apache、php,这样不容易出错。 2、修改配置文件 vi...
使用bootrec /fixmbr修复Windows7引导记录后,Debian启动项丢失,修复方法: 用linux安装盘进rescue模式,在Shell中运行grub-install /dev/hda 注:/dev/hda可以修改为自己为的分区,如grub-install /dev/sda3,有时候需要加--force参数。...
修改/etc/network/interfaces文件: auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.4 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 修...
FreeBSD下的包过滤工具有IPFW,IPF以及PF,它们各有特点。PF原本是OpenBSD下的包过滤工具,FreeBSD开发人员已经把PF移植到了FreeBSD上了。如果要在FreeBSD上使用PF,需如下操作: 1. 编译内核: cd /usr/src/sys/i386/conf cp GENERIC LOULAN 编辑 LOULAN加入...
下载liveusb-creator: https://fedorahosted.org/liveusb-creator/ 使用liveusb-creator把镜像写入U盘。 把Fedora-15-x86_32-DVD.iso复制到U盘根目录。 修改U盘/syslinux/syslinux.cfg,改成append initrd=initrd.img linux askmethod 开机,从U盘启动,在I...