服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
当我安装Debian时,我显然希望跟踪testing。 但是之后,我从不稳定的回购站安装了Firefox,并没有考虑太多的问题:)我想知道现在是不是跟踪不稳定或者testing了(我的安装出现了一些问题,这就是为什么我要问)。 以下是我的/etc/apt/rsources.list的当前内容: # Debian testing repo deb http://debian.ludost.net/debian/ testing main contrib non-free deb-src http://debian.ludost.net/debian/ testing main contrib non-free # Debian testing security repo deb http://security.debian.org/debian-security testing/updates main contrib non-free deb-src http://security.debian.org/debian-security testing/updates main contrib non-free #Mozilla repo deb http://http.debian.net/debian unstable main # Opera repo deb http://deb.opera.com/opera-stable/ stable non-free 你们有什么感想? 干杯
我试图研究find高可用性解决scheme的最佳方式,以及为我们的TCP服务加上(小)负载平衡。 我发现的所有解决scheme(例如,HAProxy,LVS)都使用一台主机来保存TCP服务IP,当主服务器通过使用该服务IP使备份系统(通过保活,VRRP)崩溃时。 这很好。 但是我没有find一个通过平滑传输(不丢包)使备份系统处于活动状态的解决scheme:有时我需要更新/更改/重新启动当前的主机,所以我想要新的连接到备份系统而老的/现在的连接仍然由老主人处理,直到他们完成,所以我可以重新启动老主人。 这是可能的或不能做到这一点? 在做梦时:最佳的解决scheme是将当前连接(加上服务IP)传输到备份机器。 有这个梦想的解决scheme吗?
我已经从sslforfree.com为我的网站创build了SSL证书 我尝试在我的NGINX服务器上启用SSL,如下所示,不幸的是我收到一条错误消息,你可能会在底部看到: /etc/nginx/sites-available/default server { listen 80; server_name myserver.com; listen 443; ssl on; ssl_certificate /home/tolga/SSLcerts/ca_bundle.crt; ssl_certificate_key /home/tolga/SSLcerts/private.key; 错误信息: tail -f /var/log/nginx/error.log 2017/10/06 11:29:55 [emerg] 13813#13813: SSL_CTX_use_PrivateKey_file("/home/tolga/SSLcerts/private.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch 什么可能是问题?
# Redis # Download and extract Redis source files RUN curl -o redis.tar.gz "http://download.redis.io/releases/redis-4.0.2.tar.gz" && \ mkdir redis_tmp/ && \ tar xzf redis.tar.gz -C redis_tmp && \ # Rename temporary directory mv redis_tmp/* redis && \ # Install Redis cd redis && \ make && \ make install && \ # Remove source files cd […]
我不明白我该如何处理实例启动时发生的“部署”事件。 该堆栈有两层(Node.js和Rails)和两个具有不同配方的应用程序来处理“部署”事件。 问题是,当实例启动时,OpsWorks试图将这两个应用程序部署到一个实例,显然失败。 目前部署configuration看起来像这样: search('aws_opsworks_app').each do |app| Chef::Log.info("Deploying app #{app.name}") app_dir = '/srv/www/js_app' application app_dir do git app['app_source']['url'] do revision app['app_source']['revision'] deploy_key app['app_source']['ssh_key'] end execute 'Install dependencies' do command 'npm install –dev' cwd app_dir end execute 'Build' do command 'npm run build' cwd app_dir end npm_start end end
我正在Windows Server 2008 R2服务器上安装WSUS 3.0 SP2。 它通过安装部分,直到到达configuration数据库。 然后它给我一个信息,说打包失败安装。 它将SUSDB文件放到WID目录的数据区域,但是当它说错误时,安装的回滚会删除SUSDB文件。 错误日志显示这个: 2013-01-18 15:43:39 Error MWUSSetup InstallWsus: MWUS Installation Failed (Error 0x80070643: Fatal error during installation.) 2013-01-18 15:43:39 Error MWUSSetup CInstallDriver::PerformSetup: WSUS installation failed (Error 0x80070643: Fatal error during installation.) 2013-01-18 15:43:39 Error MWUSSetup CSetupDriver::LaunchSetup: Setup failed (Error 0x80070643: Fatal error during installation. 在数据库的错误日志中,它给我一个17207错误 2009-04-10 09:29:48.24 spid5s […]
我想在haproxy的后端添加一个path。 我不想使用redirect。 所以我尝试使用reqrep 基本上我需要什么: 前端: resources.mydomain.com/images/path/to/resource.png 然后它需要转发到: backend.mydomain.com/replaced/part/path/to/resource.png 这是我的cfg frontend http-in bind 0.0.0.0:80 mode http option httplog acl path_ok path_end .gif acl path_ok path_end .jpg acl path_ok path_end .png http-request deny unless path_ok use_backend resourceBackend if path_ok backend resourceBackend reqrep ^([^\ :]*)\ /images[/]?(.*) \1\/replaced/part/\2 mode http option httpchk option forwardfor except 127.0.0.1 http-request add-header X-Forwarded-Proto […]
我已经使用testing库更新了Debian Jesie上的Apache2 https://www.shivering-isles.com/http-2-getting-ready-on-debian-with-apache2/ 我现在有: Server version: Apache/2.4.27 (Debian) Server built: 2017-09-23T22:08:01 an2mod http2 ..done ls -la /etc/apache2/mods-enabled lrwxrwxrwx 1 root root 28 Sep 25 16:42 http2.load -> ../mods-available/http2.load /etc/apache2/conf-available/http2.conf ….编辑 …. 但是检查https://www.tecnocroci.it HTTP2不起作用
我需要编写一些例程任务来远程执行从serverA到多个主机,但其中有一些却无法执行脚本。 如果我执行这个: $cred = Get-Credential myUser Invoke-Command -ComputerName serverB -ScriptBlock{gci d:\} -Credential $cred 或这个: Test-WSMan -ComputerName ServerB -Credential $cred -Authentication Negotiate 我得到以下错误 [SeverB]连接到远程服务器ServerB失败,并显示以下错误消息:WinRM无法处理请求。 使用协商身份validation时发生错误代码0x80090322的以下错误:发生未知的安全错误。 可能的原因是: – 指定的用户名或密码无效。 -Kerberos用于没有authentication方法和用户名没有指定。 -Kerberos接受域用户名,但不接受本地用户名。 – 远程计算机名称和端口的服务主体名称(SPN)不存在。 – 客户端和远程计算机处于不同的域,两个域之间没有信任。 检查上述问题后,请尝试以下操作: – 检查与事件查看器相关的身份validation事件。 – 更改authentication方法; 将目标计算机添加到WinRM TrustedHostsconfiguration设置或使用HTTPS传输。 请注意,TrustedHosts列表中的计算机可能未经过身份validation。 – 有关WinRMconfiguration的更多信息,请运行以下命令:winrm help config。 有关更多信息,请参阅about_Remote_Troubleshooting帮助主题。 + CategoryInfo:OpenError:(serverB:String)[],PSRemotingTransportException + FullyQualifiedErrorId:-2144108387,PSSessionStateBroken 但是当我单独使用test-wsman时: Test-WSMan -ComputerName ServerB wsmid […]
a:我的本地pc,localhost.localdomain b是我的vps,它构build了postfix c是我的雅虎帐户。 loginb(我的vps)。 echo "test"|mail -s "test" [email protected] 该电子邮件可以发送到[email protected] 我的后缀上的所有configuration。 postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = all […]