AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-58595

alfish's questions

Martin Hope
alfish
Asked: 2013-10-23 08:51:08 +0800 CST

无法在 Debian Squeeze 上安装 postfix

  • 1

我有这个奇怪的问题:apt-get 或 aptitude 无法安装 postfix。每次我收到此错误时:

# apt-get install postfix
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 postfix : Depends: libsasl2-2 but it is not going to be installed
E: Broken packages

和

# aptitude install postfix
The following NEW packages will be installed:
  postfix ssl-cert{a} 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,417 kB of archives. After unpacking 3,535 kB will be used.
The following packages have unmet dependencies:
  exim4-config: Conflicts: postfix but 2.7.1-1+squeeze1 is to be installed.
  libsasl2-2: Breaks: postfix (<= 2.8.3-1) but 2.7.1-1+squeeze1 is to be installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     postfix [Not Installed]                            



Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

/etc/apt/sources.list:

# deb http://ftp.de.debian.org/debian/ squeeze main

deb http://ftp.de.debian.org/debian/ squeeze main
deb-src http://ftp.de.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ squeeze-updates main
deb-src http://ftp.de.debian.org/debian/ squeeze-updates main



deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all


# MariaDB 10.0 repository list - created 2013-10-11 09:14 UTC
# http://mariadb.org/mariadb/repositories/
deb http://mirror.netcologne.de/mariadb/repo/10.0/debian squeeze main
deb-src http://mirror.netcologne.de/mariadb/repo/10.0/debian squeeze main

我试图 --purge 删除 potfix 和 exim5,然后重新安装,但问题仍然存在。感谢您的提示。

postfix
  • 1 个回答
  • 1119 Views
Martin Hope
alfish
Asked: 2013-10-07 23:13:15 +0800 CST

如何将 nginx 文件上传模块添加到 Debian Squeeze?

  • 1

我需要在我的 Debian Squeeze 服务器中使用 nginx 上传模块。我已经安装了 nginx 和 nginx-extras。nginx 版本是 1.4.2。从 nginx-extras 的包描述中,似乎应该包含上传模块,但是 nginx -V 给了我这个列表:

nginx version: nginx/1.4.2
TLS SNI support enabled
configure arguments: 
--prefix=/usr/share/nginx 
--conf-path=/etc/nginx/nginx.conf 
--error-log-path=/var/log/nginx/error.log 
--http-client-body-temp-path=/var/lib/nginx/body 
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi 
--http-log-path=/var/log/nginx/access.log 
--http-proxy-temp-path=/var/lib/nginx/proxy 
--http-scgi-temp-path=/var/lib/nginx/scgi 
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi 
--lock-path=/var/lock/nginx.lock 
--pid-path=/var/run/nginx.pid 
--with-pcre-jit 
--with-debug 
--with-file-aio 
--with-http_addition_module 
--with-http_dav_module 
--with-http_flv_module 
--with-http_geoip_module 
--with-http_gzip_static_module 
--with-http_gunzip_module 
--with-http_image_filter_module 
--with-http_mp4_module 
--with-http_perl_module 
--with-http_random_index_module 
--with-http_realip_module 
--with-http_secure_link_module 
--with-http_stub_status_module 
--with-http_ssl_module 
--with-http_sub_module 
--with-http_xslt_module 
--with-ipv6 
--with-mail 
--with-mail_ssl_module 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/headers-more-nginx-module 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-auth-pam 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-cache-purge 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-dav-ext-module 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-development-kit 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-echo 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/ngx-fancyindex 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-push-stream-module 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-lua 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-upload-progress 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-upstream-fair 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-syslog 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/ngx_http_pinba_module 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/ngx_http_substitutions_filter_module 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/ngx_pagespeed 
--add-module=/usr/src/nginx/source/nginx-1.4.2/debian/modules/nginx-x-rid-header 
--with-ld-opt=-lossp-uuid

其中不包括上传模块。该清单还确认自 nginx 1.2.1 以来上传模块应该在挤压 nginx-extras 中。

我尝试从源代码重新打包 nginx 并使用本指南配置上传模块,但在编译时出错。我还通过将 repos 添加到 /etc/apt/sources.list 来安装 Wheezy 包,但它们也不包含上传模块。

