微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

linux下常见错误记录

1.linux 安装 Redis 进到 utils 目录下执行 ./install_server.sh 时提示报错:

This systems seems to use systemd.
Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!

解决方案:

  a) vi ./install_server.sh

  b) 注释如下代码

#bail if this system is managed by systemd
#_pid_1_exe="$(readlink -f /proc/1/exe)"
#if [ "${_pid_1_exe##*/}" = systemd ]
#then
#       echo "This systems seems to use systemd."
#       echo "Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!"
#       exit 1
#fi

  c) 再次执行./install_server.sh

2. CentOS7:ifconfig command not found解决

解决方案:

  yum install net-tools -y

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