如果apache剛灌好,啟動時總會出現以下錯誤訊息:
Starting httpd: httpd: apr_sockaddr_info_get() failed for xxx
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysqld stop
var parser = document.createElement('a'); parser.href = "http://example.com:3000/pathname/?search=test#hash"; parser.protocol; // => "http:" parser.hostname; // => "example.com" parser.port; // => "3000" parser.pathname; // => "/pathname/" parser.search; // => "?search=test" parser.hash; // => "#hash" parser.host; // => "example.com:3000"