Return to the real world(2)

ubuntu的一些apt命令:

更新ubuntu:

  • sudo apt-get update:刷新sources.list列表,但是并不会升级任何内容
  • sudo apt-get upgrade:升级系统
  • sudo apt-get dist-upgrade:升级系统,包括内核等

修改源:(不明白含义。。没有修改也没有出什么问题)

  • sudo cp /ect/apt/sources.list /etc/apt/sources.list-gutsy
  • 将gutsy改为hardy?

GCC环境:

  • 安装C环境:sudo apt-get install build-essential
  • 安装GCC编译环境:sudo apt-get install gcc libc6-dev(包含c的lib包)
  • vim:sudo apt-get install vim-full

apache:

  • 安装:sudo apt-get install apache2
  • 修改:
    旧系统:/etc/apache2/apache2.conf
    新系统:/etc/apache2/conf.d/charset
    将AddDefaultCharset ISO-8859-1修改为:
    AddDefaultCharset GB2312或AddDefaultCharset UTF-8
  • 重启:sudo /etc/init.d/apache2 restart

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Hello world

Hi,我是Tang Bin,finalbug.org是我的个人站点。这里有更多关于我的内容。English readers please click here to learn more about me and this site.

Categories