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...
Sudo是Debian中常用命令,安装好系统后还不能使用sudo,解决办法如下: 1、安装sudo # apt-get install sudo 2、修改 /etc/sudoers 文件属性为可写 # chmod u+w /etc/sudoers 3、编辑 /etc/sudoers ,添加如下行 bill ALL=(ALL) ALL #表示你要添加需要执行 ro...
问题描述:安装openSUSE 11的计算机,因时间太久没有使用过,遗忘SU密码。 解决办法: 1、启动时,选择FailSafe选项(第二个),将底部boot option(启动选项)里的内容删除,填写:init=/bin/bash 2、回车后,系统会自动进入命令提示符。 mount -o remount...