服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我的客户机(Windows 7)连接到服务器的(Ubuntu)的OpenVPN罚款,但是当我想访问服务器的网站,这些连接不通过VPN路由…如何修改?
我试图清理由sendmail留下的烂摊子,我的Unix的知识是非常有限的,所以我将不胜感激一些帮助,这些软件包是否可以安全地删除,我已经运行apt-get purge sendmail* 当我运行apt-get remove –auto-remove sendmail这些软件包仍然剩下,我担心删除它们会打破别的工作。 The following packages will be REMOVED: liblockfile-bin liblockfile1 libsigsegv2 m4 procmail 0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded. 这几乎是一个新鲜的dedi设置,我刚刚去保护它,所以有很多事情安装,可能会懊恼。 这将是生产,所以我想知道这些包是否可以安全地删除。
我不能去槽。 我需要从内部networking访问具有公共IP的服务器。 我有几个VLAN的专用networking,然后我使用的是WatchGuard m400防火墙。 我想要达到的服务器只有公共IP。 我可以从我的私人networking,但没有别的。 我已经操作了需要的端口(在我的情况下是20,21,22,80),试图添加SNAT,但是我认为,SNAT正在处理相反的情况(从公共networking访问私人服务器)。 任何提示? 最好的祝福
我正在尝试重写数百个url,除了一个场景外,我已经非常接近了。 有些url是这样的: /city/?sl_city=CityName&directory_nonce=45ad967e02 但是有些在sl_city查询sl_city有一个+作为单词分隔符。 那些需要改变为- /city/?sl_city=Some+City&directory_nonce=45ad967e02 这两个url的最终结果应如下所示: /locations/cityname /locations/some-city 我的基本重写规则是这样的: location ~* ^/city/(.+)? { if ($args ~* "sl_city=(.+)&directory_nonce=(.+)") { set $city $1; set $args ''; rewrite ^.*$ /locations/$city permanent; } } 但我的第二个URL 404s(回来/locations/Some+City ),但locations/Some-City解决。 目前我并不担心这些URL。 基本上我想检查$city之前,它做了最后的永久重写,任何+find,将其更改为- 。 我所看到的所有例子都涉及安装另一个模块,我认为我不能这样做。 而我迄今为止的尝试没有奏效。 编辑 这是我安装的模块。 试图找出是否ngx_http_substitutions_filter_module做我所需要的,但不知道。 nginx version: nginx/1.8.0 built with OpenSSL 1.0.1f 6 Jan 2014 TLS SNI support […]
百胜更新后,我的Apache不会启动,我得到了以下错误: # service httpd restart Stopping httpd: [FAILED] Starting httpd: httpd: Syntax error on line 13 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authn_alias.so into server: /etc/httpd/modules/mod_authn_alias.so: cannot open shared object file: No such file or directory [FAILED] 第13行如下: Header: PidFile run/httpd.pid # MR — must be disable here because can not overrite! — importance for proxy-to-apache # […]
如何创buildrDNS(反向DNS),我正在使用Centos 7.0,我需要为50个IP和域创buildrDNS。 你能指导我如何创build。 例。 Example.com – xxx.xxx.xxx.xx0 Example.xyz – xxx.xxx.xxx.xx1 预先感谢
我们的SAP HANA数据库消耗了大量的内存 – 即使我们没有太多的数据。 经过一番研究: select top 100 * from M_CS_TABLES order by MEMORY_SIZE_IN_TOTAL desc 我发现STATISTICS_ALERTS_BASE表的大小超过20,000.000.000(200亿) 如何减less或清除此表? 编辑: 如果表格变大,可以使SAP HANA的pipe理面板非常慢 。 如果是这样,那么截断表修复问题!
我在/ etc / apache2 / ssl / domain / like中创build了一个.csr和.key文件 openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr 像GoDaddy说的,然后用apache指令链接到这些文件: <VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/apache2/ssl/domain/domain.com.csr SSLCertificateKeyFile /etc/apache2/ssl/domain/domain.com.key DocumentRoot /clients/domain.com/www/ ScriptAlias /cgi-bin/ /clients/domain.com/cgi/ ServerAlias domain.com www.domain.com *.domain.com ServerName www.domain.com ErrorLog /clients/domain.com/logs/error_log LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog "|/usr/bin/cronolog /clients/domain.com/logs/%Y/%m/%d/access_log" combined […]
我已经成功地设置sip.js使用标准的非安全ws:/ /使用firefox 43星号11服务器。我可以打电话给另一个ff浏览器/硬件。 但是这并不适用于最新的铬合金,铬47,我无法得到任何audio(铬没有问我想用哪个audio,它总是被困在“获取当地媒体”)。 sip-0.7.2.min.js:36 Sat Jan 16 2016 15:02:05 GMT-0500 (EST) | sip.invitecontext.mediahandler | acquiring local media 从我读的关于铬47, https://developers.google.com/web/updates/2015/10/chrome-47-webrtc?hl=en 从Chrome 47开始,getUserMedia()请求只允许来自安全的来源:HTTPS或localhost。 所以我想configuration星号和sipjs开始使用安全的websockets(wss),并与wss连接有问题。 铬控制台输出如下: sip-0.7.2.min.js:36 Sat Jan 16 2016 14:17:01 GMT-0500 (EST) | sip.ua | configuration parameters after validation: 2016-01-16 14:17:01.816 sip-0.7.2.min.js:36 Sat Jan 16 2016 14:17:01 GMT-0500 (EST) | sip.ua | · viaHost: "192.0.2.190" […]
我想每10分钟运行我的代码,我想要做的*/10 * * * * ceasor sudo python /home/ceasor/Desktop/script.py但我希望它从5而不是0开始,我的意思是希望它在5,15,25,35,45,55运行, 我知道我可以做到这一点5,15,25,35,45,55 * * * * ceasor sudo python /home/ceasor/Desktop/script.py但我想学习如何从指定的分钟开始