Articles of amazon ec2

将OpenERP托pipe在Rackspace或Amazon EC2而不是常规托pipe公司更好吗?

我想知道这是否更好,更具成本效益,更稳定等等。哪一条是最好的select?

aws – ec2 – linux – apache:无法从外部访问index.html

我试图找出为什么index.html是从AWS的EC2实例的外部看不见的。 已经validation服务器正在运行(netstat -lp),并且curl得到了一个404错误( 所有的细节都在这里 ) 现在的日志,访问只是显示404错误,罚款 在/ var /日志/的httpd / elasticbeanstalk,访问日志: [06/Oct/2011:10:30:43 +0000] "GET / HTTP/1.1" 404 – "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) 错误是一个完整的神秘:/ var / log / httpd / error_log: [Thu Oct 06 03:36:08 2011] [notice] caught SIGTERM, shutting down [Thu Oct 06 10:30:32 2011] [notice] suEXEC mechanism enabled (wrapper: […]

如何在ec2上运行ruby / unicorn / nginx / app的AB Benchmarks?

我正准备与一个应用程序,并想知道是否有人可以给我一些见解我的基准。 他们如何比较,我可以做什么系统级的调整,以提高他们等等。 我的设置如下: m1.large amazon ec2实例,运行Ubuntu 11.04 Natty。 Nginx作为Web请求的反向代理。 这些请求被unix socket套接到一群提供ruby(1.9.2)应用程序的独angular兽工作者(Sinatra作为框架) 当运行apache替代时,如下ab -n 10000 -c 10 http://localhost/我得到的内存消耗可以忽略不计,还有更高的CPU峰值。 我看到大约75-80%的CPU使用率 最佳结果: Cpu(s): 43.1%us, 20.9%sy, 0.0%ni, 21.5%id, 1.0%wa, 0.0%hi, 2.4%si, 11.1%st 我的基准testing结果如下: Server Software: nginx/0.8.54 Server Hostname: loalhost Server Port: 80 Document Path: / Document Length: 3683 bytes Concurrency Level: 10 Time taken for tests: 13.072 seconds Complete […]

在EC2上需要rpcsec_gss_krb5和Linux内核2.6.35+

我正在尝试在EC2上执行Kerberos-auth:d NFS4。 为了做到这一点,似乎有人想要一个内核至less2.6.35,以获得体面的encryptionalgorithm。 我能find的发行版本是Ubuntu / Natty,它有2.6.38。 但是,默认图像是-virtual flavor,缺lessrpcsec_gss_krb5。 因此,我试图制作一个启动一个通用映像的映像,但这些映像似乎不被EC2 pv-grub加载器所赞赏: Xen Minimal OS! start_info: 0xa01000(VA) nr_pages: 0x26700 shared_inf: 0xbee66000(MA) pt_base: 0xa04000(VA) nr_pt_frames: 0x9 mfn_list: 0x967000(VA) mod_start: 0x0(VA) mod_len: 0 flags: 0x0 cmd_line: root=/dev/sda1 ro 4 stack: 0x946780-0x966780 MM: Init _text: 0x0(VA) _etext: 0x61e65(VA) _erodata: 0x76000(VA) _edata: 0x7b6d4(VA) stack start: 0x946780(VA) _end: 0x966d34(VA) start_pfn: a10 max_pfn: […]

在AWS EC2实例上caching使用.NET 4.0在IIS 7.x上运行的Umbraco网站

在AWS EC2上cachingUmbraco网站的可用选项有哪些? 到目前为止,我们已经考虑使用清漆,但不build议在生产环境中使用。 是否有像Varnish一样事实上的HTTP加速器? https://www.varnish-cache.org/ 这是一个遗留的网站,所以我不能100%确定所有必要的caching已经在应用代码中执行(例如macroscaching) 我们的目标是每秒处理60个网页点击量的峰值stream量(不包括对CSS,JavaScript和其他静态资源的额外要求)。 真的很感谢一些build议,特别是在这个规模上处理Umbraco部署的任何人!

