注意:rc.local脚本里面启动的用户默认为root权限. 一.rc.local脚本 rc.local脚本是一个Ubuntu开机后会自动执行的脚本,我们可以在该脚本内添加命令行指令.该脚本位于/etc/路径下,需要root权限才能修改. 该脚本具体格式如下: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the scrip
在Ubuntu下运行 apt-get update命令后出现错误: The package lists or status file could not be parsed or opened sudo rm /var/lib/apt/lists/* -vf 然后: sudo apt-get update #(更新软件源)执行安装操作 sudo apt-get upgrade#(继续更新软件源)执行安装操作,应该能成功
继上一篇文章http://www.cnblogs.com/EasonJim/p/7163069.html深入研究了Linux的运行级别之后,发现网上大部分都说Ubuntu的运行级别默认为2,那么下面就深入分析以下为什么是2而不是其它. 分析过程: 首先从http://forum.ubuntu.org.cn/viewtopic.php?f=97&t=221304这篇文章了解到Debian系的运行级别2~5都是一样的.并通过 cd /etc/init less rc-sysinit.conf 发现里