Moxa DA-681-I-SP-LX [18/65] Enabling and disabling daemons

Moxa DA-681-I-DP-LX [18/65] Enabling and disabling daemons
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.

Содержание

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

Скачать