标签: port

指向apache服务器中不同端口的Multiples域

我正在使用一个Web开发框架,该框架在apache服务器端口中发布其应用程序:8080,8081,8082等.

例如,MyApp1在localhost:8080中运行,MyApp2在localhost:8081中运行,依此类推.

我想要实现的是我的域指向一个"端口",其应用程序在我的apache Web服务器上运行,例如www.mydomainclient1.com应指向8080端口,www.mydomainclient2.com应指向8081端口.

我所做的是我已进入我的域名提供商网站,然后进入全面DNS控制并将这些域指向我的专用服务器IP.

现在,我的域名指向mydedicatedserverIP,所以当我执行www.mydomainclient1.com和www.mydomainclient2.com时,他们都访问mydedicatedserverIP,默认为80端口.

我想解决的情况是:

我想让www.mydomainclient1.com直接指向mydedicatedserverIP:8080和www.mydomainclient2.com指向mydedicatedserverIP:8081.

您认为这对此有什么好的解决方案?(我希望我的问题很明确,因为我不是英语母语者,你可以看到)

环境:Linux Debian 5 Lenny,Apache Server 2.2.9-10 + lenny8

由于我是apache服务器的新手,任何评论或建议都会非常感激,即使你认为是显而易见的:-).

apache port

1
推荐指数
1
解决办法
886
查看次数

x86 - x64移植查询

我们有一个用32位硬件在32位窗口上运行的C/C++代码编写的应用程序.我的问题是,如果我们将硬件升级到64位并保持我们的操作系统32位,我的应用程序是否需要64位端口?如果需要,在32位操作系统上会有什么好处?

64-bit port x86

1
推荐指数
1
解决办法
181
查看次数

WCF多个绑定端口号

当我的WCF服务中有许多端点时......

是否明智或可能为他们重新使用相同的端口号.

问题是当部署服务时,有太多的端口号需要记住所使用的不同绑定.

port wcf binding numbers

1
推荐指数
1
解决办法
3603
查看次数

python使用哪些端口发送html请求?使用urllib或urllib2

我正在使用webpy制作一个小网站.当我想使用OAuth时,我发现防火墙会停止对任何网站的http请求,我甚至无法使用IE浏览互联网.

所以我让管理员为我打开一些端口,但我不知道python或IE将使用哪些端口来发送http请求.

谢谢!

python port http urllib

1
推荐指数
2
解决办法
2533
查看次数

从XAMPP运行apache服务时出错

几个月前我安装了XAMPP,它一直运行良好.但是最近当我打开它时,我收到一个端口被占用的错误.

现在每当我启动XAMPP并运行apache服务时,我都会遇到以下错误:

Apache Service detected with wrong path
Change XAMPP Apache settings or
Uninstall/disable the other service manually first
Found Path: ERROR: Not Able To Open Service Manager
Expected Path: "d:\my local server\xampp\apache\bin\httpd.exe" -k runservice
Problem detected!
Port 80 in use by "system"!
Apache WILL NOT start without the configured ports free!
You need to uninstall/disable/reconfigure the blocking application
or reconfigure Apache to listen on a different port
Run Code Online (Sandbox Code Playgroud)

也许端口80被某些系统进程使用?

这些错误意味着什么,我该如何处理它们?

apache xampp port

1
推荐指数
1
解决办法
4万
查看次数

如何在iOS中列出开放端口?

我正在使用*越狱设备,我想编写一个应用程序列出开放端口(例如TCP端口).

我有两个想法:

  • 使用一些本机API获取已打开端口的列表
  • 执行shell命令获取已打开端口的列表并解析此shell命令的结果.

我应该使用哪个API或shell命令以及如何以编程方式触发它?

port tcp jailbreak ios

1
推荐指数
1
解决办法
7197
查看次数

无法在debian 7上的端口80上启动Jenkins

我已经在debian 7上安装了Jenkins.现在我想在端口80上运行它,所以我可以简单地键入http://jenkins我的本地LAN而不是http://jenkins:8080(目前正在工作).我已将文件修改/etc/default/jenkins为:

# port for HTTP connector (default 8080; disable with -1)
#HTTP_PORT=8080
#HTTP_PORT=88
HTTP_PORT=80
Run Code Online (Sandbox Code Playgroud)

但是,当我重新启动jenkins服务时:sudo service jenkins restart并尝试访问http://jenkins:80我只是得到一个空白/错误页面.日志说(/var/log/jenkins/jenkins.log ):

java.io.IOException: Failed to start a listener: winstone.HttpListener
    at winstone.Launcher.spawnListener(Launcher.java:229)
    at winstone.Launcher.<init>(Launcher.java:181)
    at winstone.Launcher.main(Launcher.java:384)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at Main._main(Main.java:288)
    at Main.main(Main.java:98)
