node.js - How do I release port 80 on a beaglebone so I can use it? -


i have beaglebone on have configured lighttpd run. have running on port 8080 , works fine. except want use on port 80. unfortunately won't start on port 80 because fails , reports port in use. when access beaglebone via http on port 80, of course beaglebone 101 screen.

this page suggests run systemctl disable bone101.service service not exist on version of angstrom. using angstrom img got here, angstrom-cloud9-ide-gnome-eglibc-ipk-v2012.12-beaglebone-2013.04.13.img.xz.

i running of following disabled:

systemctl disable cloud9.service                   systemctl disable gateone.service                  systemctl disable bonescript.service               systemctl disable bonescript-autorun.service       systemctl disable avahi-daemon.service             systemctl disable gdm.service     # disables gnome desktop maybe irrelevant here, saves ton of memory 

but still problem on port 80.

i know node.js what's serving content, when ps aux shows node.js not running (i can kill it), seems accessing port once again invokes node.js.

how can disable port 80 once , can free use lighttpd?

here complete output ps aux:

root         1  0.2  1.0   4820  2684 ?        ss   17:58   0:01 /sbin/init run_hardware_tests root         2  0.0  0.0      0     0 ?        s    17:58   0:00 [kthreadd] root         3  0.0  0.0      0     0 ?        s    17:58   0:00 [ksoftirqd/0] root         5  0.0  0.0      0     0 ?        s<   17:58   0:00 [kworker/0:0h] root         7  0.0  0.0      0     0 ?        s<   17:58   0:00 [kworker/u:0h] root         8  0.0  0.0      0     0 ?        s    17:58   0:00 [migration/0] root         9  0.0  0.0      0     0 ?        s    17:58   0:00 [rcu_bh] root        10  0.0  0.0      0     0 ?        s    17:58   0:00 [rcu_sched] root        11  0.0  0.0      0     0 ?        s    17:58   0:00 [watchdog/0] root        12  0.0  0.0      0     0 ?        s<   17:58   0:00 [khelper] root        13  0.0  0.0      0     0 ?        s    17:58   0:00 [kdevtmpfs] root        14  0.0  0.0      0     0 ?        s<   17:58   0:00 [netns] root        15  0.0  0.0      0     0 ?        s    17:58   0:00 [kworker/0:1] root        16  0.0  0.0      0     0 ?        s    17:58   0:00 [bdi-default] root        17  0.0  0.0      0     0 ?        s<   17:58   0:00 [kintegrityd] root        18  0.0  0.0      0     0 ?        s<   17:58   0:00 [kblockd] root        19  0.0  0.0      0     0 ?        s    17:58   0:00 [khubd] root        20  0.0  0.0      0     0 ?        s    17:58   0:00 [irq/86-44e0b000] root        21  0.0  0.0      0     0 ?        s    17:58   0:00 [kworker/u:1] root        26  0.0  0.0      0     0 ?        s    17:58   0:00 [irq/46-4819c000] root        35  0.0  0.0      0     0 ?        s<   17:58   0:00 [rpciod] root        37  0.0  0.0      0     0 ?        s    17:58   0:00 [khungtaskd] root        38  0.0  0.0      0     0 ?        s    17:58   0:00 [kswapd0] root        39  0.0  0.0      0     0 ?        s    17:58   0:00 [fsnotify_mark] root        40  0.0  0.0      0     0 ?        s<   17:58   0:00 [nfsiod] root        41  0.0  0.0      0     0 ?        s<   17:58   0:00 [crypto] root        44  0.0  0.0      0     0 ?        s<   17:58   0:00 [pencrypt] root        45  0.0  0.0      0     0 ?        s<   17:58   0:00 [pdecrypt] root        52  0.0  0.0      0     0 ?        s<   17:58   0:00 [omap uart0] root        54  0.0  0.0      0     0 ?        s<   17:58   0:00 [kpsmoused] root        66  0.0  0.0      0     0 ?        s<   17:58   0:00 [deferwq] root        67  0.0  0.0      0     0 ?        s    17:58   0:00 [kworker/u:2] root        68  0.1  0.0      0     0 ?        d    17:58   0:00 [mmcqd/0] root        71  0.0  0.0      0     0 ?        s<   17:58   0:00 [kworker/0:1h] root        72  0.0  0.0      0     0 ?        s    17:58   0:00 [jbd2/mmcblk0p2-] root        73  0.0  0.0      0     0 ?        s<   17:58   0:00 [ext4-dio-unwrit] root        81  0.6  2.0 260668  5212 ?        ss   17:58   0:06 /lib/systemd/systemd-journald root        83  0.0  0.6   3732  1668 ?        ss   17:58   0:00 /lib/systemd/systemd-udevd root        86  0.0  0.0      0     0 ?        s    17:58   0:00 [kworker/0:2] root        93  0.0  0.0      0     0 ?        s<   17:58   0:00 [krfcommd] root       164  0.0  0.4   3008  1196 ?        ss   17:58   0:00 /usr/sbin/crond -n root       166  0.0  0.3   2464   916 ?        ss   17:58   0:00 /usr/sbin/lighttpd -d -f /etc/lighttpd.conf root       167  0.0  0.8   5524  2260 ?        ss   17:58   0:00 /usr/sbin/connmand -n root       169  0.0  0.5   3012  1332 ?        ss   17:58   0:00 /bin/sh /usr/bin/g-ether-load.sh root       173  0.0  0.5   3056  1396 ?        ss   17:58   0:00 /bin/sh /usr/bin/mysqld_safe root       175  0.0  0.4   2976  1156 ?        ss   17:58   0:00 /lib/systemd/systemd-logind 999        185  0.0  0.5   2840  1380 ?        ss   17:58   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation root       191  0.0  0.2   1992   724 tty1     ss+  17:58   0:00 /sbin/agetty --noclear tty1 38400 linux root       234  0.0  0.2   1992   712 ttyo0    ss+  17:58   0:00 /sbin/agetty -s ttyo0 115200 root       335  0.0  0.0      0     0 ?        s    17:58   0:00 [flush-179:0] root       394  0.0  0.0      0     0 ?        s    17:58   0:00 [file-storage] root       407  0.0  0.2   2152   688 ?        s    17:58   0:00 /usr/sbin/udhcpd -f -s /etc/udhcpd.conf mysql      448  0.0  1.6  26604  4064 ?        sl   17:59   0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/mysql --user=mysql --log-error=/var/log/mysqld.err --pid-file=/var/lib/mysql/mysqld.p root       479  0.0  0.4   3564  1216 ?        ss   17:59   0:00 /usr/bin/ntpd -p /run/ntpd.pid root       491  0.1  0.5   3028  1320 ?        ss   18:03   0:00 /usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -p 22 root       492  0.0  0.6   3164  1688 pts/0    ss   18:03   0:00 -sh root       508  0.0  0.0      0     0 ?        s    18:08   0:00 [kworker/0:0] 

also, /etc/xinetd.conf file pretty barren:

# simple configuration file xinetd # # defaults, , include /etc/xinetd.d/  defaults {   }  includedir /etc/xinetd.d 

and /etc/xinetd.d folder empty.

i've tried using netstat, fails provide -p switch on beaglebone reason, don't information process responsible.

the best output can netstat netstat -nl | grep tcp gives:

tcp        0      0 0.0.0.0:22              0.0.0.0:*               listen tcp        0      0 0.0.0.0:8080            0.0.0.0:*               listen tcp        0      0 0.0.0.0:80              0.0.0.0:*               listen tcp        0      0 :::53                   :::*                    listen 

netstat -p says invalid option -- 'p',

i found solution @ last. secret disable socket service.

systemctl disable bonescript.service               systemctl disable bonescript.socket systemctl disable bonescript-autorun.service 

and can use port 80 lighttpd.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -