LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1130|回复: 3

误删 etc/下的文件

[复制链接]
发表于 2007-8-11 11:01:31 | 显示全部楼层 |阅读模式
误删了/etc/apache2整个资料夹
怎么恢复呢
多谢阿
发表于 2007-8-11 11:29:43 | 显示全部楼层
apt-get install --reinstall apache2
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-11 13:42:23 | 显示全部楼层
还是没有重新建立/etc/apache

debian1:/etc# ls apache*
ls: apache*: No such file or directory

debian1:/etc# apt-get install --reinstall apache2
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/38.6kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?Y

(Reading database ... 47681 files and directories currently installed.)
Preparing to replace apache2 2.2.3-4 (using .../apache2_2.2.3-4_all.deb) ...
Unpacking replacement apache2 ...
Setting up apache2 (2.2.3-4) ...

debian1:/etc# ls apache*
ls: apache*: No such file or directory
回复 支持 反对

使用道具 举报

发表于 2007-8-12 11:20:40 | 显示全部楼层
够狠。
apt-get remove apache2 --purge
apt-get install apache2
原来设置反正都没了,就只能这样了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表