服务ip绑定0.0.0.0:27017
telnet x.x.x.x 27017
1. 确认服务器 开放8088端口
https://www.apachefriends.org/download.html 下载XAMPP for Windows,安装
2. 修改apache主配置文件
e:/opt/xampp/apache/conf/httpd.conf
默认有Listen 80这一行,找到这里在下一行添加Listen 8088
确认vhost功能开启
LoadModule vhost_alias_module modules/mod_vhost_alias.so
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
3. 创建目录 E:\upload, mkdir E:\upload
4. 修改apache vhost 配置文件 e:/opt/xampp/apache/conf/extra/httpd-vhosts.conf
添加以下配置
<VirtualHost *:8088>
ServerAdmin Administrator@www.mediamix.cn
DocumentRoot "E:/upload"
ServerName www.mediamix.cn
ServerAlias www.mediamix.cn
ErrorLog "logs/mediamix.cn-error.log"
CustomLog "logs/mediamix.cn.log" common
<Directory "E:/upload">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
apache, httpd, vhost
<VirtualHost *:8031>
ServerAdmin ubuntu@et-dev-mingzhanghui
DocumentRoot "/usr/ET/project/zktCrm"
ServerName et-dev-mingzhanghui
ServerAlias localhost
ErrorLog "logs/zktCrm-error.log"
CustomLog "logs/zktCrm-access.log" common
<Directory "/usr/ET/project/zktCrm">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>