我很难完全清除鱿鱼,重新安装它。 (Debian 6)。 所以我用作根: apt-get remove –purge squid apt-get remove –purge squid3 但 find / -name squid* 回报 /var/cache/squid /var/lib/dpkg/info/squid-cgi.conffiles /var/lib/dpkg/info/squidclient.md5sums /var/lib/dpkg/info/squid-cgi.md5sums /var/lib/dpkg/info/squidclient.list /var/lib/dpkg/info/squid-cgi.list /var/spool/squid /etc/squid3 /etc/squid3/squid.conf.orig /etc/squid /etc/logcheck/ignore.d.workstation/squid /etc/logcheck/ignore.d.paranoid/squid /etc/logcheck/ignore.d.server/squid /usr/share/doc/squid-cgi /usr/share/doc/squidclient /usr/share/man/man1/squidclient.1.gz /usr/share/vim/vim72/syntax/squid.vim /usr/bin/squidclient 除了日志和dpkg文件。 我应该删除一些这些文件/文件夹,以便能够没有旧问题的工作?
我在Debian Squeeze系统上运行puppet 2.7.9。 我瞄准的那个盒子被命名为“傀儡” # hostname puppet # facter | grep hostname hostname => puppet # cat /etc/hosts | head -n2 127.0.0.1 localhost 127.0.1.1 puppet.example.com puppet 我的节点定义如下所示: node puppet { include base, puppet } 尽pipe节点文档断言 节点名称可以是简短的主机名或完全限定的域名(FQDN)。 上面的节点定义只会在我用短主机名replaceFQDN或使用正则expression式匹配时触发,如:“/^puppet..*/”。 使用简短的主机名称定义: # puppet agent -vt info: Caching catalog for puppet.example.com info: Applying configuration version '1327898040' notice: Finished catalog […]
我刚刚build立了OSSEC,但是我不小心把自己从家里的IP上关了出来。 那么OSSEC是否有一个function来阻止IP被阻塞后,还是需要在iptables中手动执行? OSSEC也提供了临时禁止IP的方法吗?
我有以下.htaccess文件: RewriteEngine on RewriteBase / RewriteRule ^(/?)dir/?$ $1dir/subdir [L] RewriteRule ^(/?)subdir2/?$ $1dir/subdir/subdir2 [L] redirect工作正常,如果我键入域的IP,但在域名/目录input根本不redirect我,而是显示目录的内容。 另一个问题:正如我所说的,redirectIP工作正常。 不过,虽然没有设置“R”标志,但是url地址会改变。 IP / dir变成IP / dir / subdir。 为什么? 编辑(11:20 GMT + 1):不太确定是否有任何相关性,但在今天之前,服务器没有一个域。 我刚刚买了一个域名,并设置了所有指向服务器的名称服务器。 由于我可以访问该页面,它显示了/ dir文件夹的内容,我假设我没有搞砸任何东西。 编辑(12:51 GMT + 1):输出从apachectl -S: apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.10.188 for ServerName VirtualHost configuration: wildcard NameVirtualHosts […]
我试图从apache切换到nginx,但是我对bash不是很有经验,所以我遇到了一些麻烦。 我试图在Debian 6上安装最新的稳定版本的nginx,PHP 5.3.10和MySQL 5.5。 默认回购包含过时的产品版本,所以我试图从dotdeb.org回购安装。 问题是dotdeb有一些产品,默认的debian repo也是这样,它提示我安装debain repo的老版本,而不是一个dotdeb。 我试图评论debian repos离开我只是dotdeb的,但现在我不能安装各种产品PHP / MySQL需要的要求(因为dotdeb不包括在他们的回购)。 有没有一种方法来指定我想从某个回购下载东西,并从另一个回购安装要求?
一段时间以来,我一直在做任何与apt-get相关的任务时遇到这个错误: Preparing to replace python-cairo 1.4.12-1.2 (using …/python-cairo_1.8.8-1+b1_i386.deb) … Traceback (most recent call last): […] File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default ValueError: /usr/bin/python does not match the python default version. It must be reset to […]
我有一个大约服务器来加速Debian apt更新,在我的Ubuntu 11.04台式电脑上,它过去运行良好,但今天乐9999端口是从本地打开,但不是为其他PC。 我根本没有修改inetdconfiguration。 我可以检查和尝试什么? inetd.conf中 9999 stream tcp nowait approx /usr/sbin/approx /usr/sbin/approx approx.com # Here are some examples of remote repository mappings. # See http://www.debian.org/mirror/list for mirror sites. debian http://ftp2.fr.debian.org/debian security http://security.debian.org/debian-security volatile http://volatile.debian.org/debian-volatile # The following are the default parameter values, so there is # no need to uncomment them unless you want […]
我正在运行Debian 6 64bit。 我想要做的是在启动时运行Unison,不断监视我的虚拟机上运行的LAMP服务器上的文件,并与虚拟机共享文件夹进行同步。 while true do unison -batch -owner -group /folder1/ /folder2/ sleep 10 done 现在,我可以得到这个脚本在启动时运行…但问题是,它挂起。 即使我使用nohup,它挂在nohup对话框。 另外,如果有办法我可以使用nohup,我真的宁愿不logging任何东西。 但是,我无法在nohup或unison文档中find此选项。 我可能会忽略它,但我找不到它。 我确定有一种方法可以将Apache链接到另一个文件夹,然后使用它…但是我仍然想知道如何做到这一点,因为我可以在不同的环境下使用它。 谢谢
首先在服务器上的一些背景信息: 主机操作系统:Debian Linux Squeeze + qemu-kvm版本1.0 + dfsg-8〜bpo60 + 1 客户操作系统:Debian Linux Squeeze 我通过libvirt使用qemu-kvm。 在Guest XMLconfiguration中,我已经使用以下方法设置了9p VirtFS: <filesystem type='mount' accessmode='passthrough'> <source dir='/srv/www'/> <target dir='wwwdata'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </filesystem> 也就是说,我想使用挂载标签wwwdata将/ srv / www共享到guest OS。 当我尝试从guest虚拟机安装VirtFS共享时,出现错误消息: root@server:~# mount -t 9p -o trans=virtio,version=9p2000.L2 wwwdata /srv/www/ mount: wwwdata: can't read superblock 首先,我也尝试了virtfs target dir / mount_tag […]
基本上我有这个简化的文件系统: File system Dim. Usati Disp. Uso% Montato su /dev/md1 10G 4,0G 5,5G 43% / /dev/md2 683G 438G 211G 68% /home 我现在删除我的/home目录中的一些文件,我看到第一个分区的可用空间增加( / ) 存储在/dev/md2和/dev/md1文件之间是否有任何关联? 也许/home文件的inode存储在/dev/md1 ?