小编mzh*_*ase的帖子

无法在 Linux 上安装 Nginx

我刚刚创建了一个 Ubuntu 服务器。我尝试安装 Nginx,但出现错误。

root@scw-eefca0:~# sudo apt-get install nginx
Reading package lists... Done
Building dependency tree        
Reading state information... Done
nginx is already the newest version (1.10.0-0ubuntu0.16.04.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up nginx-core (1.10.0-0ubuntu0.16.04.4) ...
Job for nginx.service failed because the control process exited with error …
Run Code Online (Sandbox Code Playgroud)

linux ubuntu nginx

7
推荐指数
1
解决办法
1万
查看次数

SCP 更改文本文件内容

我正在尝试从机器 A 复制文件:

apt policy openssh-client
openssh-client:
  Installiert:           1:7.2p2-4ubuntu2.4
Run Code Online (Sandbox Code Playgroud)

到机器 B:

apt-cache policy openssh-client
openssh-client:
    Installiert: 1:5.5p1-6+squeeze5
Run Code Online (Sandbox Code Playgroud)

在 A:

scp myfile <server>:/myfile
md5sum myfile
2ba67c5e816350d4d2e2e7fd883037e7
file myfile
myfile: Python script, ASCII text executable
Run Code Online (Sandbox Code Playgroud)

在 B 上:

md5sum myfile
8883620c2a0878da1db273101b55124d
file myfile
myfile: ASCII Java program text
Run Code Online (Sandbox Code Playgroud)

查看文本文件,似乎每一行都比最后一行多一个空格,所以不是:

import argparse, os, sys

from subprocess import check_output

def count_voicemails(dir):
    # find is faster than ls, since it does not check attributes
    command = 'find {}/INBOX -maxdepth 1 | wc -l'
    count   = …
Run Code Online (Sandbox Code Playgroud)

ssh scp

6
推荐指数
1
解决办法
1052
查看次数

Puppet 不签署证书

我已经为 puppet 建立了一个测试实验室,但它不起作用。我puppet agent在节点上启动并等待证书。

root:~# puppet agent --server xxxx --waitforcert 60 --test
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
Run Code Online (Sandbox Code Playgroud)

在服务器上,现在找到挂起的证书请求:

root:~# puppet cert --list                                                                                                        
root:~#
Run Code Online (Sandbox Code Playgroud)

在 masterhttpd 日志中:

root:~# tail /var/log/puppet/masterhttp.log
[2012-01-06 09:19:17] xxx - - [06/Jan/2012:09:19:17 CET] "GET /production/certificate/xx HTTP/1.1" 404 30
[2012-01-06 09:19:17] - -> /production/certificate/pgw
[2012-01-06 09:19:47] xxx - - [06/Jan/2012:09:19:47 CET] …
Run Code Online (Sandbox Code Playgroud)

debian puppet debian-squeeze

5
推荐指数
1
解决办法
2333
查看次数

故障转移集群中是否可以有多个存储服务器?

我熟悉设置 RAID 阵列,并且正在我的家庭环境中运行一些。

我想知道是否可以在故​​障转移配置中拥有多个存储服务器。

我希望通过这个实现的是对这些服务器有一定的冗余。当一台服务器出现故障时,可以完全更换它而不会丢失数据。我的意思不仅仅是磁盘故障,而是更严重的事情。可能是 BIOS 损坏。我以前吃过那些……不漂亮。

实现这一目标的最佳方法是什么,我必须如何设置它?

raid failover redundancy software-raid hardware-raid

-2
推荐指数
1
解决办法
1575
查看次数