简体   繁体   English

在VPS上安装Apache和MySQL

[英]Apache and MySQL installation on VPS

Is there any difference (or preference) between two schemes: 两种方案之间是否存在差异(或偏好):

  1. Apache & MySQL are installed on the same VPS (4Gb RAM, 2 CPU Cores) and each of them configured for 2GB RAM, Apache和MySQL安装在相同的VPS(4Gb RAM,2个CPU核心)上,每个都配置为2GB RAM,
  2. Apache and MySQL installed on separate VPS (2Gb RAM, 1 CPU Core). Apache和MySQL安装在单独的VPS(2Gb RAM,1个CPU核心)上。

Thank you. 谢谢。

It is better to go for separate vps server 最好去单独的vps服务器

Following are the reason 以下是原因

1) can boost performance, u can balance the load equally 1)可以提高性能,你可以平衡负载

2) easier to set up replication if you have separate standalone DB server 2)如果您有单独的独立数据库服务器,则更容易设置复制

3) easier to trouble shoot if there is a problem either in apache or mysql 3)如果在apache或mysql中出现问题,则更容易出错

4) normally if you have separate DB instance, you will allocate 80% of your RAM memory to Myisam or Innodb engine for better concurrency. 4)通常如果你有单独的数据库实例,你将把80%的RAM内存分配给Myisam或Innodb引擎以获得更好的并发性。 If both kept in same vps, u will have to sacrifice concurrency, scalability 如果两者都保持在相同的vps中,则必须牺牲并发性和可伸缩性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM