我正在运行 Ubuntu 12.10 并且我有以下 4 个 VirtualHost 条目 /etc/apache2/apache2.conf
4级虚拟主机的条目是用于两个分开的点,test.example.com
并且test2.example.com
,为每一个条目HTTP,一个用于HTTPS。
<VirtualHost *:443>
DocumentRoot /var/www/test
ServerName test.example.com
# Other settings goes here
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/test
ServerName test.example.com
# Other settings goes here
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /var/www/test2
ServerName test2.example.com
# Other settings goes here
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/test2
ServerName test2.example.com
# Other settings goes here
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
我的问题 当我保存并重新启动 apache 时,我收到此警告:-
* 重新启动 web 服务器 apache2 [Sun Feb 17 18:30:09 2013] [warn] _default_ VirtualHost 在端口 …
为了允许来自外部的连接,我编辑将默认值/etc/mysql/my.cnf
更改为. 但是更改后,mysql 服务将无法启动。当我检查 mysql 错误日志时,它有这个:-bind-address
127.0.0.1
54.200.xx.xx
131030 12:27:53 [Note] Server hostname (bind-address): '54.200.xx.xx'; port: 3306
131030 12:27:53 [Note] - '54.200.xx.xx' resolves to '54.200.xx.xx';
131030 12:27:53 [Note] Server socket created on IP: '54.200.xx.xx'.
131030 12:27:53 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
131030 12:27:53 [ERROR] Do you already have another mysqld server running on port: 3306 ?
131030 12:27:53 [ERROR] Aborting
Run Code Online (Sandbox Code Playgroud)
服务器位于 Amazon EC2 上,运行 Ubuntu 12.04 LTS。知道问题是什么吗?
ubuntu@ip-172-31-xx-xxx:~$ ifconfig
eth0 Link …
Run Code Online (Sandbox Code Playgroud)