• 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
    

      





  • 相关阅读:
    Git -- 分支管理简介
    Git -- 从远程库克隆
    Git -- 添加远程仓库
    C# sha256 加密算法
    如何将IOS版本的更新下载文件指向到自己的服务器
    如何让windows服务器IIS支持.apk/.ipa文件下载
    vistual studio 去除 git 源代码 绑定
    Redis 环境搭建与使用(C#)
    c#图片添加水印
    C#使用WSDL服务总结
  • 原文地址:https://www.cnblogs.com/dubaokun/p/3436539.html
Copyright © 2020-2023  润新知