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

DextrousDave's questions

Martin Hope
DextrousDave
Asked: 2018-06-04 11:41:08 +0800 CST

重复数据删除和 ReFS

  • 1

我已经阅读了许多帖子,指出重复数据删除仅支持 NTFS 和 CSVFS,特别是不支持 ReFS。

但是在这篇相当新的文章中,它声明它是受支持的: https ://docs.microsoft.com/en-us/windows-server/storage/refs/refs-overview

谁能同意重复数据删除确实支持 ReFS?

谢谢

filesystems
  • 1 个回答
  • 882 Views
Martin Hope
DextrousDave
Asked: 2014-02-04 03:56:05 +0800 CST

批处理脚本适用于 Windows 7,但不适用于 Windows Server 2008

  • 0

美好的一天

我有以下批处理脚本循环遍历包含 .sql 文件的文件夹。当它找到一个带有今天日期时间戳的 .sql 文件时,它会将该文件复制到一个新目录中。

@echo off
setlocal enableextensions enabledelayedexpansion

set "currentDate=%date:~0,10%"
    for %%g in ("c:\mfa\*.sql") do (
     set "fileDate=%%~tg"
     set "fileDate=!fileDate:~0,10!"
     if "!fileDate!"=="%currentDate%" (
        copy "%%~fg" "c:\newLocation"
     )
    )

我的问题:

这在 Windows 7 上很好用,但在 Windows Server 2008 上不行。当我在 Win7 上回显 filedate 变量时,它会为我提供保存在 !fileDate! 中的时间戳!价值。但是当我回显!fileDate!在 Windows Server 2008 中,它返回:ECHO 已关闭。

即使我删除了延迟扩展,这仍然不起作用。

为什么它不能在 Server 2008 上运行?

===================== 更新 -

Powershell 错误

