Moxa DA-681-I-SP-LX [18/65] Enabling and disabling daemons
![Moxa DA-681-I-DP-LX [18/65] Enabling and disabling daemons](/views2/1199528/page18/bg12.png)
DA-681 Linux Software Configuration
2-7
Enabling and Disabling Daemons
The following daemons are enabled when the DA-681-LX boots up for the first time.
• snmpd SNMP Agent Daemon
• telnetd Telnet Server/Client Daemon
• inetd Internet Daemons
• ftpd FTP Server/Client Daemon
• sshd Secure Shell Server Daemon
• httpd Apache WWW Server Daemon
Type the command ps –ef to list all processes currently running.
Moxa:~# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Feb18 ? 00:00:01 init [2]
root 2 1 0 Feb18 ? 00:00:00 [migration/0]
root 3 1 0 Feb18 ? 00:00:00 [ksoftirqd_0]
root 4 1 0 Feb18 ? 00:00:00 [events/0]
root 5 1 0 Feb18 ? 00:00:00 [khelper]
root 6 1 0 Feb18 ? 00:00:00 [kthread]
root 9 6 0 Feb18 ? 00:00:00 [kblockd/0]
root 10 6 0 Feb18 ? 00:00:00 [kacpid]
root 107 6 0 Feb18 ? 00:00:00 [kseriod]
root 143 6 0 Feb18 ? 00:00:00 [pdflush]
root 144 6 0 Feb18 ? 00:00:00 [pdflush]
root 145 6 0 Feb18 ? 00:00:00 [kswapd0]
root 146 6 0 Feb18 ? 00:00:00 [aio/01]
root 622 6 0 Feb18 ? 00:00:00 [khubd]
root 763 6 0 Feb18 ? 00:00:00 [scsi_eh_0]
root 765 6 0 Feb18 ? 00:00:00 [usb-storage]
root 1119 1 0 Feb18 ? 00:00:00 udevd --daemon
root 1527 6 0 Feb18 ? 00:00:00 [kpsmoused]
root 1754 6 0 Feb18 ? 00:00:00 [kmirrord]
daemon 2094 1 0 Feb18 ? 00:00:00 /sbin/portmap
root 2311 1 0 Feb18 ? 00:00:00 /usr/sbin/acpid
-c /etc/acpi/evemts –s /var/run/acpid.socket
root 2318 1 0 Feb18 ? 00:00:00 /usr/sbin/inetd
To run a private daemon, you can edit the file rc.local as follows:
1. Because the root file system is mounted in Read-only mode, you need to re-mount it with write permission.
Moxa:~# mount -o remount,rw /dev/hda1 /
2. Type cd /etc/ to change directories.
Moxa:~# cd /etc/
3. Type vi rc.local to edit the configuration file with vi editor.
Moxa:/etc/# vi rc.local
4. Next, add the application daemon that you want to run. We use the example program tcps2-release to
illustrate, and configure it to run in the background.
Содержание
- Da 681 series linux manual 1
- Fourth edition august 2012 1
- Www moxa com product 1
- Copyright notice 2
- Da 681 series linux manual 2
- Disclaimer 2
- Technical support contact information 2
- Trademarks 2
- Www moxa com support 2
- Introduction 4
- Attention 5
- Da 681 linux introduction 5
- Overview 5
- Product features 5
- Software specifications 5
- Attention 6
- Da 681 linux introduction 6
- Device driver 6
- Hardware 6
- Linux kernel 6
- Micro kernel 6
- Protocol stack 6
- Read only root file system 6
- Software components 6
- Da 681 linux introduction 7
- Da 681 linux introduction 8
- Da 681 linux introduction 9
- Da 681 linux introduction 10
- Da 681 linux introduction 11
- Software configuration 12
- Connecting from a telnet console 13
- Da 681 linux software configuration 13
- Starting from a vga console 13
- Attention 14
- Connecting from an ssh console 14
- Da 681 linux software configuration 14
- Adjusting the system time 15
- Da 681 linux software configuration 15
- Linux users 15
- Setting the time manually 15
- Windows users 15
- Attention 16
- Da 681 linux software configuration 16
- Ntp client 16
- Da 681 linux software configuration 17
- Updating the time automatically 17
- Da 681 linux software configuration 18
- Enabling and disabling daemons 18
- Da 681 linux software configuration 19
- Setting the run level 19
- Cron daemon for executing scheduled commands 20
- Da 681 linux software configuration 20
- Da 681 linux software configuration 21
- Inserting a sata hard drive into the computer 21
- Da 681 linux software configuration 22
- Inserting a usb storage device into the computer 22
- Attention 23
- Checking the linux version 23
- Da 681 linux software configuration 23
- Inserting a compactflash card into the computer 23
- Apt installing and removing packages 24
- Attention 24
- Da 681 linux software configuration 24
- Attention 25
- Da 681 linux software configuration 25
- Main swtd_fd open dev swtd o_rdwr time 4000 4000 ms ioctl swtd_fd ioctl_swatchdog_enable time while 1 25
- Wdt watchdog timer 25
- Da 681 linux software configuration 26
- Int swtd_disable int fd 26
- Int swtd_enable int fd unsigned long time 26
- Int swtd_get int fd int mode unsigned long time 26
- Int swtd_open void 26
- Ioctl swtd_fd ioctl_swatchdog_ack null close swtd_fd 26
- Close the file handle 27
- Managing communications 31
- Changing the interfaces configuration file 32
- Changing the network settings 32
- Da 681 linux managing communications 32
- Static ip address 32
- Adjusting ip addresses with ifconfig 33
- Da 681 linux managing communications 33
- Dynamic ip address using dhcp 33
- Enabling the telnet server 33
- Telnet server 33
- Da 681 linux managing communications 34
- Disabling the ftp server 34
- Disabling the telnet server 34
- Dns client 34
- Enabling the ftp server 34
- Ftp server 34
- Da 681 linux managing communications 35
- Etc hostname 35
- Etc nsswitch conf 35
- Etc resolv conf 35
- Apache web server 36
- Bin sh var www apache2 default cgi bin index cgi disable filename globbing set f echo content type text plain charset iso 8859 1 echo echo cgi 1 test script report echo echo argc is argv is echo echo server_software server_software echo server_name server_name echo gateway_interface gateway_interface echo server_protocol server_protocol echo server_port server_port echo request_method request_method echo http_accept http_accept echo path_info path_info echo path_translated path_translated echo script_name script_name echo query_string query_string echo remote_host remote_host 36
- Da 681 linux managing communications 36
- Default homepage 36
- Attention 37
- Da 681 linux managing communications 37
- Echo remote_addr remote_addr echo remote_user remote_user echo auth_type auth_type echo content_type content_type echo content_length content_length 37
- Saving web pages to a usb storage device 37
- Attention 38
- Da 681 linux managing communications 38
- Iptables 38
- Da 681 linux managing communications 39
- Filter table includes three chains 39
- Mangle table includes two chains 39
- Nat table includes three chains 39
- Sub tables 39
- Da 681 linux managing communications 40
- Iptables hierarchy 40
- Da 681 linux managing communications 41
- Iptables modules 41
- Observe and erase chain rules 41
- To maintain the database 41
- Append or delete rules 42
- Da 681 linux managing communications 42
- Define policy for chain rules 42
- Examples 42
- Attention 43
- Da 681 linux managing communications 43
- Examples 43
- Nat network address translation 43
- Da 681 linux managing communications 44
- Enabling nat at bootup 44
- Nat example 44
- Attention 45
- Connecting to a ppp server over a simple dial up connection 45
- Da 681 linux managing communications 45
- Ppp point to point protocol 45
- Checking the connection 46
- Connecting to a ppp server over a hard wired link 46
- Da 681 linux managing communications 46
- Da 681 linux managing communications 47
- Setting up a machine for incoming ppp connections 47
- Attention 48
- Da 681 linux managing communications 48
- Da 681 linux managing communications 49
- Da 681 linux managing communications 50
- Nfs network file system client 50
- Da 681 linux managing communications 51
- Snmp simple network management protocol 51
- Da 681 linux managing communications 52
- Ethernet bridging for private networks on different subnets 52
- Openvpn 52
- Attention 53
- Da 681 linux managing communications 53
- Da 681 linux managing communications 54
- Attention 55
- Da 681 linux managing communications 55
- Da 681 linux managing communications 56
- Ethernet bridging for private networks on the same subnet 56
- Routed ip 56
- Da 681 linux managing communications 57
- Da 681 linux managing communications 58
- System recovery 59
- Attention 60
- Bootable usb disk recovery 60
- Da 681 linux system recovery 60
- Da 681 lx 60
- Recovery environment 60
- Recovery procedure 60
- Usb port 60
- Da 681 linux system recovery 61
- Da 681 linux system recovery 62
- Da 681 linux system recovery 63
- Attention 64
- Da 681 linux system recovery 64
- Da 681 linux system recovery 65
Похожие устройства
- Moxa DA-681-I-SP-LX Технические характеристики
- Moxa DA-681-I-SP-LX Руководство по аппаратной части
- Moxa DA-681-I-SP-XPE Инструкция по эксплуатации
- Moxa DA-681-I-SP-XPE Руководство по программной части (Windows)
- Moxa DA-681-I-SP-XPE Руководство по программной части (Linux)
- Moxa DA-681-I-SP-XPE Руководство по программной части (Windows CE)
- Moxa DA-681-I-SP-XPE Технические характеристики
- Moxa DA-681-I-SP-XPE Руководство по аппаратной части
- Moxa DA-683-DPP-T-LX Инструкция по эксплуатации
- Moxa DA-683-DPP-T-LX Руководство по программной части (Windows)
- Moxa DA-683-DPP-T-LX Руководство по программной части (Linux)
- Moxa DA-683-DPP-T-LX Руководство по программной части (Windows 7)
- Moxa DA-683-DPP-T-LX Руководство по быстрой установке
- Moxa DA-683-DPP-T-LX Технические характеристики
- Moxa DA-683-DPP-T-XPE Инструкция по эксплуатации
- Moxa DA-683-DPP-T-XPE Руководство по программной части (Windows)
- Moxa DA-683-DPP-T-XPE Руководство по программной части (Windows 7)
- Moxa DA-683-DPP-T-XPE Руководство по программной части (Linux)
- Moxa DA-683-DPP-T-XPE Руководство по быстрой установке
- Moxa DA-683-DPP-T-XPE Технические характеристики