我正在运行 Ubuntu 19.10,并且已成功使用以下方法在我的 LAN 中配置了 Epson 网络扫描仪理智的实用程序。尽管扫描仪工作正常,但命令sudo systemctl status saned
显示以下内容
● saned.service - LSB: SANE network scanner server
Loaded: loaded (/etc/init.d/saned; generated)
Active: failed (Result: exit-code) since Wed 2020-03-04 09:47:47 CET; 1min 5s
Docs: man:systemd-sysv-generator(8)
Process: 1166 ExecStart=/etc/init.d/saned start (code=exited, status=1/FAILURE
Mar 04 09:47:47 david-PC saned[1166]: * Starting SANE network scanner server sa
Mar 04 09:47:47 david-PC saned[1180]: saned (AF-indep+IPv6) from sane-backends 1
Mar 04 09:47:47 david-PC saned[1180]: do_bindings: [1] bind failed: Address alre
Mar 04 09:47:47 david-PC saned[1180]: do_bindings: [0] bind failed: Address alre
Mar 04 09:47:47 david-PC saned[1180]: do_bindings: couldn't bind an address. Exi
Mar 04 09:47:47 david-PC saned[1180]: FATAL ERROR; bailing out, waiting for chil
Mar 04 09:47:47 david-PC saned[1180]: bail_out: all children exited
Mar 04 09:47:47 david-PC systemd[1]: saned.service: Control process exited, code
Mar 04 09:47:47 david-PC systemd[1]: saned.service: Failed with result 'exit-cod
Mar 04 09:47:47 david-PC systemd[1]: Failed to start LSB: SANE network scanner s
为了弄清楚理智出了什么问题,我运行了sudo netstat -tlnp
以下命令:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:1579 0.0.0.0:* LISTEN 1234/sshd
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 1009/systemd-resolv
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1067/cupsd
tcp 0 0 0.0.0.0:35587 0.0.0.0:* LISTEN 1080/ecbd
tcp6 0 0 :::6566 :::* LISTEN 1/init
tcp6 0 0 :::1579 :::* LISTEN 1234/sshd
tcp6 0 0 ::1:631 :::* LISTEN 1067/cupsd
我不明白为什么过程在里面正在使用端口 6566,该端口应由 sane 服务器占用。重点是:命令systemctl -all list-sockets
显示端口 6566 被saned.socket
LISTEN UNIT ACTIVATES
/run/acpid.socket acpid.socket acpid.service
/run/apport.socket apport-forward.socket
/run/avahi-daemon/socket avahi-daemon.socket avahi-daemon.service
/run/cups/cups.sock cups.socket cups.service
/run/dbus/system_bus_socket dbus.socket dbus.service
/run/initctl systemd-initctl.socket systemd-initctl.service
/run/snapd-snap.socket snapd.socket snapd.service
/run/snapd.socket snapd.socket snapd.service
/run/systemd/fsck.progress systemd-fsckd.socket systemd-fsckd.service
/run/systemd/journal/dev-log systemd-journald-dev-log.socket systemd-journald.service
/run/systemd/journal/socket systemd-journald.socket systemd-journald.service
/run/systemd/journal/stdout systemd-journald.socket systemd-journald.service
/run/systemd/journal/syslog syslog.socket rsyslog.service
/run/udev/control systemd-udevd-control.socket systemd-udevd.service
/run/uuidd/request uuidd.socket uuidd.service
[::]:6566 saned.socket [email protected]:6566-192.168.1.66:36282
audit 1 systemd-journald-audit.socket systemd-journald.service
kobject-uevent 1 systemd-udevd-kernel.socket systemd-udevd.service
当然,如果我停下来saned.socket然后开始萨内德,各部分的作用相反,所以saned.socket下降萨内德上升。我不是 Unix 系统专家,所以我想了解和之间的区别saned.socket
,saned
并找到一种方法让它们正常工作