[Erlang危机](4.4)命名管道
2014-11-09 10:33
330 查看
原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface联系邮箱:cto@188.com
-------------------------------------------------------------------------------------
The first argument is the name of the file that will act as the named pipe. The second one is where logs will be saved 6. 第一个参数是指定作为命名管道的文件,第二个是存放日志的目录6。To connect to the node, you use the to_erl program: 你可以使用 to_erl程序连接到节点上:-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
And the shell is connected. Closing stdio (with ˆD) will disconnect from the shell while leaving it running. 连接上后,你可以使用ctrl+D来断开远程节点(只是断开,不会终结远程节点).[5] "erl" is the command being run. Additional arguments can be added after it. For example "erl +K true" will turn kernel polling on.
[6] Using this method ends up calling fsync for each piece of output, which may give quite a performance hit if a lot of IO is taking place over standard output.
[注5]:“erl”就是要运行的命令,你也可以在后面加上其它启动选项如"erl +K ture"会把打开内核kernel轮询。
[注6] :这个方法最终会调用fsync会同步每一块输出,如果有大量的IO操作产生,性能会下降得很厉害。
Named Pipes
命名管道(Named Pipes)
A little known way to connect with an Erlang node that requires no explicit distribution is through named pipes. This can be done by starting Erlang with run_erl, which wraps Erlang in a named pipe 5: 还有一种鲜为人知连接Erlang节点的方法:命名管道(named pipes),可以通过使用run_erl 启动Erlang来完成 (Erlang会被包裹在命名管道内)5。-------------------------------------------------------------------------------------$ run_erl /tmp/erl_pipe /tmp/log_dir "erl"
-------------------------------------------------------------------------------------
The first argument is the name of the file that will act as the named pipe. The second one is where logs will be saved 6. 第一个参数是指定作为命名管道的文件,第二个是存放日志的目录6。To connect to the node, you use the to_erl program: 你可以使用 to_erl程序连接到节点上:-------------------------------------------------------------------------------------
$ to_erl /tmp/erl_pipe
Attaching to /tmp/erl_pipe (^D to exit)
1>
-------------------------------------------------------------------------------------
And the shell is connected. Closing stdio (with ˆD) will disconnect from the shell while leaving it running. 连接上后,你可以使用ctrl+D来断开远程节点(只是断开,不会终结远程节点).[5] "erl" is the command being run. Additional arguments can be added after it. For example "erl +K true" will turn kernel polling on.
[6] Using this method ends up calling fsync for each piece of output, which may give quite a performance hit if a lot of IO is taking place over standard output.
[注5]:“erl”就是要运行的命令,你也可以在后面加上其它启动选项如"erl +K ture"会把打开内核kernel轮询。
[注6] :这个方法最终会调用fsync会同步每一块输出,如果有大量的IO操作产生,性能会下降得很厉害。
相关文章推荐
- [Erlang危机](4.4)命名管道
- 在.NET中使用命名管道完成进程间通信(转自网络)
- [Erlang危机](3.2)限制输入
- IPC——命名管道
- 在.NET中使用命名管道完成进程间通信[转]
- Linux进程间通信(IPC)之二——命名管道(FIFO)
- 使用命名管道进程之间通信(转)
- Linux进程间通信——使用命名管道
- 在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)
- 嵌入式linux的学习笔记-标准文件流管道与命名管道(三)
- 服务器编程之--用命名管道(FIFO)来做进程间通信
- 进程间通信 - 命名管道实现
- 在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连
- Linux匿名管道与命名管道
- 命名管道
- Linux进程间通信之命名管道(FIFO)
- 在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)
- [zz]VC++下命名管道编程的原理及实现
- (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接) 的解决方案
- 配置远程客户机使用命名管道协议访问SQL服务器