0

错误:

[mini_httpd-2] 进程已死亡 [pid 6395,退出代码 127,cmd /home/santiago/catkin_ws/src/map_nav_manager/scripts/mini-httpd.sh __name:=mini_httpd __log:=/home/santiago/.ros/日志/53d109f0-aaae-11ea-83ba-7085c2b46229/mini_httpd-2.log]。日志文件:/home/santiago/.ros/log/53d109f0-aaae-11ea-83ba-7085c2b46229/mini_httpd-2*.log

mini-httpd.sh 中的代码:

#!/bin/sh 

# Run the mini-httpd webserver on the port defined in the
# mini-httpd.conf file and set the document directory to the current
# directory

PID=`pidof mini-httpd`

if [ ! -z $PID ]; then
    kill $PID
fi

sleep 1

echo "Launching mini-httpd..."

/usr/sbin/mini-httpd -C `rospack find map_nav_manager`/scripts/mini-httpd.conf -d `rospack find map_nav_manager`

mini-httpd.conf 中的代码:

# Example config for mini_httpd.
# Author: Marvin Stark <marv@der-marv.de>

# Uncomment this line for turning on ssl support.
#ssl

# On which host mini_httpd should bind?
host=*

# On which port mini_httpd should listen?
port=8181

# Which user mini_httpd should use?
user=nobody

# Run in chroot mode?
#chroot # yes
nochroot # no

# Working directory of mini_httpd.
#dir=<work_dir>

# We are the web files stored?
# Please change this to your needs.
data_dir=./web/

# CGI path
cgipat=cgi-bin/*

# Which certificate to use?
#certfile=<certfile>

# Which logfile to use?
#logfile=

# Which pidfile to use?
#pidfile=/dev/null

# Which charset to use?
charset=iso-8859-1"

有谁知道错误可能是什么?

4

1 回答 1

-2

日志说什么?

也许用户nobody没有读取或访问/home/santiago/catkin_ws/src/map_nav_manager/./web/的权限。

于 2020-12-24T18:11:59.070 回答