服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我一直在使用ansible来pipe理几台服务器的haproxyconfiguration,我真的很喜欢这个工具。 它使部署新服务器和保持configuration同步轻而易举。 我有一个担心,因为我的HAproxyconfiguration是如此简单,我没有得到什么好处的抽象值到YML。 我的时间会更好吗只需手工创build我的HAProxyconfiguration文件并使用Ansible将文件复制到目标服务器而不是使用模板语言和variables? 我知道,如果我结束了多个独特的haproxy部署,我将从使用模板和variables中获得更多的价值,然而在过去的3年中,我们并不需要部署haproxy的任何新实例。
我的一个Redhat服务器在注册到我们的Satellite服务器后,看不到任何存储库。 我不得不说这个卫星服务器是新安装的,最新的版本 – > Satellite服务器6在RedHat 7.1。 但到目前为止,所有其他服务器可以在注册后看到所有的存储库。 猫/ etc / redhat-release Red Hat Enterprise Linux Server release 6.6 (Santiago) 订阅pipe理器状态 +——————————————-+ System Status Details +——————————————-+ Overall Status: Current 订阅pipe理器版本 server type: Red Hat Subscription Management subscription management server: 1.5.0-30.el7sat-Katello subscription management rules: 5.12 subscription-manager: 1.12.14-9.el6_6 python-rhsm: 1.12.5-2.el6 来自客户端服务器上/var/log/rhsm/rhsm.log的消息: Missing required tag 'rhel-6-server', skipping content: rhel-6-server-rh-common-rpms […]
我不能作为匿名或Linux帐户访问文件,而security = users ,但当security = share一切工作正常。 我的configuration: # smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the # samba-doc package is installed. [global] workgroup = WORKGROUP passdb backend = tdbsam printing = cups printcap name = cups printcap cache time = 750 cups options = raw […]
我知道这个问题已经被问了几次了,但是我不能在我的机器上工作,而且我觉得我已经尝试了一切。 我想用我的机器上的公钥从sshlogin到我的ubuntu机器 – 这样我就不必input密码了。 我总是总是被permission denied (publickey) 我用各种选项创build了新的密钥,似乎没有任何改变。 密码authentication工作正常 – 所以我没有被locking或任何东西,但我希望能够用SSH密钥login,如果我可以在我使用很多的计算机上。 这是我的日志: `01 OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 02 debug1: Reading configuration data /etc/ssh_config 03 debug1: /etc/ssh_config line 20: Applying options for * 04 debug1: Connecting to bcs.net.nz [203.167.215.130] port 22. 05 debug1: Connection established. 06 debug1: identity file /Users/jeff/.ssh/id_rsa type 1 07 debug1: […]
我有一个与Openshift托pipe的应用程序,我需要它来生成一些Excel报告。 报告生成过程可能需要很长时间(超过5分钟)。 这会导致客户端看到502错误,请求超时。 怎样才能在哪里configuration我的Openshift栈(这是一个从Tomcat6运行的Java web应用程序)来增加超时时间?
我的目标是在us-west-1中启动一个新的AWS实例。 在“创build实例”窗体中,我(最初)只有一个VPC选项可用。 这个VPC有3个子网,都在我们东边。 我创build了一个新的VPC(如果重要,使用CIDR =“172.30.0.0/16”)。 然后,当我尝试使用“创build子网”向其添加子网时,“可用区域”的唯一选项都是美东选项。 我非常肯定,我需要创build一个VPC,这个VPC与我们-west-1有某种联系,但我不知道该怎么做。 谢谢
networking如下: networking中存在两个默认网关 – 一个提供与具有多个子网的MPLS的连接。 比方说10.0.0.2 另一个是10.0.0.1上的思科防火墙,具有WAN连接。 局域网中存在一台服务器,并使用上述思科防火墙的DG。 在防火墙上有一条路由,告诉说有什么东西注定要去一个MPLS子网(192.168.99.0/24)去MPLS路由器(在它的LAN IP上)。 在INSIDE界面上,有任何Any,Any,IP允许规则(所有stream量)。 然而,我不能ping任何在MPLS和思科上的日志显示“隐式”任何,任何拒绝正在丢弃ping通信。 所有的东西都一样 – HTTPs,HTTP等等 less了什么东西?
我试图创build一个脚本,当收到特定的文件解压缩它看起来通过解压缩的文件,并删除整个内容,除了两个或三个特定的文件夹及其内容。 然后重新解压缩。 我在压缩,解压缩和删除工作的地方,但是当执行删除时,它会查看所有内容,而不仅仅是顶层的文件夹。 有什么build议么? 我的脚本到目前为止: $filesToZip="c:\temp\powertest\*" $zipfilename = "c:\temp\ziptest.zip" $originalzipfile = "c:\temp\powertest.zip" $extractionlocation = "c:\temp\" function Expand-ZIPFile($file, $destination) { $shell = new-object -com shell.application $zip = $shell.NameSpace($file) foreach($item in $zip.items()) { $shell.Namespace($destination).copyhere($item) } } Expand-ZIPFile –File $originalzipfile –Destination $extractionlocation # replace "New folder" and "New Text Document.txt" with folders and documents you dont want deleted […]
我正在尝试在Redhat 5.5上安装mysql server 5.5(或任何5.x版本),并遇到一些麻烦。 我可以安装其他的mysql组件,但是当我尝试安装mysql-server(或mysql51-mysql-server / mysq55-mysql-server)时,运行事务后出现以下错误: 运行事务 PREIN scriptlet在rpm包中出错mysql55-mysql-server-5.5.32-3.el5.x86_64 错误:%pre(mysql55-mysql-server-5.5.32-3.el5.x86_64)scriptlet失败,退出状态255 错误:安装:%pre scriptlet失败(2),跳过mysql55-mysql-server-5.5.32-3.el5 失败: mysql55-mysql-server.x86_64 0:5.5.32-3.el5 我试图直接下载rpm包,但得到相同的错误。 我可以使用RPM安装: rpm -ivh MySQL-server-5.5.42-1.rhel5.x86_64.rpm –noscripts 我知道,不build议有很好的理由,因为它安装,但不起作用。 我得到其他错误(不能创buildPID文件)。 无论如何,我不会在这里进入。 注意:我没有root权限,但是我可以sudo大多数命令,但不允许其他命令,如rpm -ql。 我也不允许添加任何额外的回购。 我只有RHEL5.10_64可用。
在CentOS7上,此刻一直在勉强搭build一个主厨服务器。 厨师pipe理员似乎正在做的很好。 我“(1)sudo wget https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.1.3-1.el6.x86_64.rpm和(2)sudo rpm -Uvh chef-server-11.1.3-1.el6.x86_64.rpm“每个标准程序我总是这样做。 那些运行顺利,但在“sudo chef-server-ctl reconfigure” 获得跟随输出错误。 我validation了我有openSSL和'build-essential'安装。 Starting Chef Client, version 11.12.2 Compiling Cookbooks… Recipe: chef-server::default * directory[/etc/chef-server] action create (up to date) [2015-04-03T18:23:23-07:00] WARN: Cloning resource attributes for directory[/var/opt/chef-server/chef-server-webui/etc] from prior resource (CHEF-3694) [2015-04-03T18:23:23-07:00] WARN: Previous directory[/var/opt/chef-server/chef-server-webui/etc]: /opt/chef-server/embedded/cookbooks/chef-server/recipes/chef-server-webui.rb:31:in `block in from_file' [2015-04-03T18:23:23-07:00] WARN: Current directory[/var/opt/chef-server/chef-server-webui/etc]: /opt/chef-server/embedded/cookbooks/chef-server/definitions/unicorn_config.rb:21:in `block in […]