Moxa V2416-T-LX [28/88] Moxa etc vi inetd conf

Moxa V2416-T-XPE [28/88] Moxa etc vi inetd conf
V2416 Linux User's Manual Managing Communications
3-4
device-node: /dev/ttyMn; n = 0,1,2,...
interface-no: [see following table]:
interface-no Operation Mode
None Display current setting
0 RS-232
1 2-wire RS-485
2 RS-422
3 4-wire RS-485
For example, use the following commands to set /dev/ttyM0 to RS-422:
MOXA:~# setinterface /dev/ttyM0 2
MOXA:~# setinterface /dev/ttyM0
Now setting is RS422 interface.
MOXA:~#
Telnet/FTP Server
In addition to supporting Telnet client/server and FTP client/server, the V2416-LX also supports SSH and sftp
client/server. To enable or disable the Telnet/ftp server, you need to edit the file /etc/inetd.conf.
1. Mount the root file system with write permission.
MOXA:~# mount -o remount,rw /dev/hda1 /
2. Type # cd /etc to change the directory.
MOXA:~# cd /etc
3. Type # vi inetd.conf to edit the configuration file.
MOXA:/etc# vi inetd.conf
Enabling the Telnet/FTP Server
The following example shows the default content of the file /etc/inetd.conf. The default is to enable the
Telnet/ftp server:
discard dgram udp wait root /bin/discard
discard stream tcp nowait root /bin/discard
telnet stream tcp nowait root /bin/telnetd
ftp stream tcp nowait root /bin/ftpd -l
Disabling the Telnet/FTP Server
Disable the daemon by typing #in front of the first character of the row to comment out the line. For example,
to disable the FTP server, use the following commands:
discard dgram udp wait root /bin/discard
discard stream tcp nowait root /bin/discard
telnet stream tcp nowait root /bin/telnetd
#ftp stream tcp nowait root /bin/ftpd -l

Содержание

Похожие устройства

Скачать