centos 学习总结

 

 

我用的是6.4

添加中文输入法

1.su root

2.yum install "@Chinese Support"

3.exit

4.回到桌面,system->preferences->input method

5.如果没有,先注销一下。

6.按照提示添加输入法。

7.最后 再次注销,登录即可。

 

 

安装 chrome

之前Google就说了,由于CentOS/RHEL 6已经是过期的系统,所以不再会有Chrome了。虽然后来由于引起了社区的抗议,从而改口,不再提CentOS/RHEL 6是过期系统了;但是,目前在CentOS/RHEL 6上已经没有Chrome可以下载使用了。
那么,如果希望在CentOS/RHEL 7出来之前继续使用Chrome怎么办?使用Chrome的开源版本:Chromium。
1、切换到root:
su - 或者 sudo -i
2、下载新的软件源定义:
cd /etc/yum.repos.d
wget http://people.centos.org/hughesjr/chromium/6/chromium-el6.repo
3、安装Chromium:
yum install chromium
这样就安装完成了。

或者用下面的方法安装chrome

使用yum 安装说在centos 6.x上不再支持,于是google道如下方法

# wget http://chrome.richardlloyd.org.uk/install_chrome.sh
# chmod u+x install_chrome.sh
# ./install_chrome.sh

参考 http://www.tecmint.com/install-google-chrome-on-redhat-centos-fedora-linux/

 

G++ 安装

yum install gcc-c++

 


防火墙的关闭和启用

1) 临时生效,重启后复原
开启: service iptables start
关闭: service iptables stop

2) 永久性生效,重启后不会复原
开启: chkconfig iptables on
关闭: chkconfig iptables off

安装django (centos 6.4)

yum install python-setuptools
easy_install django

 软件包安装命令

  http://blog.csdn.net/yinjiabin/article/details/7654852

 

编译安装git

第一步下载源码 https://github.com/git/git  如果本机已经以有了旧版本的git 直接 git clone https://github.com/git/git

若是条件允许,从源代码安装有很多好处,至少可以安装最新的版本。Git 的每个版本都在不断尝试改进用户体验,所以能通过源代码自己编译安装最新版本就再好不过了。有些 Linux 版本自带的安装包更新起来并不及时,所以除非你在用最新的 distro 或者 backports,那么从源代码安装其实该算是最佳选择。

Git 的工作需要调用 curl,zlib,openssl,expat,libiconv 等库的代码,所以需要先安装这些依赖工具。在有 yum 的系统上(比如 Fedora)或者有 apt-get 的系统上(比如 Debian 体系),可以用下面的命令安装:

yum install curl-devel expat-devel gettext-devel \
  openssl-devel zlib-devel

 

$ tar -zxf git-1.7.2.2.tar.gz
$ cd git-1.7.2.2
$ make prefix=/usr/local all
$ sudo make prefix=/usr/local install

  

 

 





posted on 2013-11-21 22:40  dubaokun  阅读(373)  评论(0编辑  收藏  举报

导航

新浪微博 新博客 Github