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

krizzo's questions

Martin Hope
krizzo
Asked: 2019-01-29 11:58:25 +0800 CST

验证内部 NTP 服务器发送的时间是否正确?

  • 5

我有两个 NTP 层 3 服务器正在运行,并且想要创建一个简单的检查,我可以判断其中一个服务器的时间是否漂移并警告它没有与公共层 2 服务器正确同步。

我的第一个想法是从多个第 2 层服务器中提取时间,并将该时间与我的 ntp 服务器发送的时间进行比较。然后在漂移超过 X delta 时发出警报。

是否有更标准的方法或更好的方法来验证 NTP 服务器是否发送正确的时间?

ntp
  • 2 个回答
  • 2694 Views
Martin Hope
krizzo
Asked: 2013-04-06 07:51:12 +0800 CST

使用 Windows 注销的 Novell Client 注销

  • 1

我有一台运行 Novell Client 2 SP2 的 Windows 2008 R2 服务器。我注意到当我远程进入系统然后注销我的远程会话时,Novell 客户端也会注销。有没有一种方法可以防止客户端注销,因为我在服务器上运行的脚本期望看到 Novell 客户端安装的正确驱动器?

windows-server-2008-r2
  • 1 个回答
  • 684 Views
Martin Hope
krizzo
Asked: 2013-03-15 21:14:58 +0800 CST

Apache 不访问符号链接虚拟主机目录?

  • 0

好吧,我一直在用头撞桌子试图弄清楚这个虚拟主机是怎么回事。我能够从默认文档根目录加载标准 html 和 php 文件,但无法加载任何虚拟主机。

我很困惑,因为 apache 能够写入 srp.com 虚拟主机的日志目录,但错误日志只有“[error] [client 127.0.0.1] 符号链接不允许或链接目标不可访问:/var/www /虚拟主机”。从我一直在阅读的内容来看,虚拟主机是一个符号链接是一个问题,但我已经包含了 FollowSymLinks 选项。

尝试设置虚拟主机时我忽略了什么?

Apache2 在 www-data 用户运行。
默认 DocumentRoot 是 /var/www

/变种/万维网:

drwxrwsr-x 2 www-data www-data 4096 Mar 14 22:49 .
-rw-rw-r-- 1 www-data www-data  64 Nov 27 23:35 index.php
-rw-r--r-- 1 www-data www-data 181 Mar 14 22:13 index.html
lrwxrwxrwx 1 www-data www-data  46 Mar 14 22:49 vhosts -> /mnt/slackhome/krizzo/Dropbox/websites/vhosts/

/var/www/vhosts/srp.com/ 目录:

drwxrwxr-x  5 www-data www-data 4096 Mar 14 22:04 .
drwxrwsr-x 13 www-data www-data 4096 Mar 14 22:02 ..
drwxrwxr-x  2 www-data www-data 4096 Mar 14 22:04 cgi-bin
drwxrwxr-x  8 www-data www-data 4096 Mar 14 22:01 htdocs
drwxrwxr-x  2 www-data www-data 4096 Mar 14 22:18 logs

httpd.conf 文件

<Directory />
    Options Indexes +FollowSymLinks MultiViews
    AllowOverride all
    Order deny,allow
    allow from 127.0.0.1
    Deny from all
</Directory>

srp.com (/etc/apache2/sites-available/srp.com)

<virtualHost *:80>
    ServerAdmin [email protected]
    ServerName  srp.com
    ServerAlias srp.com

# Indexes + Directory Root.
    DirectoryIndex index.php index.html
    DocumentRoot /var/www/vhosts/srp.com/htdocs/

    <Directory /var/www/vhosts/srp.com/htdocs/ >
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

# CGI Directory
    ScriptAlias /cgi-bin/ /var/www/vhosts/srp.com/cgi-bin/
    <Location /cgi-bin>
    Options +ExecCGI
    </Location>

# Logfiles
    ErrorLog  /var/www/vhosts/srp.com/logs/error.log
    CustomLog /var/www/vhosts/srp.com/logs/access.log combined
