请问 安装centos 的代码 如何发布到这里来呢、。、、

Original 2019-05-12 14:30:08 219
abstract:虚拟机创建好了  域名在哪绑定的呢?mysql远程连接不上啊CentOS操作系统一般在 /etc/httpd/conf 下,有的Linux操作系统版本是在 /etc/Apache2/conf 或/usr/local/etc/apache 文件夹里面,剩下需要做的是修改配置文件httpd.conf,一般配置文件最下面有如下绑定域名说明:# VirtualHost example: # Al

虚拟机创建好了  域名在哪绑定的呢?mysql远程连接不上啊


CentOS操作系统一般在 /etc/httpd/conf 下,有的Linux操作系统版本是在 /etc/Apache2/conf 或
/usr/local/etc/apache 文件夹里面,剩下需要做的是修改配置文件httpd.conf,一般配置文件最下面有如下绑定域名说明:
# VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # #<VirtualHost *:80> # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost>
大家可以依葫芦画瓢,也可以结合相关语法加入自己的配置说明,下面是我无忧程序的配置文件:1、* 星号修改成自己网站的IP地址
2、ServerAdmin管理员邮箱(可有可无) 3、DocumentRoot网站文件在服务器的目录路径 4、ServerName绑定相应域名
5、ServerAlias泛解析绑定子域名 6、ErrorLog和CustomLog指定日志文件存放路径。
<VirtualHost 175.102.8.117:80> addDefaultCharset gbk DocumentRoot /chengxu ServerName 66php.com ServerAlias *.66php.com ErrorLog /sym/logs/66php.com-error_log CustomLog /sym/logs/66php.com-access_log common </VirtualHost>

如果一个服务器绑定多个域名不是在ServerName添加多个域名,ServerName 后面只能加一个域名,要重复绑定则需要添加多加多个VirtualHost模块。

Correcting teacher:查无此人Correction time:2019-05-13 09:17:20
Teacher's summary:域名单独绑定不了。因为你没有公网ip。 域名绑定服务器,你应该会设置吧,绑定服务器,需要ip地址,家里电脑没有公网ip,没办法绑定。虚拟机是为了学习服务器系统。继续加油

Release Notes

Popular Entries