我对从源代码构建 nginx 犹豫不决,所以我真的没有其他想法并感谢您的提示。

附言

 dpkg --list | grep -i nginx
ii  nginx-common                        1.4.2-1~dotdeb.0             small, powerful, scalable web/proxy server - common files
ii  nginx-extras     

               1.4.2-1~dotdeb.0             nginx web/proxy server (extended version)


$dpkg --listfiles nginx-extras
/.
/usr
/usr/lib
/usr/lib/perl5
/usr/lib/perl5/auto
/usr/lib/perl5/auto/nginx
/usr/lib/perl5/auto/nginx/nginx.bs
/usr/lib/perl5/auto/nginx/nginx.so
/usr/lib/perl5/nginx.pm
/usr/sbin
/usr/sbin/nginx
/usr/share
/usr/share/doc
/usr/share/doc/nginx-extras
/usr/share/doc/nginx-extras/copyright
/usr/share/doc/nginx-extras/changelog.gz
/usr/share/doc/nginx-extras/changelog.Debian.gz
/usr/share/doc/nginx-extras/CHANGES.gz
nginx
  • 1 个回答
  • 1910 Views
Martin Hope
alfish
Asked: 2012-12-18 07:47:41 +0800 CST

如何跟踪 Linux 中的分段错误?

  • 0

我的服务器突然宕机,ISP 支持说它可能有分段错误。我想知道如何追踪并可能解决此问题,以免再次发生?

谢谢

segmentation-fault
  • 1 个回答
  • 2544 Views
Martin Hope
alfish
Asked: 2012-09-20 14:46:03 +0800 CST

最小 mysql wait_timeout?

  • 1

在经常遭受最大连接数饱和的严重打击的数据库服务器上,mysqltuner.pl 建议我设置

wait_timeout (< 1)

我想知道遵循建议并将值设置为 1 甚至零的分数是否明智。

mysql
  • 1 个回答
  • 878 Views
Martin Hope
alfish
Asked: 2012-09-11 11:02:50 +0800 CST

如何在 nginx 中定义两个不同 IP 的服务器?

  • 4

这是问题所在:我有两个域指向服务器上的两个可用 IP。说:

siteone.com 指向 1.2.3.4 sitetwo.com 指向 1.2.3.5

我为配置 nginx vhosts 所做的就是把

