시작시 rdbberrypi (rc.local)에서 NodeJs를 사용하고 있습니다. NodeJ가 시작될 때 내 ftp 클라이언트가 데이터를 다운로드 할 수없는 문제가 있습니다. 하지만 내가 직접 명령 줄을 실행하면 FTP 클라이언트를 통해 파일을 다운로드 할 수 있으며 훌륭하게 작동합니다.시작시 raspberry pi에서 nodejs를 사용하는 동안 콘솔을 보는 방법
시작시 nodejs를 사용하는 동안 콘솔 로그를 볼 수있는 방법이 없습니다.
내 프로젝트가 이미 지연되었습니다. 도와주세요.
미리 감사드립니다.
rc.local에
`#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#sudo neo4j start &
#sudo su pi -c 'sudo neo4j start < /dev/null &'
#sudo su pi -c 'sudo /etc/init.d/mysql start < /dev/null &'
sudo su pi -c 'node /home/pi/Desktop/RaspberyryPiLearning/bin/www <
/home/pi/Desktop/error.log &'
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
exit 0
도움이 필요하십니까? –
rc.local의 내용을 게시 할 수 있습니까? – LMokrane
rc.local을 추가하여 지연에 대해 사과드립니다. –