sudo apt-get update sudo apt-get install nginxsudo mkdir -p /var/www/example.com/html sudo chown -R $USER:$USER /var/www/example.com/html sudo chmod -R 755 /var/www sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/example.com sud…
综述: 浏览器访问虚拟IP: 192.168.1.57, 该虚拟IP被Keepalived接管,两个Keepalived进程分别运行在物理IP为192.168.1.56和192.168.1.59服务器上,这两个服务器上都运行着Nginx server.Nginx server都监听虚拟IP 192.168.1.57. Nginx背后有一些web app集群,已经配置成upstream. 为了防止Nginx自己成为单点瓶颈,这里采用了双Nginx server的方式.每个Server都是Ubunt…
在配置nginx 虚拟机时,执行 sudo /usr/sbin/nginx -t 报下面的错误: nginx: [emerg] nginx: configuration file /etc/nginx/nginx.conf test failed 错误原因是:在配置文件时,访问路径设置了两个,重复配置webroot路径导致,去掉一个就可以了. server { listen default_server; #root /usr/share/nginx/html/;去掉这行 index index…
We have already shown you How to Setup VSFTPD Server on CentOS 6.5/6.4 in our previous article. In that method, the users created in the server itself were logged-in to FTP server (i.e. local users). But what if the users who don’t have a local accou…
http://blog.matchgenius.com/tinycore-nginx-server-with-php-cgi-and-vsftpd/ Create fast testing server with TinyCore. I will be using Microcore (8MB) that resides in RAM and 500MB disk drive for persistence. TinyCore Nginx server with php-cgi and vsft…
Difficulty: 2Time: 15 minutes Want to host websites on your server? Using Apache? Great. This article will show you how to do exactly that using Apache’s “virtual hosts.” In Apache, you can use virtual hosts to direct http traffic for a given domain…
About Virtual Hosts 虚拟主机,用于在一个单一IP地址上,运行多个域.这对那些想在一个VPS上,运行多个网站的人,尤其有用.基于用户访问的不同网站,给访问者显示不同的信息.没有限制能VPS中,添加的虚拟主机的个数. Set Up 教程中的这些步骤,需要你有root权限.你可以查看Initial Server Setup ,来学习如何设置初始化服务器.这里使用www.作为root的名字,你可以使用你想用的. 另外,你需要在你的VPS上安装并运行apache. 如果没有安装,你可以…
我对rabbitmq学习还不深入,这些翻译仅仅做资料保存,希望不要误导大家. With exchanges, bindings, and queues under your belt, you might think you have all the coolness that is Rabbit figured out. But if you’ve played around much with Rabbit, you know there’s one nagging concept we h…
#Virtual hosts#Include conf/extra/httpd-vhosts.conf我只要把其中任何一个开启就是吧#去掉就启动不了apache.怎么回事error.log是这样的httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.101 for ServerNamehttpd.exe: Could not reliably determ…
Nginx的设置,RTMP在Ubuntu 14.04 https://www.vultr.com/docs/setup-nginx-rtmp-on-ubuntu-14-04…