server {
        listen    site1.com:80; # 
        server_name   site1.com www.site1.com;

在 vhost1 文件和

server {
        listen    site2.com:80; # 
        server_name   site2.com www.site2.com;

在(单独的)vhost2 文件上。当然,这两个 vhost 文件是精确复制的,除了 site1 和 site2 路径。vhost1 本身运行良好。

但是在重启 nginx 后我得到这个错误:

重启nginx:配置文件/etc/nginx/nginx.conf 语法正常 [emerg]: bind() to 1.2.3.5:80 failed (99: Cannot assign requested address) 配置文件/etc/nginx/nginx.conf test失败的

当我放

server {
        listen   *:80; # 
        server_name   site2.com www.site2.com;

在 site2 虚拟主机上,nginx 重新启动时没有错误,但不会在 site2 路径上呈现页面。

我很困惑,感谢你的帮助。

nginx
  • 1 个回答
  • 2952 Views
Martin Hope
alfish
Asked: 2012-09-05 13:28:17 +0800 CST

如何保护内存缓存?

  • 4

在 Debian 中,我安装了 memcached(使用本指南)以降低 mysql 数据库上难以管理的负载。数据库在单独的服务器上,memcached和varnish在前端服​​务器上。让 memcached 不受防火墙保护是否存在潜在的安全漏洞?如果是这样,我应该如何保护它?这种情况尤其令人担忧,因为我已经收到(未经证实的)服务器上 cookie 盗窃的报告。谢谢

security
  • 1 个回答
  • 9243 Views
Martin Hope
alfish
Asked: 2012-08-24 10:40:49 +0800 CST

服务器级风扇的预期寿命是多少?

  • 2

我猜标题很能说明问题。特别是,我想知道不更换已使用 4 年的 Supermicro 服务器的风扇会有多大风险?

supermicro
  • 3 个回答
  • 1101 Views
Martin Hope
alfish
Asked: 2012-08-23 22:33:58 +0800 CST

我可以在板上混合使用两个时钟速度不同的 cpu 吗?

  • 4

我收到了一台配备至强 E5405 (2GHz) 处理器的旧服务器。我想购买并添加一个更强大的 cpu(类似于 Xeon X5492),它具有更高的时钟速度但具有相同的 LGA 771插槽。目的是提高计算能力,以达到最佳效果。

所以我想知道混合 cpus 在技术上是否可行,如果可以,这是个好主意吗?也就是说,使用混合的可能缺点是什么?谢谢

central-processing-unit
  • 1 个回答
  • 3320 Views
Martin Hope
alfish
Asked: 2012-07-08 03:01:39 +0800 CST

如何在 Linux 中查看传入 IP?

  • 34

我想知道什么是命令/实用程序来实时查看传入的 IP 到我的服务器,最好是连同端口和连接。

networking monitoring ip
  • 6 个回答
  • 92387 Views
Martin Hope
alfish
Asked: 2012-06-30 09:13:36 +0800 CST

如何阻止使用 nginx 的机器人?

  • 1

我需要检测充当经过身份验证的用户并通过发送重复请求使数据库的可用连接饱和的机器人。我想知道是否可以使用 nginx 指令停止虚拟它们?

这个想法是在 nginx configuartion 中设置一些规则,以便自动拒绝在时间范围内连接超过特定数量(比如每分钟 30 次)的 IPS。

nginx rules
  • 1 个回答
  • 1678 Views
Martin Hope
alfish
Asked: 2012-06-30 03:31:16 +0800 CST

如何将mysql服务器绑定到某个IP?

  • 0

在我尝试添加的远程 mysql 5.5 服务器中

bind-address = 11.22.33.44

其中bind-address = 127.0.0.1已经注释掉,11.22.33.44是web服务器与数据库服务器通信的Ip。但是添加该行后mysql没有重启。有解决这个问题的想法吗?另外,我想知道其他加强连接的方法。

mysql5.5 my.cnf
  • 1 个回答
  • 2358 Views
Martin Hope
alfish
Asked: 2012-06-18 13:34:59 +0800 CST

如何自动恢复php-fpm?

  • 1

我在 Debian Squeeze 上使用 nginx+php-fpm 来处理繁忙的服务器,并且很难处理达到的最大连接数。这里的问题是 php 进程有时会在高负载下随机死亡,并使服务器没有 php 进程。然后我需要手动重启 php5-fpm 服务来恢复服务器。

我想知道如何避免这种情况发生,或者至少通过在没有 php 进程留下来侦听传入请求时自动重新启动 php5-fpm 来治疗这些症状。我的相关配置是:

pm = dynamic
pm.max_children = 1400

pm.start_servers = 10
pm.max_spare_servers = 20
pm.process_idle_timeout = 1s; #not sure it will be useful when pm=dynamic
pm.max_requests = 100000
request_terminate_timeout = 30

感谢您提出的解决这个棘手问题的建议。

debian monitoring timeout php-fpm
  • 3 个回答
  • 6299 Views
Martin Hope
alfish
Asked: 2012-06-13 09:31:41 +0800 CST

如何在 LInux 中将用户密码归因于另一个用户密码

  • -3

这里的问题是:我希望用户 A 和用户 B 拥有相同的密码。该怎么做?

password
  • 1 个回答
  • 72 Views
Martin Hope
alfish
Asked: 2012-06-13 09:07:41 +0800 CST

当我在 linux 中删除用户时,用户文件会发生什么?

  • 12

这几乎是个问题:我想知道谁拥有属于已删除用户的文件

users
  • 3 个回答
  • 14997 Views
Martin Hope
alfish
Asked: 2012-05-15 04:37:21 +0800 CST

如何修复 apache2 中的“文件名太长”错误?

  • 4

我在 Debian 上的 apache 错误日志中看到很多“文件名太长”错误。

我怎样才能解决这个问题?

apache-2.2 debian-squeeze
  • 1 个回答
  • 14794 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve