我是新来的ubuntu服务器。我曾尝试打开服务器上的端口9090,但无法打开。我已经在我们的服务器上安装了ufw。
直到现在我所做的一切。
nmap本地主机-p 9090
Starting Nmap 6.40 ( http://nmap.org ) at 2015-04-21 12:36 IST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000044s latency).
Other addresses for localhost (not scanned): 127.0.0.1
PORT STATE SERVI
tail -f /var/log/syslog
-
May 1 14:45:11 server varnishd[1662]: Child start failed: could not open sockets
May 1 14:45:17 server varnishd[1688]: Child start failed: could not open sockets
-
清漆:
root@server:~# varnishd -V
varnishd (varnish-2.1.4 SVN )
Copyright (c) 2006-2009 Linpro AS / Verdens Gan
对于我的Ubuntu上的服务列表,在端口515上找不到打印机服务。
nmap -sT -O localhost
PORT STATE SERVICE
23/tcp open telnet
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
9050/tcp open tor-socks
Device type: general purpose
Running: Linux 3.X
OS CPE: cpe:/o:linux:linux_kernel:3
OS details: Lin
我想阻止其他人看到我的端口在nmap标准扫描(非特权)中被过滤。假设我打开了以下端口: 22,3306,995,防火墙配置如下:
-A INPUT -p tcp -m tcp --dport 22 -j DROP
-A INPUT -p tcp -m tcp --dport 3306 -j DROP
-A INPUT -p tcp -m tcp --dport 995 -j DROP
这是nmap扫描的结果:
[+] Nmap scan report for X.X.X.X
Host is up (0.040s latency).
Not shown: 90 closed p
我正在为课堂做一个动态的网络项目。我试图从MYSQL数据库中提取数据,以便在我的web应用程序中读取并使用它。当我尝试连接时,我会得到以下错误:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
我安装了MAMP (并且工作正常),然后尝试通过macPorts安装mongoDB。然后,macports开始安装一堆依赖项。在那之后,开始说“它成功了!”屏幕。在重新启动以查看是否可以修复它之后,我发现我无法启动MAMP服务器。console说:
9/13/10 1:20:54 PM [0x0-0x12012].de.appsolute.MAMP[133] (48)Address already in use: make_sock: could not bind to address [::]:80
我知道macPorts做了件傻事来惹我。我怎么才能知道它安装了什么窃取端口:80?
我在CentOS服务器上运行OTRS,MySQL DB也运行在远程服务器上,也运行在CentOS上。OTRS不支持与MySQL的加密连接,因此该连接不是加密的。我想使用stunnel加密连接,但是我无法配置它。MySQL正在使用默认端口3306。
OTRS = 10.0.0.4 MySQL = 10.0.0.3
#Sample stunnel configuration on OTRS Server
#Provide the full path to your certificate-key pair file
cert = /etc/pki/tls/certs/stunnel.pem
运行docker mysql
docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:5.7
mysql docker运行容器
Go代码:
package main
import (
"database/sql"
_ "github.com/go-sql-driver/mysql"
)
func main() {
db, err := sql.Open("mysql", "root:root@tcp(172.17.0.2:3306)/test-db")
if
我们在mysql支持的OSX服务器上运行了一个web应用程序。服务器正在运行达尔文内核9.8.0。Mysql版本为5.0.67。
它以前运行得很好,我们还不完全确定会发生什么变化。此后,这台计算机被重新启动,以查看它是否会启动mysql。不幸的是,这意味着我不能告诉您,在此之前,它是否被另一个用户错误地重新引导了,这导致了问题。
我所犯的错误是:
/usr/libexec/mysqld: File './mysql-bin.124367' not found (Errcode: 13)
090826 14:42:50 [ERROR] Could not use mysql-bi
我安装了一个tomcat映像并运行了一个容器:
[root@MY_IP ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e624bb55878f tomcat:7 "catalina.sh run" 43 minutes ago Up 43 minutes 0.0.0.0:32
我对Java非常陌生,在我的问题中可能听起来很愚蠢。我在端口8080上有Jboss,在端口1521上也有OracleXETNListener。当我检查命令pronmpt时,我看到两个端口都使用相同的进程ID,即2908。这能成为一个案例吗?此外,当我在Jboss上运行我的应用程序时,它给出了端口已在使用中的错误。
Active Connections
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:135 LR89PT1Y:0
我没有复杂的设置。两个容器,一个用于我的应用程序,一个用于API。
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8f07c240bee2 nginx "nginx -g 'daemon off" 13 hours ago Up 13 hours 443/tc
我想像这样使用我的iptables文件。
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:FIREWALL - [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type any