在Ubuntu一键安装好,无法打开网页
发表于 : 周五 4月 17, 2020 21:43
新手刚学习,觉得编译安装可能失败率大怕依赖环境没有弄好。所以用sudo curl -L install.domoticz.cn | bash一键安装,一开始用Ubuntu因为官方教程是Ubuntu,安装好无法打开网页,打开domoticz.sh看到用户名是pi,难道不成功是因为要修改配置,那就用树莓派吧,结果还是打不开网页。系统是Ubuntu官网下载的ubuntu-19.10-live-server版本,根据教程升级系统:
sudo apt-get update
sudo apt-get upgrade
也安装了开发工具和依赖库:
sudo apt-get install build-essential nano cmake git libboost-dev libboost-thread-dev libboost-system-dev
sudo apt-get install libsqlite3-dev curl libcurl4-openssl-dev libssl-dev libusb-dev zlib1g-dev python3-dev
问题检查:
尝试编辑了DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
启用Domoticz日志记录,但在/tmp/文件夹里面没有看到domoticz.txt,然后机器重启过也没有出现domoticz.txt,不知道哪里错了?
查了domoticz.service状态
~$ systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Fri 2020-04-17 01:05:40 UTC; 12h ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 1077)
Memory: 0B
CGroup: /system.slice/domoticz.service
Apr 17 01:05:36 sx-pc systemd[1]: Starting LSB: Home Automation System...
Apr 17 01:05:40 sx-pc domoticz.sh[775]: /home/sx/domoticz/domoticz: error while
Apr 17 01:05:40 sx-pc systemd[1]: Started LSB: Home Automation System.
lines 1-11/11 (END)...skipping...
telnet 8080端口不通。用service --status-all ,查了有+ domoticz.sh。
:~$ ps -ef | grep domoticz
sx 2983 2702 0 13:43 pts/0 00:00:00 grep --color=auto domoticz
也不知道哪里有问题,还请大神指导下,是哪里错了?还是可以用什么办法检查下错哪里了?因为是新手所以能想到和做的就这些了。
sudo apt-get update
sudo apt-get upgrade
也安装了开发工具和依赖库:
sudo apt-get install build-essential nano cmake git libboost-dev libboost-thread-dev libboost-system-dev
sudo apt-get install libsqlite3-dev curl libcurl4-openssl-dev libssl-dev libusb-dev zlib1g-dev python3-dev
问题检查:
尝试编辑了DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
启用Domoticz日志记录,但在/tmp/文件夹里面没有看到domoticz.txt,然后机器重启过也没有出现domoticz.txt,不知道哪里错了?
查了domoticz.service状态
~$ systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Fri 2020-04-17 01:05:40 UTC; 12h ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 1077)
Memory: 0B
CGroup: /system.slice/domoticz.service
Apr 17 01:05:36 sx-pc systemd[1]: Starting LSB: Home Automation System...
Apr 17 01:05:40 sx-pc domoticz.sh[775]: /home/sx/domoticz/domoticz: error while
Apr 17 01:05:40 sx-pc systemd[1]: Started LSB: Home Automation System.
lines 1-11/11 (END)...skipping...
telnet 8080端口不通。用service --status-all ,查了有+ domoticz.sh。
:~$ ps -ef | grep domoticz
sx 2983 2702 0 13:43 pts/0 00:00:00 grep --color=auto domoticz
也不知道哪里有问题,还请大神指导下,是哪里错了?还是可以用什么办法检查下错哪里了?因为是新手所以能想到和做的就这些了。