</virtualHost>
apache-2.2
  • 1 个回答
  • 1793 Views
Martin Hope
krizzo
Asked: 2012-09-08 18:56:53 +0800 CST

远程连接到mysql服务器?

  • 3

我一直在试图弄清楚为什么当我尝试使用以下命令连接到 MySQL 服务器时总是出现此错误。

$~ mysql -u username -h SQLserver -p
Enter password:
ERROR 1045 (28000): Access denied for user 'username'@'myIP' (using password: YES)

我已经完成了以下操作:
端口在防火墙中打开,否则我不会得到它只是超时的错误。
未使用 skip-networking 或 bind-address
用户名运行的 MySQL 服务器的主机为“%”,我可以在本地连接,因此密码正确。

GRANT USAGE ON *.* TO username@% IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

我想知道以前是否有人有想法或遇到过这个问题并解决了?如您所见,我可以在本地登录,但是当我尝试执行 -h 服务器时,出现错误。

mysql> SELECT user(),Current_user();
+--------------------+----------------+
| user()             | Current_user() |
+--------------------+----------------+
| username@localhost | username@%     |
+--------------------+----------------+
1 row in set (0.00 sec)

评论结果:

mysql> select user, host from mysql.user where user='username';
+----------+------+
|   user   | host |
+----------+------+
| username | %    |
+----------+------+
1 row in set (0.00 sec)

mysql> show grants for 'username';
+----------------------------------------------------------------------------------------------------------------+
| Grants for username@%                                                                                            |
+----------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY PASSWORD '*F42AD03PASSWORDHASHADF4021C86B' |
| GRANT ALL PRIVILEGES ON `DB2`.* TO 'username'@'%'                                                           |
+----------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
mysql
  • 2 个回答
  • 717 Views
Martin Hope
krizzo
Asked: 2012-06-16 21:00:19 +0800 CST

ddclient 更新 namecheap 子域?

  • 4

我有一个要使用 ddclient 更新的子域。我将 ddclient 配置为从 dyndns 获取 IP,但它没有更新 namecheap 上的子域。他们说使用 yourdomain.com 作为登录名而不是我的实际域。

有没有人能够使用 ddclient 更新 namecheap DNS?

我正在使用 ddclient 3.7.3 运行 CentOS 6.2。

当我运行 ddclient 时,我得到以下信息。

CONNECT:  checkip.dyndns.org
CONNECTED:  using HTTP
SENDING:  GET / HTTP/1.0
SENDING:   Host: checkip.dyndns.org
SENDING:   User-Agent: ddclient/3.7.3
SENDING:   Connection: close
SENDING:
RECEIVE:  HTTP/1.1 200 OK
RECEIVE:  Content-Type: text/html
RECEIVE:  Server: DynDNS-CheckIP/1.0
RECEIVE:  Connection: close
RECEIVE:  Cache-Control: no-cache
RECEIVE:  Pragma: no-cache
RECEIVE:  Content-Length: 106
RECEIVE:
RECEIVE:  <html><head><title>Current IP Check</title></head><body>Current IP Address: IPADD</body></html>
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1998.
WARNING:  skipping update of lf4bot from <nothing> to IPADD
WARNING:   last updated <never> but last attempt on Fri Jun 15 22:46:21 2012 failed.
WARNING:   Wait at least 5 minutes between update attempts.

ddclient.conf 文件

daemon=300                              # check every 300 seconds
syslog=yes                              # log update msgs to syslog
mail=root                               # mail all msgs to root
mail-failure=root                       # mail failed update msgs to root
pid=/var/run/ddclient.pid               # record PID in file.
ssl=yes                                 # use ssl-support.  Works with
use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
protocol=namecheap \
server=dynamicdns.park-your-domain.com \
login=yourdomain.com \
password=PASSWORD \
lf4bot
ddclient dynamic-dns namecheap
  • 3 个回答
  • 11396 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