改变testing链接端口

安装SonarQube后无法访问TestLink,我遇到了一些麻烦

也许这件事是:

  • 2软件使用相同的端口。
  • 对方一个软件的.conf是错误的。

这是我的情况:

第一步 :我在Cent OS上成功安装TestLink并能够使用本地IP从浏览器访问Testlink(访问Testlink的先决条件是安装EPEL,之前已经安装了APACHE)

第二步 :不幸的是,我安装了SonarQube。 成功安装SonarQube后。 我无法使用本地IP访问Testlink(或使用:localhost / testlink)。 浏览器自动redirect到SonarQube。

我认为这个问题是使用相同端口的2个软件,这里是Testlink和Sonar的configuration。 我在这个configuration中找不到任何相同的端口。

服务器/机器信息:

> static IP: 192.168.198.144 status of Apache: [susu@localhost cltest]$ > sudo systemctl status httpd.service [sudo] password for susu: ● > httpd.service - The Apache HTTP Server Loaded: loaded > (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: > disabled) Active: active (running) since Tue 2017-11-14 20:06:54 > +07; 7min ago > Docs: man:httpd(8) > man:apachectl(8) Process: 5525 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Main PID: 5535 (httpd) > Status: "Total requests: 0; Current requests/sec: 0; Current traffic: > 0 B/sec" CGroup: /system.slice/httpd.service > ├─5535 /usr/sbin/httpd -DFOREGROUND > ├─5536 /usr/sbin/httpd -DFOREGROUND > ├─5537 /usr/sbin/httpd -DFOREGROUND > ├─5538 /usr/sbin/httpd -DFOREGROUND > ├─5539 /usr/sbin/httpd -DFOREGROUND > └─5540 /usr/sbin/httpd -DFOREGROUND > > Nov 14 20:06:54 localhost.localdomain systemd[1]: Starting The Apache > HTTP Server... Nov 14 20:06:54 localhost.localdomain systemd[1]: > Started The Apache HTTP Server. 

Testlink的configuration

/etc/httpd/conf.d/testlink.conf

在浏览器上键入:localhost:8000。 TestLink无法访问:(无法连接

Firefox不能在localhost:8000上build立到服务器的连接。 该网站可能暂时不可用或太忙。 再试一次。 如果您无法加载任何页面,请检查您计算机的networking连接。 如果您的计算机或networking受防火墙或代理保护,请确保允许Firefox访问Web。

 <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/testlink-code-1.9.16/ ServerName testlink.cmehn.com ServerAlias www.testlink.example.com ProxyPreserveHost On ProxyPass / http://localhost:8000/ ProxyPassReverse / http://localhost:8000/ <Directory /var/www/html/testlink-code-1.9.16/> Options FollowSymLinks AllowOverride All Order allow,deny allow from all </Directory> ErrorLog /var/log/httpd/testlink.example.com-error_log CustomLog /var/log/httpd/testlink.example.com-access_log common </VirtualHost> 

声纳的configuration

/etc/httpd/conf.d/sonar.cmehn.com.conf

在浏览器上键入:localhost:9000。 声纳能够访问。

 <VirtualHost *:80> ServerName sonar.yourdomain.com ServerAdmin [email protected] ProxyPreserveHost On ProxyPass / http://localhost:9000/ ProxyPassReverse / http://localhost:9000/ TransferLog /var/log/httpd/sonar.yourdomain.com_access.log ErrorLog /var/log/httpd/sonar.yourdomain.com_error.log </VirtualHost> 

任何想法来解决这个问题? 我正在寻找很多,但没有什么价值。 感谢你对这个问题的努力。 谢谢。