服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我正在查看我的服务器的validation日志,我很惊讶地看到时间被抵消了。 root@server:/home/admin# date Tue Jan 12 09:51:36 CET 2016 root@server:/home/admin# tail /var/log/auth.log Jan 12 03:10:05 server sshd[18973]: Connection closed by 222.189.40.171 [preauth] Jan 12 03:25:43 server sshd[18983]: reverse mapping checking getaddrinfo for 210.subnet222-124-218.static.astinet.telkom.net.id [222.124.218.210] failed – POSSIBLE BREAK-IN ATTEMPT! Jan 12 03:25:43 server sshd[18983]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=222.124.218.210 user=root Jan […]
我有nginx中的proxy_pass: upstream svnserver { server 10.0.1.90; } server { server_name svn.domain.com; listen 443 ssl; root /var/www/html; error_log /var/log/nginx/svn.error.log; rewrite /(.*) /svn/$1? break; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://svnserver/svn$request_uri; } } 我只想在访问svn.domain.com时添加/ svnpath到URL,所以最终的URL将是http://svn.domain.com/svn 。 我试图添加这个rewrite /(.*) /svn/$1? break; rewrite /(.*) /svn/$1? break; 但看起来不起作用。 是否有可能做到这一点与proxy_pass和重写? 谢谢
当我运行sudo yum update时候,我遇到了这个错误 Downloading packages: No Presto metadata available for base python-augeas-0.5.0-2.el7.noarch.rpm | 25 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : python-augeas-0.5.0-2.el7.noarch 1/2 Error unpacking rpm package python-augeas-0.5.0-2.el7.noarch error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/python_augeas-0.5.0-py2.7.egg-info: cpio: rename Verifying : python-augeas-0.5.0-2.el7.noarch 1/2 python-augeas-0.4.1-5.el7.noarch was supposed to be […]
有点背景 – 我正在构build一个工具,除了做一些事情还允许用户pipe理Azure DNS。 在我的应用程序中有一个function,用户可以导出DNS设置来创build区域文件。 使用互联网上的各种资源(例如https://en.wikipedia.org/wiki/Zone_file#File_format和https://tools.ietf.org/html/rfc1035 ),我可以创build一个区域文件。 我所苦苦挣扎的是如何validation,如果我创build的区域文件是正确的或不基于RFC 1035 。 有没有validation区域文件的编程方式? 或者可能是一些PowerShell脚本或我可以用来validation文件的系统/第三方工具。 作为一个方面说明,我使用GoDaddy的Web界面导入区域文件,它工作得很好。
我试图设置一个子域的服务器块,但nginx似乎没有拿起configuration(正确)。 它所做的只是拾取可用的第一个configuration块,并将其设置为适当的configuration。 我的DNSlogging如下: http : //imgur.com/oJF46eU 我的虚拟主机块如下所示: server { listen 80; server_name stage.remykooistra.nl www.stage.remykooistra.nl; root /var/www/stage.remykooistra.nl; index index.html index.php; location / { try_files $uri $uri/ /index.php?$args; } location ~ /(cronjobs|config|lib|app/code){ deny all; return 404; } location ~ \.php$ { include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } } 这几乎是所有我的服务器块使用基本相同的设置,有一些例外,如SSL和其他被拒绝的文件夹等。 我希望有人能指出我在这里做错了什么,因为我很困惑,为什么它没有select正确的configuration。
我目前的SSL证书覆盖了子域名www.example.com和static.example.com 因此,如果用户尝试通过https://example.com访问我的网站,我想将他redirect到https://www.example.com 。 我如何在我的nginx conf中做到这一点? 我知道这里有类似的问题,但我在这里找不到解决scheme。
我有mikrotik我为其设置了静态DNS条目。 formslinuxes一切正常工作,即使从Windows电脑之一(Windows 7),但从其他Windows电脑我无法解决DNS条目。 我不知道在哪里可以find问题。 请你能build议从哪里开始? 谢谢
我最近安装了一个ASA 5505.但现在我有用户被阻止/从互联网上踢。 我能做些什么来防止这种情况? 这里是运行configuration: 命令结果:“sh run” : Saved :ASA Version 9.0(1) ! hostname ciscoasa enable password ————- encrypted passwd ———— encrypted names ! interface Ethernet0/0 switchport access vlan 2 ! interface Ethernet0/1 ! interface Ethernet0/2 ! interface Ethernet0/3 ! interface Ethernet0/4 ! interface Ethernet0/5 ! interface Ethernet0/6 ! interface Ethernet0/7 ! interface Vlan1 nameif inside […]
我知道有关Tomcat和EC2 alredy类似的问题,但不幸的是我找不到任何解决我显然简单的问题。 我已经在EC2实例(Amazon Linux AMI的HVM版本)上安装了Tomcat 8: sudo yum install -y tomcat8 sudo yum install tomcat8-webapps tomcat8-docs-webapp tomcat8-admin-webapps 我可以启动Tomcat就好了: sudo service tomcat8 start [OK] 并在本地连接到默认的Tomcat欢迎页面: wget http://localhost:8080 (returns 200OK and index.html) AWS中的我的安全组具有以下条目: 自定义TCP规则| TCP | 8080 | 0.0.0.0/0 ( 见截图 ) 但是,当我尝试远程访问tomcat它不起作用。 curl ec2-xxxx.us-west-2.compute.amazonaws.com:8080 curl: (7) Failed to connect to ec2-xxxx.us-west-2.compute.amazonaws.com port 8080: Operation timed out […]
我已经在centos 7上成功安装了ldap服务器,它工作正常。 但是,我不能访问服务器与“匿名”绑定,根据每个谷歌search应该是。 当我执行; ldapsearch -x -H ldap:// localhost -b dc = example,dc = com 输出说; 结果:50访问不足 注意:唯一存在的ACL是; olcAccess: {0}to * by self write by anonymous auth by * none 这是否certificate服务器不configuration为支持“匿名”绑定? 如果是这样,你可以列出如何启用“匿名”绑定的方式。