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-101375

ylluminate's questions

Martin Hope
ylluminate
Asked: 2020-04-25 10:09:09 +0800 CST

Windows Server 2019 ReFS 实施是否支持压缩?

  • 1

似乎有很多关于微软在 Windows Server 2019 中向 ReFS 添加缺失功能的议论。磁盘压缩现在可用吗?如果是这样,它是否与重复数据删除结合使用?

windows-server-2019 refs
  • 2 个回答
  • 966 Views
Martin Hope
ylluminate
Asked: 2019-10-20 17:17:32 +0800 CST

为本地主机传送运行辅助 SMTP 服务器会导致传送问题吗?

  • 2

我有一个场景,我正在使用来自 cPanel 的主 SMTP 服务器,但是由于正在使用的 Ruby 库中的错误,我正在第二台服务器上运行 Dockerized Web 应用程序,该服务器无法传送到主 smtp 服务器.

当域已经有一个现有的主 STMP 服务器时,将 Postfix 或 Exim 设置为 Docker 应用程序服务器上的本地 SMPT 服务器以供系统用于传递电子邮件是否会导致任何问题?为了消除这种配置中的任何问题,是否有一些额外的步骤是必需的?

ubuntu
  • 1 个回答
  • 176 Views
Martin Hope
ylluminate
Asked: 2015-04-21 21:38:19 +0800 CST

如何在 Linux 上通过 mt 解决磁带备份问题以进行 Windows 备份?

  • 0

我有一个 HP Ultrium 448 磁带备份,它在 Ubuntu 上被识别,似乎没有问题。我可以在/dev/st0.

当我发出mt -f /dev/st0 offline时,磁带弹出。当我发出mt -f /dev/st0 status时,我得到:

SCSI 2 tape drive: 
File number=0, block number=0, partition=0. 
Tape block size 0 bytes. Density code 0x42 (LTO-2). 
Soft error count since last status=0 
General status bits on (41010000):  
 BOT ONLINE IM_REP_EN

当我发出tar -tzf /dev/st0时,我得到:

tar (child): /dev/st0: Cannot read: Cannot allocate memory
tar (child): At beginning of tape, quitting now
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error is not recoverable: exiting now

我怀疑这是因为它是使用 Windows Server 2003Backup实用程序创建的。我意识到我可以利用mtftar来获取这些内容,但是我如何首先获取原始备份数据?例如,我最初似乎无法在此处列出驱动器上的文件内容。我是否需要通过管道启动某种读取mt,然后通过管道mtftar传输以查看备份磁带上的数据结构?

linux
  • 2 个回答
  • 2527 Views
Martin Hope
ylluminate
Asked: 2015-04-21 08:21:58 +0800 CST

如何通过 Linux 从 Windows 2003 Server HP StorageWorks Ultrium 448 Backup 恢复数据?

  • 2

我有一个场景,我必须从在 Windows 2003 服务器上制作的 Ultirum 448 磁带介质恢复备份。我唯一可用于恢复的系统是具有类似硬件的 Linux 服务器。

在这种情况下,有没有办法使用 Linux 上可用的磁带可访问性软件来恢复磁带数据?

linux
  • 1 个回答
  • 409 Views
Martin Hope
ylluminate
Asked: 2014-10-05 07:43:32 +0800 CST

如何直接隔离 Google Gmail SMTP 服务器 IP?

  • 2

我正在使用 VPN 执行一些自定义路由,这需要我将每个 Google Gmail SMTP 服务器 IP 添加到路由表中,以便它们通过另一个网关而不是 VPN 的默认网关。

据此,我可以确定 Google 的一般地址范围,但我似乎无法直接隔离 SMTP 服务器。奇怪的是,我有一次向一家 VPN 公司询问,他们回复了所有特定的 Gmail SMTP 服务器,但没有也不会解释如何确定这些 IP 地址。

如何通过 shell 咒语隔离这些 IP 地址?一个标准的 GNU Linux 或 OS X 方法就可以了。

routing
  • 3 个回答
  • 1867 Views
Martin Hope
ylluminate
Asked: 2014-02-20 16:36:22 +0800 CST

如何找到完整的进程参数和相关的监听端口?

  • 5

我可以执行netstat -atulpn | grep java以查找所有 Java 进程及其附带的端口,这很棒,但是我还希望显示进程的完整执行参数。我不相信这是可能的,netstat从我到目前为止探索的所有内容中,所以我想我必须编写一个脚本来处理输出,netstat然后将 pids 传递到ps然后美化输出以显示ip+port 和完整的命令行。

有没有更好的方法来做到这一点,或者这是唯一的选择?

linux
  • 3 个回答
  • 4670 Views
Martin Hope
ylluminate
Asked: 2013-05-24 20:25:59 +0800 CST

MySQL 内存消耗高,查询性能差,需要调整哪些设置?

  • 0