The term 'test.ps1' is not recognized as the name of a cmdlet, function, script file, or operable pro
elling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:9
+ test.ps1 <<<<
    + CategoryInfo          : ObjectNotFound: (test.ps1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
windows-server-2008
  • 1 个回答
  • 808 Views
Martin Hope
DextrousDave
Asked: 2013-12-12 00:06:45 +0800 CST

获取已登录的本地和域/远程用户列表

  • 1

在 Windows Server 2008 R2 上,我想知道哪些用户远程(和本地)登录到这台计算机。

例如,Windows 服务器位于子网 192.169.34.xxx 上,我正在从我的 PC(位于域:192.169.32.xxx)访问服务器上的文件夹。我可以通过 Windows 资源管理器访问服务器,如下所示:

\\191.169.34.55\d$

然后它要求我输入用户名和密码:我使用 serverDomain\admin 的用户名,然后是服务器上 admin 用户帐户的密码。

所以我的问题:当我这样访问服务器时,我如何从服务器查看哪些用户正在远程访问服务器,就像我从不同子网(或从同一子网,如果有)的本地 PC 做的那样

谢谢你

windows-server-2008
  • 1 个回答
  • 768 Views
Martin Hope
DextrousDave
Asked: 2013-08-12 11:53:19 +0800 CST

无法在 Centos 服务器上添加用户 - 输入/输出错误

  • 0

今天,在我的 Centos 服务器上,我尝试添加用户,但出现以下错误:

-bash: /usr/sbin/useradd: Input/output error

我如何解决它?

谢谢

更新:

var/log/messages 为空

df -h 也给了我同样的输入/输出错误:

-bash: /usr/sbin/df: Input/output error

'free' 也给了我同样的错误:

-bash: /usr/sbin/free: Input/output error

此外,我什至无法关闭服务器,即:shutdown -s,给我同样的错误。

任何想法可能是什么问题?

useradd
  • 1 个回答
  • 689 Views
Martin Hope
DextrousDave
Asked: 2013-07-24 07:24:12 +0800 CST

可以 Telnet 到端口 21 但不能 25、110

  • 1

我在我的 Centos 邮件服务器上运行 postfix 和 dovecot。

现在我可以从服务器向外部发送邮件,但我无法接收来自外部的邮件。

TELNET:当我 telnet 到我的 ip 地址到端口 21 时,它可以连接,但是当对端口 25 和 110 执行此操作时,它无法连接,因此有些东西阻止了它。

现在,在 IPTABLES 中,我启用了以下所有端口以允许流量:80,21,25,110,143。请参阅下面的我的 iptables 配置:

# Generated by iptables-save v1.4.7 on Fri Jul  5 22:08:10 2013
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [30:3200]
-A INPUT -p tcp -m tcp --dport 5252 -j ACCEPT -m comment --comment "SSH"
-A INPUT -p tcp -m tcp --dport 48001 -m comment --comment "SSH was 5252" -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -m tcp -p tcp --dport 25 -j ACCEPT
-A INPUT -m tcp -p tcp --dport 110 -j ACCEPT
-A INPUT -m tcp -p tcp --dport 143 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 0 -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT
# Completed on Fri Jul  5 22:08:10 2013
~

问题: 1、为什么我不能从外面telnet到25端口?(我相信这就是为什么我无法接收来自外部的邮件的原因。

注意:我的 MX 记录和反向 DNS 都可以正常工作,我相信如果我可以 telnet 到端口 25 和 110,我将能够接收来自外部的邮件,还是我错了?


PS:我使用以下 2 个教程设置了我的邮件服务器:

后缀: http ://centoshelp.org/servers/mail/postfix-mail-server-on-centos/

DoveCot http://ostechnix.wordpress.com/2013/02/08/setup-mail-server-using-postfixdovecotsquirrelmail-in-centosrhelscientific-linux-6-3-step-by-step/


编辑:netstat -tlnp

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      1284/mysqld
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LISTEN      1313/dovecot
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN      1313/dovecot
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      1146/vsftpd
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      1008/cupsd
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      2573/master
tcp        0      0 127.0.0.1:6010              0.0.0.0:*                   LISTEN      1802/sshd
tcp        0      0 127.0.0.1:6011              0.0.0.0:*                   LISTEN      2038/sshd
tcp        0      0 127.0.0.1:6012              0.0.0.0:*                   LISTEN      2357/sshd
tcp        0      0 127.0.0.1:6013              0.0.0.0:*                   LISTEN      2583/sshd
tcp        0      0 0.0.0.0:48001               0.0.0.0:*                   LISTEN      1767/sshd
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN      1313/dovecot
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LISTEN      1313/dovecot
tcp        0      0 :::110                      :::*                        LISTEN      1313/dovecot
tcp        0      0 :::143                      :::*                        LISTEN      1313/dovecot
tcp        0      0 :::80                       :::*                        LISTEN      1415/httpd
tcp        0      0 ::1:631                     :::*                        LISTEN      1008/cupsd
tcp        0      0 ::1:25                      :::*                        LISTEN      2573/master
tcp        0      0 ::1:6010                    :::*                        LISTEN      1802/sshd
tcp        0      0 ::1:6011                    :::*                        LISTEN      2038/sshd
tcp        0      0 ::1:6012                    :::*                        LISTEN      2357/sshd
tcp        0      0 ::1:6013                    :::*                        LISTEN      2583/sshd
tcp        0      0 :::48001                    :::*                        LISTEN      1767/sshd
tcp        0      0 :::993                      :::*                        LISTEN      1313/dovecot
tcp        0      0 :::995                      :::*                        LISTEN      1313/dovecot

解决方案- 仔细阅读您的 POSTFIX main.cf 文件!

我在 /etc/postfix/main.cf 文件上犯了一个小错误 - 由于某种原因,inet_interfaces = localhost 行没有被注释掉,它推翻了 inet_interfaces = all 规则......再次感谢您的帮助,非常感谢。现在我也可以远程登录到 110 和 143。

iptables
  • 1 个回答
  • 1196 Views
Martin Hope
DextrousDave
Asked: 2013-07-24 03:33:28 +0800 CST

Centos SSH 访问 - 更改了 SSH 端口现在我无法访问服务器

  • 0

我想我搞砸了 - 我将 VPS 的 SSH 访问端口从 5252 更改为 48001,现在我无法登录。

我在 IPtables(/etc/sysconfig/iptables) 中更改了它,我实际上只是将端口号从 5252 更改为 48001,然后重新启动了我的服务器。现在,我也无法通过端口 5252 访问...(显然是因为我更改了它,但我还是尝试了)

我怎样才能再次进入VPS?其他开放的端口是 80 和 21...有没有办法可以使用我的根详细信息从那里登录?

谢谢

centos
  • 2 个回答
  • 1282 Views
Martin Hope
DextrousDave
Asked: 2013-07-22 13:42:32 +0800 CST

Postfix 用户问题 - 一位用户收到邮件,另一位未收到

  • 1

我刚刚在我的 CentOS 服务器上安装了 Dovecot 和 Postfix。

现在,我创建了 2 个本地用户,每个用户都有一个邮件帐户。

我做了以下事情:

useradd dexter

mkdir /home/dexter/Maildir
chown mark:mark /home/dexter/Maildir
chmod -R 700 /home/dexter/Maildir

对于第二个用户:

useradd info

mkdir /home/info/Maildir
chown mark:mark /home/info/Maildir
chmod -R 700 /home/info/Maildir

问题: 我可以向“dexter”用户发送邮件,并且电子邮件会进入他的 /Maildir/new 或 /Maildir/cur 文件夹,但另一个用户 - info 没有收到任何发送给他的邮件。他所有的文件夹(Maildir/new 和 Maildir/cur)都是空的。

这是为什么?

谢谢


编辑:/var/logs/maillog 条目 - 我向两个用户发送了相同的电子邮件:

to=<dexter@mydomain.com>, relay=local, delay=0.35, delays=0.18/0.01/0/0.17, dsn=2.0.0, status=sent (delivered to maildir)

to=<root@mydomain.com>, orig_to=<info@mydomain.com>, relay=local, delay=0.41, delays=0.18/0.01/0/0.22, dsn=2.0.0, status=sent (delivered to maildir

我用“mydomain.com”替换了我的实际域名

postfix
  • 1 个回答
  • 441 Views
Martin Hope
DextrousDave
Asked: 2013-07-22 10:28:03 +0800 CST

CentOS 上的邮件服务器 - 域名和主机名可以相同吗?

  • 0

不知道这个问题听起来有多傻,但是我可以让邮件服务器主机名与域名相同吗?

例子:

典型的邮件服务器设置:

hostname: mail.example.com
domain name: example.com

我的邮件服务器要求

hostname: example.com
domain name: example.com

我正忙于为我的 CentOS 服务器设置 Postfix,并且正在编辑 /etc/postfix/main.cf 文件

谢谢

postfix
  • 1 个回答
  • 528 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

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助
subwaysurfers
my femboy roommate

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve