zoukankan      html  css  js  c++  java
  • yum python mysql

    lrwxrwxrwx  1 root root         25 Jun 25 19:38 pyspark -> /etc/alternatives/pyspark
    lrwxrwxrwx  1 root root         34 Jul 24 20:49 python -> /usr/local/python362/bin/python3.6
    lrwxrwxrwx  1 root root          6 Oct 28  2016 python2 -> python
    -rwxr-xr-x  2 root root       4864 Aug 18  2016 python_2
    -rwxr-xr-x  2 root root       4864 Aug 18  2016 python2.6
    #!/usr/bin/python_2
    import sys
    try:
        import yum
    except ImportError:
        print >> sys.stderr, """
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:
    
       %s
    
    Please install a package which provides this module, or
    verify that the module is installed correctly.
    
    It's possible that the above module doesn't match the
    current version of Python, which is:
    %s
    
    If you cannot solve this problem yourself, please go to 
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq
      
    """ % (sys.exc_value, sys.version)
        sys.exit(1)
    
    sys.path.insert(0, '/usr/share/yum-cli')
    try:
        import yummain
        yummain.user_main(sys.argv[1:], exit_code=True)
    except KeyboardInterrupt, e:
        print >> sys.stderr, "
    
    Exiting on user cancel."
        sys.exit(1)
    ~                                                                                                                        
    ~                                                                                                                        
    ~                                                                                                                        
    ~                                                                                                                        
    ~                                                                                                                        
    ~                                                                                                                        
    ~                                                                                                                        
    "/usr/bin/yum" 32L, 803C     

    en.wikipedia.org/wiki/Yum_(.rpm)

    The Yellowdog Updater, Modified (yum) is an open-source command-line package-management utility for computers running the Linux operating system using the RPM Package Manager.[2] Though yum has a command-line interface, several other tools provide graphical user interfaces to yum functionality.

    Yum allows automatic updates, package and dependency management, on RPM-based distributions.[3] Like the Advanced Package Tool (APT) from Debian, yum works with software repositories (collections of packages), which can be accessed locally[4] or over a network connection.

    Under the hood, yum depends on RPM, which is a packaging standard for digital distribution of software, which automatically uses hashes and digisigs to verify the authorship and integrity of said software; unlike some app stores, which serve a similar function, neither yum nor RPM provide built-in support for proprietary restrictions on copying of packages by endusers. Yum is implemented as libraries in the Python programming language, with a small set of programs that provide a command-line interface.[5] GUI-based wrappers such as Yum Extender (yumex) also exist.[6] A rewrite of yum based on libsolv named DNF is currently being developed and replaced yum as the default package manager in Fedora 22.[7]

    【学习路径】
    https://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html#yum-repo-installing-mysql
    【初始化】
    lsb_release -d
    Description: CentOS Linux release 7.3.1611 (Core)

    yum update

    cd usr
    mkdir mysql
    cd mysql

    #https://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html#yum-repo-installing-mysql
    #https://dev.mysql.com/downloads/repo/yum/
    #mysql57-community-release-el7-11.noarch.rpm

    wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
    md5sum mysql57-community-release-el7-11.noarch.rpm

    【安装】
    sudo yum localinstall mysql57-community-release-el7-11.noarch.rpm


    【版本选5.6】
    cat /etc/yum.repos.d/mysql-community.repo
    For example, to install MySQL 5.6, make sure you have enabled=0 for the above subrepository entry for MySQL 5.7, and have enabled=1 for the entry for the 5.6 series:
    # Enable to use MySQL 5.6
    [mysql56-community]
    name=MySQL 5.6 Community Server
    baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/6/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


    【校验】
    yum repolist enabled | grep "mysql.*-community.*"

    【安装】
    sudo yum install mysql-community-server

    【启动】

    sudo service mysqld start

    【校验】
    sudo service mysqld status

    mysql -uroot -p

  • 相关阅读:
    博客访问人数统计
    2018年总结&2019年计划
    区块链产品介绍
    work table a year
    No Ads for Blogs
    滴滴云来袭
    部分博客图片失效问题
    加一个小学期的作品视频
    【原创】我的KM算法详解
    【转载】C++中替代sprintf的std::ostringstream输出流详解
  • 原文地址:https://www.cnblogs.com/rsapaper/p/7262797.html
Copyright © 2011-2022 走看看