我有一个数据库相当大的场景。它大约有 3GB,我在系统资源方面遇到了一些困难。例如,这是 htop 输出的示例: 在此处输入图像描述

您可以观察到这里有很多未使用的线程,但是我在mysqlreport输出中看到我们遇到了一些问题,特别是在使用的连接数 101.11%(90 个中有 91 个)和 InnoDB 缓冲区的大小池 99.65% 使用:

MySQL 5.5.30-30.2-log    uptime 17 7:43:49      Thu May 23 21:18:30 2013

__ Key _________________________________________________________________
Buffer used     4.69M of 384.00M  %Used:   1.22
  Current      76.39M            %Usage:  19.89
Write hit      93.73%
Read hit       99.89%

__ Questions ___________________________________________________________
Total         209.84M   140.2/s
  QC Hits     158.88M   106.2/s  %Total:  75.71
  DMS          43.01M    28.7/s           20.50
  Com_          7.34M     4.9/s            3.50
  COM_QUIT    610.81k     0.4/s            0.29
  -Unknown      3.32k     0.0/s            0.00
Slow 10 s       1.11M     0.7/s            0.53  %DMS:   2.58  Log:  ON
DMS            43.01M    28.7/s           20.50
  SELECT       35.75M    23.9/s           17.04         83.12
  INSERT        4.16M     2.8/s            1.98          9.67
  UPDATE        2.62M     1.8/s            1.25          6.10
  DELETE      482.21k     0.3/s            0.23          1.12
  REPLACE           0       0/s            0.00          0.00
Com_            7.34M     4.9/s            3.50
  begin         2.48M     1.7/s            1.18
  commit        2.48M     1.7/s            1.18
  set_option    1.22M     0.8/s            0.58

__ SELECT and Sort _____________________________________________________
Scan            2.07M     1.4/s %SELECT:   5.79
Range           1.02M     0.7/s            2.85
Full join      66.72k     0.0/s            0.19
Range check         0       0/s            0.00
Full rng join  16.58k     0.0/s            0.05
Sort scan       1.33M     0.9/s
Sort range    775.90k     0.5/s
Sort mrg pass   5.54k     0.0/s

__ Query Cache _________________________________________________________
Memory usage   44.45M of 128.00M  %Used:  34.73
Block Fragmnt  14.39%
Hits          158.88M   106.2/s
Inserts        32.44M    21.7/s
Insrt:Prune    8.58:1    19.2/s
Hit:Insert     4.90:1

__ Table Locks _________________________________________________________
Waited          1.55k     0.0/s  %Total:   0.00
Immediate      77.82M    52.0/s

__ Tables ______________________________________________________________
Open             1017 of 1024    %Cache:  99.32
Opened         32.31k     0.0/s

__ Connections _________________________________________________________
Max used           91 of   90      %Max: 101.11
Total         610.95k     0.4/s

__ Created Temp ________________________________________________________
Disk table    849.03k     0.6/s
Table           3.27M     2.2/s    Size:  64.0M
File           60.07k     0.0/s

__ Threads _____________________________________________________________
Running             1 of    3
Cached             13 of   16      %Hit:  99.93
Created           418     0.0/s
Slow                0       0/s

__ Aborted _____________________________________________________________
Clients           271     0.0/s
Connects        3.17k     0.0/s

__ Bytes _______________________________________________________________
Sent          654.61G  437.4k/s
Received       74.53G   49.8k/s

__ InnoDB Buffer Pool __________________________________________________
Usage           2.49G of   2.50G  %Used:  99.65
Read hit      100.00%
Pages
  Free            567            %Total:   0.35
  Data        143.48k                     87.57 %Drty:   0.76
  Misc          19796                     12.08
  Latched                                  0.00
Reads          16.95G   11.3k/s
  From file   152.16k     0.1/s            0.00
  Ahead Rnd         0       0/s
  Ahead Sql                 0/s
Writes          1.36G   908.9/s
Flushes        16.35M    10.9/s
Wait Free           0       0/s

__ InnoDB Lock _________________________________________________________
Waits            7986     0.0/s
Current             0
Time acquiring
  Total       5380317 ms
  Average         673 ms
  Max           51648 ms

__ InnoDB Data, Pages, Rows ____________________________________________
Data
  Reads       688.56k     0.5/s
  Writes       23.27M    15.5/s
  fsync         7.03M     4.7/s
  Pending
    Reads           0
    Writes          0
    fsync           0

Pages
  Created     632.93k     0.4/s
  Read        688.43k     0.5/s
  Written      16.35M    10.9/s

Rows
  Deleted      59.09M    39.5/s
  Inserted    132.33M    88.4/s
  Read         10.31G    6.9k/s
  Updated     246.23M   164.5/s

/etc/my.cnf 中这两个特定项目的实际设置是:

max_connections=250
innodb_buffer_pool_size = 2560M

