Articles of Debian

无法写入临时统计信息文件“pg_stat_tmp / pgstat.tmp”:设备上没有剩余空间

posgtres突然停在服务器上,日志显示以下错误: 2015-08-18 02:29:22 IST ERROR: could not extend file "base/197893/198337": No space left on device 2015-08-18 02:29:22 IST HINT: Check free disk space. 2015-08-18 02:29:22 IST STATEMENT: UPDATE "data_shipmentpptlmapping" SET "pptl_id" = '2558', "time" = '2015-08-17 20:40:47.163837+00:00', "bag_seal_status" = 'close', " shipment_id_id" = 728518 WHERE "data_shipmentpptlmapping"."id" = 557513 2015-08-18 02:29:25 IST LOG: could not write […]

Ruby open-uri错误:SSL_connect SYSCALL返回= 5 errno = 0状态= SSLv2 / v3读取服务器hello A

当我在Debian中使用ruby的open-uri模块时,我注意到了一个ssl握手错误:Squeeze,但它在Debian上工作正常:Wheezy和Debian:Jessie 这是我注意到的: Debian挤压 root@0fdf024c8c42:/# cat /etc/issue Debian GNU/Linux 6.0 \n \l root@0fdf024c8c42:/# irb irb(main):001:0> require 'open-uri' => true irb(main):002:0> open("https://www.openssl.org") OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A from /usr/lib/ruby/1.9.1/net/http.rb:799:in `connect' from /usr/lib/ruby/1.9.1/net/http.rb:799:in `block in connect' from /usr/lib/ruby/1.9.1/timeout.rb:54:in `timeout' from /usr/lib/ruby/1.9.1/timeout.rb:99:in `timeout' from /usr/lib/ruby/1.9.1/net/http.rb:799:in `connect' from /usr/lib/ruby/1.9.1/net/http.rb:755:in `do_start' from /usr/lib/ruby/1.9.1/net/http.rb:744:in `start' from /usr/lib/ruby/1.9.1/open-uri.rb:306:in […]

将debian 8用户(使用$ 6标签encryption的SHA512)迁移到LDAP

我有一个从debian 8到LDAP迁移本地用户的问题。 如你所知debian 6及以上使用SHA512作为标准的用户密码encryption。 在影子文件中,它在开始时显示带有“$ 6”标签的密码。 我使用http://www.padl.com/OSS/MigrationTools.html推荐的迁移工具 但是当我尝试迁移用户。 它给了我 {crypt}x 代替 {CRYPT}<salt>$<hashed password> 通常在将现有用户迁移到LDAP时,我将用户从旧版debian(debian 5或之前版本)中迁移出来。 其中用户用MD5encryptionencryption。 这些工具总是以小的修改工作。 我有什么办法将本地用户与SHA512散列密码迁移到LDAP? 感谢您的帮助或答复。

我需要在远程Linux服务器上安装,以便能够使用ssh -X连接它?

没有graphics环境,它被configuration为通过命令行进行访问和pipe理。 这是Debian,但我认为这个问题对于所有的发行版来说都是一般的…我正要安装xorg,然而许多“将要安装的额外软件包”显然是graphics卡驱动程序。

使用useradd而不是adduser创build的用户加载错误的提示

我已经devise了我的bash提示符,像这样\u@\h> 当我现在使用adduser创buildUser example时,我的提示看起来像example@host>但是当我使用useradd创build用户时,我的提示看起来像\u@\h> PS1: \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\] PS2: > PS3:空的 PS4: + 任何想法如何解决这一问题?

debian:如何提高SSH的超时?

当我在我的debian服务器上使用SSH时,闲置3分钟后断开连接。 有什么办法把这个价值提高到4个小时? 问候

WordPress的最佳实践,直接自动更新和用户的SFTP访问

我试图在Debian 8系统上build立一个安全的WordPress站点,并具有以下要求: 自动核心更新(FS_method“direct”) chroot对/ wp-content(对于单个用户)的SFTP访问权限 我确定这是一个非常标准的设置。 不过,我找不到一个教程如何适合在一起。 首先,使用FS_method“直接”工作进行自动核心更新,大多数WordPress都必须由www-data拥有,即: chown -R www-data.www-data /var/www/wordpress 此外,我有一个本地帐户“sftp-wordpress”,我把它放在“www-data”组中。 我制作了wp-content和组内可写的所有内容(group是www-data,见上面),所以sftp-wordpress能够编写,并且 – 为了安全起见,我制作了“wp-content”及其子目录setgid的: chmod -R g+w /var/www/wordpress/wp-content find /var/www/wordpress/wp-content -type d -exec chmod g+s {} \; 第一个问题:要设置chroot,我把以下内容放在/ etc / ssh / sshd_config中: Match User sftp_wordpress ChrootDirectory /var/www/wordpress/wp-content ForceCommand internal-sftp -u 0002 AllowTcpForwarding no 这是行不通的,因为OpenSSH不喜欢ChrootDirectory的权限和所有者: fatal: bad ownership or modes for chroot directory […]

适用于10GbE设备的NUMA_NODE

我的服务器报告所有以太网设备的numa_node = -1。 我对高速UDP捕获(所有巨型数据包)感兴趣。 我正在运行Debian Wheezy(内核3.2.68-1 + deb7u2)。 我被告知需要将数据接收过程固定到离NiC最近的NUMA节点(PCIe x8插槽上的Intel 82599EB和ixgbe驱动程序)。 有没有办法找出哪个NUMA节点是我的以太网卡挂钩?

无人值守升级没有运行

我已经安装了无人值守升级包,并在/etc/cron.daily/apt有一个apt cron,但是没有自动运行。 /var/log/unattended-upgrades/中没有任何内容,并且有待定的升级。 20auto升级看起来像: APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Unattended-Upgrade "1"; 50个无人值守升级看起来像: // Automatically upgrade packages from these origin patterns Unattended-Upgrade::Origins-Pattern { // Archive or Suite based matching: // Note that this will silently match a different release after // migration to the specified archive (eg testing becomes the // new stable). // "o=Debian,a=stable"; // "o=Debian,a=stable-updates"; // "o=Debian,a=proposed-updates"; […]

更新mysql与apt-get(Debian)时出错

我正在运行一个Debian 7(wheezy)机器,我正在使用apt-get update && apt-get upgrade来做我的正常软件包更新,除了mysql服务器外,似乎一切都已经更新了。 当我运行apt-get upgrade时,我得到了这个结果: The following packages will be upgraded: mysql-server-5.5 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 18 not fully installed or removed. Need to get 0 B/2,092 kB of archives. After this operation, 2,048 B of additional disk space will be used. Do you […]