Caused by: java.io.IOException: Failed to listen on port 80
    at winstone.HttpListener.getServerSocket(HttpListener.java:122)
    at winstone.HttpListener.start(HttpListener.java:75)
    at winstone.Launcher.spawnListener(Launcher.java:220)
    ... 8 more
Caused by: java.net.BindException: Permission denied …
Run Code Online (Sandbox Code Playgroud)

linux port jenkins

1
推荐指数
1
解决办法
3835
查看次数

获取用于TCP连接的随机端口

我有一个客户端和一个服务器应用程序。当客户端要发送文件时,我正在使用TCP连接。当我为连接使用恒定端口号时,它可以工作(服务器接收文件)。

我想使用随机端口,因此尝试将端口设置为0。

我的代码是:

bzero((char *) &serv_addr, sizeof(serv_addr));
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = INADDR_ANY;
serv_addr.sin_port = 0;

if (bind(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0){
    cout << "failed to bind with errno: "<< errno << endl;
    exit(1);
}
Run Code Online (Sandbox Code Playgroud)

绑定有效,但使用端口0而不是预期的随机端口。

我究竟做错了什么?

c++ sockets linux port tcp

1
推荐指数
1
解决办法
4333
查看次数

EAddrInUse用于实时重新加载 - 节点js - 关于运行gulp命令

我为我的mean-io堆栈应用程序运行gulp.

我得到以下错误.

13:15:54] Starting 'server'...
13:15:54] Finished 'server' after 47 ms
13:15:54] Live reload server listening on: 35729

.. Uhoh. Got error listen EADDRINUSE ...
rror: listen EADDRINUSE
   at errnoException (net.js:901:11)
   at Server._listen2 (net.js:1039:14)
   at listen (net.js:1061:10)
   at Server.listen (net.js:1127:5)
Run Code Online (Sandbox Code Playgroud)

我猜其他应用程序正在使用端口35729.我对吗?我也尝试更改livereload.js中的端口号.但是,我得到了同样的错误.

以下是文件,我看到分配的35729端口号.如果要在任何地方更改端口号,请告诉我.

 myApp\node_modules\grunt-contrib-watch\node_modules\tiny-lr-fork\lib\public\livereload.js:
321:     this.port = 35829;                
myApp\node_modules\grunt-contrib-watch\node_modules\tiny-lr-fork\lib\server.js
20:   options.port = parseInt(options.port || 35729, 10);             
myApp\node_modules\grunt-contrib-watch\node_modules\tiny-lr-fork\node_modules\noptify\index.js:
21: //       .option('port', '-p', 'Port to listen on (default: 35729)', Number)        
myApp\node_modules\grunt-contrib-watch\node_modules\tiny-lr-fork\bin\tiny-lr:
14:   .option('port', '-p', 'Port to listen on (default: 35729)', Number)
18: opts.port …
Run Code Online (Sandbox Code Playgroud)

port node.js livereload gulp

1
推荐指数
1
解决办法
3890
查看次数

让wildfly听端口443而不是8443

所以我添加了一个SSL到我的证书wildfly 9和它的工作,但我想我的配置standalone.xml来听httpsport 443port 8443作为默认的配置,所以当我更新的价值${jboss.https.port:8443} to ${jboss.https.port:443}也产生错误.这就是我对我的看法standalone.xml:

<server name="default-server">
            <http-listener name="default" socket-binding="http" redirect-socket="https"/>
            <https-listener name="httpsServer" socket-binding="https" security-realm="ApplicationRealm"/>
            <host name="default-host" alias="localhost">
                <location name="/" handler="welcome-content"/>
                <location name="/images" handler="ImagesDirHandler"/>
                <filter-ref name="server-header"/>
                <filter-ref name="x-powered-by-header"/>
            </host>
</server>

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
    <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
    <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
    <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
    <socket-binding name="http" port="${jboss.http.port:8080}"/>
    <socket-binding name="https" port="${jboss.https.port:8443}"/>
    <socket-binding name="txn-recovery-environment" port="4712"/>
    <socket-binding name="txn-status-manager" port="4713"/>
    <outbound-socket-binding name="mail-smtp">
        <remote-destination host="localhost" port="25"/>
    </outbound-socket-binding> …
Run Code Online (Sandbox Code Playgroud)

https port wildfly-9

1
推荐指数
1
解决办法
5804
查看次数

标签 统计

port ×10

apache ×2

linux ×2

tcp ×2

64-bit ×1

binding ×1

c++ ×1

gulp ×1

http ×1

https ×1

ios ×1

jailbreak ×1

jenkins ×1

livereload ×1

node.js ×1

numbers ×1

python ×1

sockets ×1

urllib ×1

wcf ×1

wildfly-9 ×1

x86 ×1

xampp ×1