Moxa Technologies 331 User Manual Page 36

  • Download
  • Add to my manuals
  • Print
  • Page
    / 69
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 35
Moxa C Programmable RTU Controllers Managing Communications
4-2
Telnet/FTP
The Telnet and FTP Server service is enabled by default on the RTU controller. To enable or disable the
Telnet/ftp server, users need to edit the file /etc/inetd.conf.
Enabling the Telnet/FTP Server
The following example shows the default content of the file /etc/inetd.conf.
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.
DNS
To set up DNS client for the RTU controller, users need to edit three configuration files: /etc/hosts,
/etc/resolv.conf, and /etc/nsswitch.conf.
/etc/hosts
The hosts is the first file that the RTU controller system reads to resolve the host name of the remote IP
address.
/etc/resolv.conf
The resolv.conf contains the remote DNS servers address in it. Ask the network administrator or service
provider which DNS server address should be configured to this file. The DNS server’s IP address is specified
with the “nameserver” command. For example, add the following line to /etc/resolv.conf if the DNS server’s IP
address is 168.95.1.1:
nameserver 168.95.1.1
10.120.53.100 - PuTTY
root@Moxa:/etc# cat resolv.conf
#
# resolv.conf This file is the resolver configuration file
# See resolver(5).
#
#nameserver 192.168.1.16
nameserver 168.95.1.1
nameserver 140.115.1.31
nameserver 140.115.236.10
root@Moxa:/etc#
/etc/nsswitch.conf
This file defines the sequence to resolve the IP address by using /etc/hosts file or /etc/resolv.conf.
Web ServiceApache
The Apache web server’s main configuration file is /etc/apache/conf/httpd.conf, with the default
homepage located at /home/httpd/htdocs/index.html. Save the customized homepage to the following
directory:
Page view 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 68 69

Comments to this Manuals

No comments