显然出于某种原因,连接被限制为90vs 250,我猜我需要提高 的限制innodb_buffer_pool_size,但是我不太容易看到要缩减的区域,这将给我 RAM 来提高它。

这个快照不是在一天中的繁忙时间拍摄的,但是依赖这个数据库的系统非常慢。

关于什么 MySQL conf 设置的任何输入都会为这个问题产生必要的结果?

mysql
  • 1 个回答
  • 511 Views
Martin Hope
ylluminate
Asked: 2013-04-25 09:23:47 +0800 CST

回顾一个 crontab 脚本,为每分钟运行添加时间戳;有什么建议么?

  • 0

我有一个 crontab 作业设置为每分钟运行一次:

* * * * * /home/username/public_html/domain.tld/production/scripts/cron_runner.sh

我的目标是向 cron 的输出添加一些时间戳,这样我就可以更轻松地找到有关 webapp 内部 cron 系统中某些故障点的信息。有时我会收到消息,有时我不会收到消息,我只想执行完整性检查以确保我已在此处正确构建此脚本:

#!/usr/bin/env bash
#
# Script Name: cron_runner.sh    
#

echo "Cron Execution @ `date`: " >>/home/username/public_html/domain.tld/production/var/log/crontab_output.log 2>&1

cd /home/username/public_html/domain.tld/production && /usr/local/bin/php /home/username/public_html/domain.tld/production/cron.php >>/home/username/public_html/domain.tld/production/var/log/crontab_output.log 2>&1

echo "==== END CRON EXEC ====" >>/home/username/public_html/domain.tld/production/var/log/crontab_output.log 2>&1

有什么建议么?

bash
  • 1 个回答
  • 648 Views
Martin Hope
ylluminate
Asked: 2013-04-13 00:38:34 +0800 CST

如何在 CentOS 5.9 上从源代码构建?

  • 0

我在 CentOS 5.9 上构建iptraf-ng并遇到以下错误:

src/packet.c: In function ‘packet_process’:
src/packet.c:322: error: ‘ETH_P_QINQ1’ undeclared (first use in this function)
src/packet.c:322: error: (Each undeclared identifier is reported only once
src/packet.c:322: error: for each function it appears in.)
src/packet.c:323: error: ‘ETH_P_QINQ2’ undeclared (first use in this function)
src/packet.c:324: error: ‘ETH_P_QINQ3’ undeclared (first use in this function)
src/packet.c:325: error: ‘ETH_P_8021AD’ undeclared (first use in this function)

我假设这是来自构建没有正确看到内核或网络接口常量定义。这是在虚拟机上,普通版本的 straightiptraf不能与 vnet0 一起使用。

在此处包含支持库进行编译的正确步骤是什么?

注意:我也尝试过构建源 rpm,但是按照这里看来这是一场失败的战斗。

centos
  • 1 个回答
  • 197 Views
Martin Hope
ylluminate
Asked: 2012-08-21 13:26:47 +0800 CST

Nginx + Unicorn 子域虚拟主机失败(超时)

  • 0

我在 VPS 上设置了一个服务器,通过 Nginx + Unicorn 提供生产 Rails 应用程序。目前这适用于以下 conf 文件:

  • nginx 配置文件
  • 独角兽.conf

但是,添加的子域staging.appname.tld最终会在 中产生以下错误/var/log/nginx/error.log:

2012/08/20 16:57:39 [error] 24673#0: *174 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: staging.appname.com, request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/unicorn.appname_staging.sock:/", host: "staging.appname.com"
2012/08/20 16:58:17 [error] 24673#0: *178 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: staging.appname.com, request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/unicorn.appname_staging.sock:/", host: "staging.appname.com"
2012/08/20 16:59:29 [error] 24673#0: *182 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: staging.appname.com, request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/unicorn.appname_staging.sock:/", host: "staging.appname.com"

提供此错误的配置是:

  • nginx_staging.conf
  • unicorn_staging.conf

此外,袜子确实存在!如果我们查看 /tmp/,我们会看到:unicorn.appname.sock和unicorn.appname_staging.sock

这是输出。nginx -V

似乎配置中有什么东西关闭了,但我只是没有看到它。有人可以就此错误的来源以及如何在此上下文中正确设置子域(例如暂存环境)提出建议吗?

nginx
  • 1 个回答
  • 2659 Views
Martin Hope
ylluminate
Asked: 2012-07-13 13:31:40 +0800 CST

嗅探特定二进制文件/应用程序/进程 ID 的数据包?

  • 1

有没有办法将数据包与执行二进制文件相关联?我愿意接受传统的嗅探方法,甚至dtrace就此而言。

我在流量非常高的系统上有一个特定问题。嗅探“所有”数据包并过滤它们正在成为一个非常繁重的问题,并且在这种情况下不可能消除除违规应用程序之外的所有数据包排放。

tcpdump wireshark packet-sniffer dtrace packet-capture
  • 4 个回答
  • 3677 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