问题标签 [remote-connection]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 在 Java 中通过 Jsch 查找远程操作系统名称
我正在使用Jsch连接到我的 Java 代码中的远程机器。我想在远程机器上执行一个命令。在 Windows 上,我需要"cmd /c"
在要执行的命令之前附加,但对于 linux,这不是必需的。所以我想知道我通过 Jsch 连接了哪个操作系统。我想到的一种方法是运行一些简单的 windows 特定命令,如果它有效,它就是 windows。如果不是,那就是其他一些操作系统。然后我将运行我的实际命令。有没有办法避免这种情况?通过 Jsch 通过 SSH 独立执行命令 OS 的其他方式?
c# - C# MySQL - 远程连接
我正在创建一个使用 MySQL 数据库存储数据的 C# (.NET 4.0) 应用程序。该数据库安装在第 3 方公司的服务器上,应用程序必须远程连接 - 目前通过域名 (myname.home.pl)。
此外还有一个网站也使用相同的数据库,该网站位于同一台服务器上,因此它通过 localhost 连接到 DB。
该网站始终正常运行,并且连接没有问题。
C# 应用程序通常也连接成功,但有时它无法打开连接,并且在连接超时后它返回错误:“无法连接到任何指定的 MySQL 主机”。我不知道发生这种错误的原因是什么。
此问题出现在 Windows XP 和 Windows 7 上,其他操作系统版本未经测试。
连接字符串采用以下格式(sqlData 结构包含登录数据):
我在stackoverflow上找到了几个关于这个错误的主题,但没有解决......
有没有人有类似的问题?它的原因是什么,或者我怎样才能让它不发生?
感谢您提供任何帮助的建议。
asp.net - Server Error in '/' Application (Error 40 on ASP.net page)
Hey all I am currently trying to connect to a database on a differnt server from where the .ASPX file is being called from.
In VS2013, in debug, It calls the query just fine without problems but once I compile and call that same page from the actual web server it displays this error:
The MS SQL server I am calling is a 2008 version.
The connection string I have tried are:
In my Web.config file I have no to the database since I have the code above I am using. I am starting to wondering wither that is causing the issue or not?
I am just wondering what I could be forgetting in order to make this connection work? I spoke to the DBA's and they say everything is working/configured as it should be. Remote connection is enabled and all. It's just odd that in debug inside VS2013 I can get to it (which is on a different PC - not on the DB/web server itself) yet once on the server I can not.
Any help would be great!
java - 无法理解连接建立代码
我是 Java 的初学者,因此我很难理解一段代码。在这个 SO 帖子中,前两行创建了一个连接实例:
我无法获得需要导入哪个库来支持此功能?该帖子在开头提到了使用,JSch
但是当我尝试它时,我无法在JSch
Connection
课堂上声明?任何帮助都会对我有用。
sql-server - 在 SQL Server 2005 命令行上启用远程连接
我正在使用的一个客户端需要他的 SQL Server 2005 来接受远程连接,但我只有一个 telnet shell 可以使用。我无法在这台远程计算机上获得任何 GUI,只有命令外壳。
那么,是否有可能以任何方式启用远程连接?
我已经sqlcmd
在我的 shell 中尝试过,但即使我指定localhost
为地址,它也表示不允许远程连接。
任何帮助都会很棒:)
sql - 收到此错误 26 - 错误定位客户端机器中指定的服务器/实例
我的应用程序在我的电脑上运行良好,但在客户端上运行不正常。我厌倦了谷歌搜索。请任何人帮助我:(我在我的计算机上进行了以下更改- 1.远程访问已启动 2.Sqlbrowser 已启动并运行 3.tcp 1433 和 udp 1433 异常添加到 Windows 防火墙 4.tcp/ip--IPALL 端口-1433
mysql - 缓慢的mysql远程访问(两台服务器之间的直接以太网链接)
我有两台带有直接以太网链接的服务器(一台 mysql db 服务器,一台客户端服务器)。无论使用 IP 地址还是 DNS,“远程”访问都非常快(查询延迟可忽略不计)。
为了微调性能,我修改了数据库服务器上的 my.cnf (redhat, /etc/my.cnf) [mysqld] 类别(通过更改密钥和 innodb 缓冲区相关大小)。由于测试结果不够好,我将 my.cnf 改回默认状态。
但是从那时起,从远程建立与数据库服务器的连接变得非常缓慢(本地访问似乎很好)。知道背后的原因是什么吗?
ps:
- 连接后,远程查询似乎和以前一样快。建立连接很慢。
- 常见的 DNS 问题在这里似乎无效,因为它无法解释 (a) 为什么通过 DNS 的连接速度很快;(b) 为什么 [mysqld] 更改 key/innodb 缓冲区大小会影响 DNS,即使 my.cnf 更改回其默认状态;(c) my.cnf 更改/回退后通过 IP 或 DSN 建立连接变慢
更新:
经过数小时的努力,我重新启动了数据库服务器,现在看来 my.cnf 的功能符合预期......
c# - c#获取远程连接机器的用户的ip地址
我在 Windows 服务中使用以下一段 c# 代码来捕获远程连接和断开连接事件。
如何获取远程连接到该机器的最终用户的 IP 地址。
powershell - How to quickly check if WMI information can be pulled from a remote computer
I am looking for a command (an IF test) that will run quickly to see if a computer can be connected to. I do one if-test and if it passes then I will run a slew of commands to pull the information I need. If the first test fails, then it does not run the commands as otherwise it would have to fail out on each test which would take a long time.
The following code works, but it is very slow and results in a "GUI (Not Responding)" if the computer is not on the network. I am looking for something to check quicker if it fails.
I sometimes query large lists of computers and if a majority of them are off, the command above will take a ton of time to complete.
mysql - 当远程服务器中同时存在mysql和mariadb时如何连接到mariadb
我正在尝试连接到远程服务器中的 mariadb,我已经在服务器中安装了 mysql 和 mariadb。现在,当我尝试使用以下参数连接到 mariadb 时,我连接到的是 mysql,而不是 mariadb。关于如何解决这个问题的任何建议。