服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我有一些使用CoreOS的服务器。 CoreOS本身就是使用journald来logging所有的日志文件。 最新的稳定版本合并了docker 1.9,因此它还不支持docker日志驱动程序。 在探索了多个途径之后,我认为rsyslog可能是将日志logging到logz中的最简单的方法,因为它在文档中被列为支持日志托运人。 而且我发现有一个模块可以让你将日志和rsyslog链接在一起。 所以,使用一个容器我已经放弃了。 根据logz文档,我可以通过使用rsyslog基本上使用rsyslogd.conf的以下configuration将日志发送给他们 # ——————————————————- # File Logging Directives for Logz.io # ——————————————————- $ModLoad imfile $InputFilePollInterval 10 $PrivDropToGroup adm $WorkDirectory /var/spool/rsyslog # File access file: $InputFileName PATH_TO_FILE $InputFileTag TYPE: $InputFileStateFile stat-TYPE $InputFileSeverity info $InputFilePersistStateInterval 20000 $InputRunFileMonitor $template logzFormatFileTagName,"[SPECIAL_KEY_HERE] <%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [type=TYPE] %msg%\n" if $programname == 'TYPE' […]
什么是可用于防止或阻止Java Applet JMX远程执行代码的一些安全工具?当攻击者在Internet Explorer中使用版本7之前的版本7(jre-7u10-windows-i586.exe)时。 常规防火墙是否工作? 任何杀毒软件都可以检测到这种攻击吗? PS我需要在这方面的描述abit。
监控Java REST API的最佳解决scheme是什么? 要收集的指标包括API响应时间,点击次数,失败次数等 我已经使用石墨(performance不佳)。 谢谢
我在这里发布,因为我想自动configurationapache虚拟主机,如a.mydomain.com,b.mydomain.com等…但它不起作用。 我已经build立了一个DNS Wilcardlogging(* 3600 IN A 1.2.3.4)。 并设置我的appache像这样: <VirtualHost *:80> ServerName mydomain.com ServerAdmin [email protected] ServerAlias *.mydomain.com DocumentRoot /var/www DirectoryIndex index.html index.php VirtualDocumentRoot /var/www/vhosts/%1 UseCanonicalName Off <Directory /var/www/vhosts> DirectoryIndex index.html index.php Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> # Custom Errors ErrorDocument 404 /errors/404/index.html RewriteEngine on RewriteCond /var/www/vhosts/%1 -d RewriteRule ^(.*) […]
我一直在为此而绞尽脑汁。 我有openswan跑,我已经能够得到隧道。 不幸的是,当我尝试在我的右侧子网上ping电脑时,我无法得到任何回应。 我有一台使用Elastic ips的Amazon ec2机器。 当我执行netstat -nr网关指向一个IP地址,因此通过互联网而不是隧道。 任何指针来解决这个问题? leftsourceip=10.71.19.196 – {amazon elastic ip} leftsubnets=10.71.19.196/32 {amazon elastic ip} leftnexthop=%defaultroute right=196.201.212.240 rightsubnets={196.201.214.95/32, 196.201.214.127/32,} 当ping说192.201.214.127我得不到回应。 似乎默认为本地IP网关192.169.16.1。 任何想法我做错了什么?
我想要访问www.example.com并将其redirect到subdomain.example.com/homepage,而不必从www.example.com更改url。 比我的CSS和JS的捕获是在subdomain.example.com托pipe。 我正在为最后一部分苦苦挣扎。 到目前为止,我有这样的: http { upstream meteor_server { ip_hash; server 192.168.0.24:88; } server { server_name www.example.com; location / { proxy_pass http://meteor_server/homepage/; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } server { server_name subdomain.example.com; location / { proxy_pass http://meteor_server/; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_http_version 1.1; […]
我在这里有一个奇怪的效果,我不明白。 PS C:\Users\user1> ping fe80::219:bbff:fe0e:c600%16 -t Ping wird ausgeführt für fe80::219:bbff:fe0e:c600%16 mit 32 Bytes Daten: Zielhost nicht erreichbar. Zielhost nicht erreichbar. Zielhost nicht erreichbar. Zielhost nicht erreichbar. Zielhost nicht erreichbar. (Destination is unreachable) Zielhost nicht erreichbar. . . . Antwort von fe80::219:bbff:fe0e:c600%16: Zeit=1ms Antwort von fe80::219:bbff:fe0e:c600%16: Zeit<1ms Antwort von fe80::219:bbff:fe0e:c600%16: Zeit<1ms . . 正如你所看到的主机(我的默认网关)不可达一段时间(1或2分钟),然后它改变。 只有Windows […]
我有2个服务器运行相同的c + +应用程序,但主服务器中的应用程序接收调用。 一旦应用程序在主站中closures,从站变成主站并接收呼叫。 这是由我的环境中的Linux HA完成的。 一旦状态发生变化,linuxHA就会调用一个脚本来根据状态来更新状态为MASTER或SLAVE的状态文件,我的应用程序决定是否接听电话。 所以,现在我想用keepalived做同样的事情,因为我听说keepalived中的configuration比LinuxHA容易得多。 任何人可以帮我configurationkeepalived?
我用C写了一个LDAP客户端程序。我正在尝试使用Active Directory进行身份validation。 我在Active Directory中创build了一些用户,并尝试使用我的LDAP客户端进行身份validation。 它的工作正常。 但问题是当我在AD中创build用户时, user must change password at next login选项,LDAP绑定function失败。 如果没有绑定,更改密码不起作用。 那么我怎么才能使它工作?
我拥有一台小型家庭NAS /服务器 – 合勤NSA310S。 不幸的是,在官方软件包存储库中,只有5.0.8版本可用。 去年我设法安装了7.x. 版本,使用下面的方法: (Connect to the NSA as root using telnet – you first need to enable in the administrator's webpanel. Then you can run the commands.) cd /usr/local/zy-pkgs/gui wget http://download.owncloud.org/community/owncloud-latest.tar.bz2 tar xjvf owncloud-latest.tar.bz2 cp ownCloud/config/config.php owncloud/config/config.php vi owncloud/config/config.php (To set 'version' to the correct value for the downloaded one.) cd […]