为什么WinSCP通过OpenSSH连接到/ root而没有别的?

我们build立了一个Amazon EC2实例,并通过在服务器上设置WinSSHD,将WinSCP设置成它。 由于WinSSHD是商业的,我们正在寻找一个免费的select,并select尝试OpenSSH,我一直听到好东西。 在使用OpenSSH安装Cygwin并从Cygwin控制台启动OpenSSH之后,我尝试从我的计算机将WinSCP导入到服务器,并访问包含像Cygwin.bat之类的文件的/ root。 我想知道如果我在安装过程中做了什么错误,或者如果我必须更改sshd_config文件的工作。 非常感谢你提前。

在Debian上,不能在OpenLDAP 2.4中使用BDB安装新的数据库

我试图在Debian EC2实例上安装一个openldap服务器(slapd)。 我已经按照我能find的所有说明,并使用推荐的slapd-config方法进行configuration。 这一切似乎都很好,除了由于某种原因,它不能创build我的新数据库。 ldap.conf.bak(重新命名以确保它不被使用): ########## # Basics # ########## include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd/slapd.args loglevel none modulepath /usr/lib/ldap # modulepath /usr/local/libexec/openldap moduleload back_bdb.la database config #rootdn "cn=admin,cn=config" rootpw secret database bdb suffix "dc=example,dc=com" rootdn "cn=manager,dc=example,dc=com" rootpw secret directory /usr/local/var/openldap-data ######## # ACLs # ######## access to attrs=userPassword […]

使用SSH密钥对访问EC2实例的问题

只需build立一个新的EC2实例,下载了pem文件,目前无法进入框。 我正在使用命令… $ ssh -i .ssh/key.pem ubuntu@ec2-176-34-183-***.eu-west-1.compute.amazonaws.com 被要求input密码 当我生成密钥对时,我没有分配密码短语! 为什么会这样呢? Anway,我有一个挖掘,发现如何从密钥中删除密码短语: $ openssl rsa -in key.pem -out key-nopass.pem 尽pipe密语确实已被删除,但仍然没有喜乐。 这是我的详细输出: OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009 debug1: Reading configuration data /home/bob/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to ec2-176-34-183-***.eu-west-1.compute.amazonaws.com [176.34.183.***] port 22. debug1: Connection established. debug1: identity file […]

在HAproxy服务器中dynamic添加节点时出现意外的行为

我想为我的Web应用程序使用HAProxy进行负载平衡。 我正在尝试在HAProxy服务器中使用命令dynamic添加一个新的rabbitmq节点: haproxy -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid) 。 我正在使用leastconn不平衡algorithm进行负载均衡的tcp连接模式。 预计什么时候在一个rabbitmq中有3个连接,我在HAProxy服务器上添加一个新的兔子服务器。 所以下一个连接将传递到第二个rabbitmq服务器,这是不是在我的情况发生。 它以随意的方式分配连接。 这是我的configuration文件: defaults log global mode http option httplog option dontlognull retries 3 option redispatch maxconn 2000 contimeout 5000 clitimeout 5000 srvtimeout 5000 listen rabbitmq 0.0.0.0:5672 mode tcp stats enable balance leastconn option tcplog server rabbit01 xx.xx.xx.xx:5672 check server rabbit02 xx.xx.xx.xx:5672 check listen […]

修改httpd.conf来调整mod_wsgi和django install然后不能通过sftp进行连接

我修改了我的httpd.conf文件,指向一个.wsgi文件,我把apache指向了不同的文档根目录。 服务器工作正常,我看到我的应用程序在networking上,我仍然通过SSH连接。 但是,我被踢掉了,我无法回头。 我也使用.pem键。 这发生在任何人身上吗? 任何人有任何想法如何解决这个问题? 我正在使用运行apache2,python 2.6,mysql,mod_wsgi的EC2实例的Amazon Linux AMI 编辑:我只是再次刷新我的网页(10分钟后被踢掉的FTP),我得到一个页面无法find我的浏览器,就好像服务器不活跃。 EC2显示实例仍在运行,即使刷新后也是如此。