<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    倉藍

    日記本

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      23 Posts :: 0 Stories :: 1 Comments :: 0 Trackbacks
    適合Linux系統使用的命令,本文以亞馬遜的Amazon Linux 為用例,希望對朋友們有點幫助!

    切換至root用戶

        sudo su 

    安裝screen

        yum install screen   
        yum update 

    安裝Apache,MySQL和PHP

        yum install httpd   
        service httpd start 

    打開IP,就可以看到:

    亞馬遜云EC2

    安裝并啟用MySQL

        yum install mysql mysql-server   
        service mysqld start 

    修改Mysql的初始密碼

        mysqladmin -u root -p password 新密碼   
        Enter password: 輸入root的原密碼以確認修改,一般root初始密碼為空,也就不用輸入,直接回車。 

    安裝PHP,重啟Apache

        yum install php   
        service httpd restart 

    安裝其它的MySQL組件,重啟Apache

        yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mcrypt php-mbstring php-bcmath php-mhash libmcrypt libmcrypt-devel   
        service httpd restart 

    設置Apache和MySQL開機啟動

        chkconfig --levels 2345 httpd on   
        chkconfig --levels 2345 mysqld on  

    安裝phpMyadmin

        cd /var/www/html   
        wget http://nchc.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.9/phpMyAdmin-4.0.9-all-languages.tar.gz   
        tar zxvf phpMyAdmin-4.0.9-all-languages.tar.gz   
        mv phpMyAdmin-4.0.9-all-languages phpmyadmin  

    (寫這篇文章的時候,是4.0.9版,請注意用最新版本)

        cd phpmyadmin   
        cp config.sample.inc.php config.inc.php 

    然后重啟httpd

        service httpd restart 

    SSH連不上amazon ec2服務器的問題

    請注意一下兩點:

    1、確保登錄用戶名為 ec2-user(只能是ec2-user,其他所有都不行)。

    2、確保設置key文件的權限為 400。

        chmod 400 *.pem  

    設置Mysql密碼

        yum install mysql mysql-server   
        chkconfig --levels 235 mysqld on   
        /etc/init.d/mysqld start   
        mysql_secure_installation  

    安裝vsftpd

        yum install vsftpd   
        useradd -d /.../.../... -s /sbin/nologin ftpusername   
        passwd ftpusername   
        chmod 777 /.../.../... -R (不改成777的話ftp工具無法上傳,上傳完成后再改回去)   
        service vsftpd start   
        chkconfig vsftpd on   
        vi /etc/vsftpd/vsftpd.conf   
        -->anonymous_enable=NO  
        service vsftpd restart 

    下面是使用Putty的部分截圖:

        login as: ec2-user   
        Authenticating with public key "imported-openssh-key" from agent   
          
               __|  __|_  )   
               _|  (     /   Amazon Linux AMI   
              ___|\___|___|   
          
        https://aws.amazon.com/amazon-linux-ami/2013.09-release-notes/   
        No packages needed for security; 7 packages available   
        Run "sudo yum update" to apply all updates.   
        [ec2-user@ip-172-31-11-222 ~]$ sudo su   
        [root@ip-172-31-11-222 ec2-user]# yum install screen   
        Loaded plugins: priorities, update-motd, upgrade-helper   
        amzn-main/latest                                         | 2.1 kB     00:00   
        amzn-updates/latest                                      | 2.3 kB     00:00   
        Package screen-4.0.3-16.5.amzn1.x86_64 already installed and latest version   
        Nothing to do   
        [root@ip-172-31-11-222 ec2-user]# yum update   
        Loaded plugins: priorities, update-motd, upgrade-helper   
        Resolving Dependencies   
        --> Running transaction check   
        ---> Package aws-apitools-ec2.noarch 0:1.6.11.0-1.0.amzn1 will be updated   
        ---> Package aws-apitools-ec2.noarch 0:1.6.12.0-1.0.amzn1 will be an update   
        ---> Package aws-apitools-elb.noarch 0:1.0.17.0-1.4.amzn1 will be updated   
        ---> Package aws-apitools-elb.noarch 0:1.0.23.0-1.0.amzn1 will be an update   
        ---> Package aws-cli.noarch 0:1.2.3-1.0.amzn1 will be updated   
        ---> Package aws-cli.noarch 0:1.2.5-1.1.amzn1 will be an update   
        ---> Package libjpeg-turbo.x86_64 0:1.2.1-1.2.amzn1 will be updated   
        ---> Package libjpeg-turbo.x86_64 0:1.2.1-3.3.amzn1 will be an update   
        ---> Package python-backports-ssl_match_hostname.noarch 0:3.2-0.5.a3.4.amzn1 wil                                                                             l be updated   
        ---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-1.5.amzn1 will                                                                              be an update   
        ---> Package python-boto.noarch 0:2.15.0-1.0.amzn1 will be updated   
        ---> Package python-boto.noarch 0:2.17.0-1.0.amzn1 will be an update   
        --> Processing Dependency: python-paramiko >= 1.7.5 for package: python-boto-2.1                                                                             7.0-1.0.amzn1.noarch   
        ---> Package python-botocore.noarch 0:0.23.0-1.0.amzn1 will be updated   
        ---> Package python-botocore.noarch 0:0.25.0-1.0.amzn1 will be an update   
        --> Running transaction check   
        ---> Package python-paramiko.noarch 0:1.7.5-2.1.4.amzn1 will be installed   
        --> Processing Dependency: python-crypto >= 1.9 for package: python-paramiko-1.7                                                                             .5-2.1.4.amzn1.noarch   
        --> Running transaction check   
        ---> Package python-crypto.x86_64 0:2.6.1-1.7.amzn1 will be installed   
        --> Finished Dependency Resolution   
          
        Dependencies Resolved  
          
        ================================================================================   
         Package                           Arch   Version            Repository    Size  
        ================================================================================   
        Updating:   
         aws-apitools-ec2                  noarch 1.6.12.0-1.0.amzn1 amzn-updates  14 M   
         aws-apitools-elb                  noarch 1.0.23.0-1.0.amzn1 amzn-updates 6.8 M   
         aws-cli                           noarch 1.2.5-1.1.amzn1    amzn-updates 277 k   
         libjpeg-turbo                     x86_64 1.2.1-3.3.amzn1    amzn-updates 129 k   
         python-backports-ssl_match_hostname   
                                           noarch 3.4.0.2-1.5.amzn1  amzn-updates  11 k   
         python-boto                       noarch 2.17.0-1.0.amzn1   amzn-updates 1.7 M   
         python-botocore                   noarch 0.25.0-1.0.amzn1   amzn-updates 1.7 M   
        Installing for dependencies:   
         python-crypto                     x86_64 2.6.1-1.7.amzn1    amzn-updates 683 k   
         python-paramiko                   noarch 1.7.5-2.1.4.amzn1  amzn-main    970 k   
          
        Transaction Summary  
        ================================================================================   
        Install             ( 2 Dependent packages)   
        Upgrade  7 Packages   
          
        Total download size: 26 M   
        Is this ok [y/d/N]: y   
        Downloading packages:   
        (1/9): aws-apitools-ec2-1.6.12.0-1.0.amzn1.noarch.rpm    |  14 MB     00:00   
        (2/9): aws-apitools-elb-1.0.23.0-1.0.amzn1.noarch.rpm    | 6.8 MB     00:00   
        (3/9): aws-cli-1.2.5-1.1.amzn1.noarch.rpm                | 277 kB     00:00   
        (4/9): libjpeg-turbo-1.2.1-3.3.amzn1.x86_64.rpm          | 129 kB     00:00   
        (5/9): python-backports-ssl_match_hostname-3.4.0.2-1.5.a |  11 kB     00:00   
        (6/9): python-boto-2.17.0-1.0.amzn1.noarch.rpm           | 1.7 MB     00:00   
        (7/9): python-botocore-0.25.0-1.0.amzn1.noarch.rpm       | 1.7 MB     00:00   
        (8/9): python-crypto-2.6.1-1.7.amzn1.x86_64.rpm          | 683 kB     00:00   
        (9/9): python-paramiko-1.7.5-2.1.4.amzn1.noarch.rpm      | 970 kB     00:00   
        --------------------------------------------------------------------------------   
        Total                                            13 MB/s |  26 MB     00:01   
        Running transaction check   
        Running transaction test   
        Transaction test succeeded   
        Running transaction   
          Updating   : python-botocore-0.25.0-1.0.amzn1.noarch                     1/16   
          Installing : python-crypto-2.6.1-1.7.amzn1.x86_64                        2/16   
          Installing : python-paramiko-1.7.5-2.1.4.amzn1.noarch                    3/16   
          Updating   : python-boto-2.17.0-1.0.amzn1.noarch                         4/16   
          Updating   : aws-cli-1.2.5-1.1.amzn1.noarch                              5/16   
          Updating   : libjpeg-turbo-1.2.1-3.3.amzn1.x86_64                        6/16   
          Updating   : python-backports-ssl_match_hostname-3.4.0.2-1.5.amzn1.no    7/16   
          Updating   : aws-apitools-elb-1.0.23.0-1.0.amzn1.noarch                  8/16   
          Updating   : aws-apitools-ec2-1.6.12.0-1.0.amzn1.noarch                  9/16   
          Cleanup    : aws-cli-1.2.3-1.0.amzn1.noarch                             10/16   
          Cleanup    : python-botocore-0.23.0-1.0.amzn1.noarch                    11/16   
          Cleanup    : python-backports-ssl_match_hostname-3.2-0.5.a3.4.amzn1.n   12/16   
          Cleanup    : python-boto-2.15.0-1.0.amzn1.noarch                        13/16   
          Cleanup    : aws-apitools-elb-1.0.17.0-1.4.amzn1.noarch                 14/16   
          Cleanup    : aws-apitools-ec2-1.6.11.0-1.0.amzn1.noarch                 15/16   
          Cleanup    : libjpeg-turbo-1.2.1-1.2.amzn1.x86_64                       16/16   
          Verifying  : python-crypto-2.6.1-1.7.amzn1.x86_64                        1/16   
          Verifying  : aws-apitools-ec2-1.6.12.0-1.0.amzn1.noarch                  2/16   
          Verifying  : aws-apitools-elb-1.0.23.0-1.0.amzn1.noarch                  3/16   
          Verifying  : python-boto-2.17.0-1.0.amzn1.noarch                         4/16   
          Verifying  : aws-cli-1.2.5-1.1.amzn1.noarch                              5/16   
          Verifying  : python-paramiko-1.7.5-2.1.4.amzn1.noarch                    6/16   
          Verifying  : python-backports-ssl_match_hostname-3.4.0.2-1.5.amzn1.no    7/16   
          Verifying  : python-botocore-0.25.0-1.0.amzn1.noarch                     8/16   
          Verifying  : libjpeg-turbo-1.2.1-3.3.amzn1.x86_64                        9/16   
          Verifying  : python-boto-2.15.0-1.0.amzn1.noarch                        10/16   
          Verifying  : python-backports-ssl_match_hostname-3.2-0.5.a3.4.amzn1.n   11/16   
          Verifying  : aws-apitools-elb-1.0.17.0-1.4.amzn1.noarch                 12/16   
          Verifying  : python-botocore-0.23.0-1.0.amzn1.noarch                    13/16   
          Verifying  : aws-apitools-ec2-1.6.11.0-1.0.amzn1.noarch                 14/16   
          Verifying  : aws-cli-1.2.3-1.0.amzn1.noarch                             15/16   
          Verifying  : libjpeg-turbo-1.2.1-1.2.amzn1.x86_64                       16/16   
          
        Dependency Installed:   
          python-crypto.x86_64 0:2.6.1-1.7.amzn1   
          python-paramiko.noarch 0:1.7.5-2.1.4.amzn1   
          
        Updated:   
          aws-apitools-ec2.noarch 0:1.6.12.0-1.0.amzn1   
          aws-apitools-elb.noarch 0:1.0.23.0-1.0.amzn1   
          aws-cli.noarch 0:1.2.5-1.1.amzn1   
          libjpeg-turbo.x86_64 0:1.2.1-3.3.amzn1   
          python-backports-ssl_match_hostname.noarch 0:3.4.0.2-1.5.amzn1   
          python-boto.noarch 0:2.17.0-1.0.amzn1   
          python-botocore.noarch 0:0.25.0-1.0.amzn1   
          
        Complete!   
        [root@ip-172-31-11-222 ec2-user]# yum install httpd   
        Loaded plugins: priorities, update-motd, upgrade-helper   
        Resolving Dependencies   
        --> Running transaction check   
        ---> Package httpd.x86_64 0:2.2.25-1.0.amzn1 will be installed   
        --> Processing Dependency: httpd-tools = 2.2.25-1.0.amzn1 for package: httpd-2.2                                                                             .25-1.0.amzn1.x86_64   
        --> Processing Dependency: system-logos for package: httpd-2.2.25-1.0.amzn1.x86_                                                                             64   
        --> Processing Dependency: apr-util-ldap for package: httpd-2.2.25-1.0.amzn1.x86                                                                             _64   
        --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.25-                                                                             1.0.amzn1.x86_64   
        --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.25-1.0.                                                                             amzn1.x86_64   
        --> Running transaction check   
        ---> Package apr.x86_64 0:1.4.6-1.10.amzn1 will be installed   
        ---> Package apr-util.x86_64 0:1.4.1-4.14.amzn1 will be installed   
        ---> Package apr-util-ldap.x86_64 0:1.4.1-4.14.amzn1 will be installed   
        ---> Package generic-logos.noarch 0:17.0.0-2.5.amzn1 will be installed   
        ---> Package httpd-tools.x86_64 0:2.2.25-1.0.amzn1 will be installed   
        --> Finished Dependency Resolution   
          
        Dependencies Resolved  
          
        ================================================================================   
         Package             Arch         Version                 Repository       Size  
        ================================================================================   
        Installing:   
         httpd               x86_64       2.2.25-1.0.amzn1        amzn-main       1.2 M   
        Installing for dependencies:   
         apr                 x86_64       1.4.6-1.10.amzn1        amzn-main       110 k   
         apr-util            x86_64       1.4.1-4.14.amzn1        amzn-main        87 k   
         apr-util-ldap       x86_64       1.4.1-4.14.amzn1        amzn-main        17 k   
         generic-logos       noarch       17.0.0-2.5.amzn1        amzn-main       589 k   
         httpd-tools         x86_64       2.2.25-1.0.amzn1        amzn-main        80 k   
          
        Transaction Summary  
        ================================================================================   
        Install  1 Package (+5 Dependent packages)   
          
        Total download size: 2.1 M   
        Installed size: 4.2 M   
        Is this ok [y/d/N]: y   
        Downloading packages:   
        (1/6): apr-1.4.6-1.10.amzn1.x86_64.rpm                   | 110 kB     00:00   
        (2/6): apr-util-1.4.1-4.14.amzn1.x86_64.rpm              |  87 kB     00:00   
        (3/6): apr-util-ldap-1.4.1-4.14.amzn1.x86_64.rpm         |  17 kB     00:00   
        (4/6): generic-logos-17.0.0-2.5.amzn1.noarch.rpm         | 589 kB     00:00   
        (5/6): httpd-2.2.25-1.0.amzn1.x86_64.rpm                 | 1.2 MB     00:00   
        (6/6): httpd-tools-2.2.25-1.0.amzn1.x86_64.rpm           |  80 kB     00:00   
        --------------------------------------------------------------------------------   
        Total                                           3.7 MB/s | 2.1 MB     00:00   
        Running transaction check   
        Running transaction test   
        Transaction test succeeded   
        Running transaction   
          Installing : apr-1.4.6-1.10.amzn1.x86_64                                  1/6   
          Installing : apr-util-1.4.1-4.14.amzn1.x86_64                             2/6   
          Installing : apr-util-ldap-1.4.1-4.14.amzn1.x86_64                        3/6   
          Installing : httpd-tools-2.2.25-1.0.amzn1.x86_64                          4/6   
          Installing : generic-logos-17.0.0-2.5.amzn1.noarch                        5/6   
          Installing : httpd-2.2.25-1.0.amzn1.x86_64                                6/6   
          Verifying  : apr-util-ldap-1.4.1-4.14.amzn1.x86_64                        1/6   
          Verifying  : apr-1.4.6-1.10.amzn1.x86_64                                  2/6   
          Verifying  : apr-util-1.4.1-4.14.amzn1.x86_64                             3/6   
          Verifying  : httpd-2.2.25-1.0.amzn1.x86_64                                4/6   
          Verifying  : generic-logos-17.0.0-2.5.amzn1.noarch                        5/6   
          Verifying  : httpd-tools-2.2.25-1.0.amzn1.x86_64                          6/6   
          
        Installed:   
          httpd.x86_64 0:2.2.25-1.0.amzn1   
          
        Dependency Installed:   
          apr.x86_64 0:1.4.6-1.10.amzn1   
          apr-util.x86_64 0:1.4.1-4.14.amzn1   
          apr-util-ldap.x86_64 0:1.4.1-4.14.amzn1   
          generic-logos.noarch 0:17.0.0-2.5.amzn1   
          httpd-tools.x86_64 0:2.2.25-1.0.amzn1   
          
        Complete!   
        [root@ip-172-31-11-222 ec2-user]# service httpd start   
        Starting httpd:                                            [  OK  ]   
        [root@ip-172-31-11-222 ec2-user]# yum install mysql mysql-server   
        Loaded plugins: priorities, update-motd, upgrade-helper   
        Resolving Dependencies   
        --> Running transaction check   
        ---> Package mysql.noarch 0:5.5-1.3.amzn1 will be installed   
        --> Processing Dependency: mysql55 >= 5.5 for package: mysql-5.5-1.3.amzn1.noarch   
        ---> Package mysql-server.noarch 0:5.5-1.3.amzn1 will be installed   
        --> Processing Dependency: mysql55-server >= 5.5 for package: mysql-server-5.5-1.3.amzn1.noarch   
        --> Running transaction check   
        ---> Package mysql55.x86_64 0:5.5.34-1.40.amzn1 will be installed   
        --> Processing Dependency: real-mysql55-libs(x86-64) = 5.5.34-1.40.amzn1 for package: mysql55-5.5.34-1.40.amzn1.x86_64   
        --> Processing Dependency: real-mysql55-common(x86-64) = 5.5.34-1.40.amzn1 for package: mysql55-5.5.34-1.40.amzn1.x86_64   
        ---> Package mysql55-server.x86_64 0:5.5.34-1.40.amzn1 will be installed   
        --> Processing Dependency: perl-DBI for package: mysql55-server-5.5.34-1.40.amzn1.x86_64   
        --> Processing Dependency: perl-DBD-MySQL for package: mysql55-server-5.5.34-1.40.amzn1.x86_64   
        --> Processing Dependency: perl(DBI) for package: mysql55-server-5.5.34-1.40.amzn1.x86_64   
        --> Running transaction check   
        ---> Package mysql55-common.x86_64 0:5.5.34-1.40.amzn1 will be installed   
        ---> Package mysql55-libs.x86_64 0:5.5.34-1.40.amzn1 will be installed   
        ---> Package perl-DBD-MySQL.x86_64 0:4.020-2.8.amzn1 will be installed   
        ---> Package perl-DBI.x86_64 0:1.609-4.4.amzn1 will be installed   
        --> Finished Dependency Resolution   
          
        Dependencies Resolved  
          
        =============================================================================================================================================================   
         Package                                Arch                           Version                                     Repository                            Size  
        =============================================================================================================================================================   
        Installing:   
         mysql                                  noarch                         5.5-1.3.amzn1                               amzn-main                            2.6 k   
         mysql-server                           noarch                         5.5-1.3.amzn1                               amzn-main                            2.6 k   
        Installing for dependencies:   
         mysql55                                x86_64                         5.5.34-1.40.amzn1                           amzn-updates                         7.5 M   
         mysql55-common                         x86_64                         5.5.34-1.40.amzn1                           amzn-updates                          48 k   
         mysql55-libs                           x86_64                         5.5.34-1.40.amzn1                           amzn-updates                         802 k   
         mysql55-server                         x86_64                         5.5.34-1.40.amzn1                           amzn-updates                          13 M   
         perl-DBD-MySQL                         x86_64                         4.020-2.8.amzn1                             amzn-main                            161 k   
         perl-DBI                               x86_64                         1.609-4.4.amzn1                             amzn-main                            745 k   
          
        Transaction Summary  
        =============================================================================================================================================================   
        Install  2 Packages (+6 Dependent packages)   
          
        Total download size: 22 M   
        Installed size: 79 M   
        Is this ok [y/d/N]: y   
        Downloading packages:   
        (1/8): mysql-5.5-1.3.amzn1.noarch.rpm                                                                                                  | 2.6 kB     00:00   
        (2/8): mysql-server-5.5-1.3.amzn1.noarch.rpm                                                                                           | 2.6 kB     00:00   
        (3/8): mysql55-5.5.34-1.40.amzn1.x86_64.rpm                                                                                            | 7.5 MB     00:00   
        (4/8): mysql55-common-5.5.34-1.40.amzn1.x86_64.rpm                                                                                     |  48 kB     00:00   
        (5/8): mysql55-libs-5.5.34-1.40.amzn1.x86_64.rpm                                                                                       | 802 kB     00:00   
        (6/8): mysql55-server-5.5.34-1.40.amzn1.x86_64.rpm                                                                                     |  13 MB     00:00   
        (7/8): perl-DBD-MySQL-4.020-2.8.amzn1.x86_64.rpm                                                                                       | 161 kB     00:00   
        (8/8): perl-DBI-1.609-4.4.amzn1.x86_64.rpm                                                                                             | 745 kB     00:00   
        -------------------------------------------------------------------------------------------------------------------------------------------------------------   
        Total                                                                                                                          17 MB/s |  22 MB     00:01   
        Running transaction check   
        Running transaction test   
        Transaction test succeeded   
        Running transaction   
          Installing : mysql55-libs-5.5.34-1.40.amzn1.x86_64                                                                                                      1/8   
          Installing : mysql55-common-5.5.34-1.40.amzn1.x86_64                                                                                                    2/8   
          Installing : mysql55-5.5.34-1.40.amzn1.x86_64                                                                                                           3/8   
          Installing : perl-DBI-1.609-4.4.amzn1.x86_64                                                                                                            4/8   
          Installing : perl-DBD-MySQL-4.020-2.8.amzn1.x86_64                                                                                                      5/8   
          Installing : mysql55-server-5.5.34-1.40.amzn1.x86_64                                                                                                    6/8   
          Installing : mysql-server-5.5-1.3.amzn1.noarch                                                                                                          7/8   
          Installing : mysql-5.5-1.3.amzn1.noarch                                                                                                                 8/8   
          Verifying  : perl-DBD-MySQL-4.020-2.8.amzn1.x86_64                                                                                                      1/8   
          Verifying  : perl-DBI-1.609-4.4.amzn1.x86_64                                                                                                            2/8   
          Verifying  : mysql55-common-5.5.34-1.40.amzn1.x86_64                                                                                                    3/8   
          Verifying  : mysql-server-5.5-1.3.amzn1.noarch                                                                                                          4/8   
          Verifying  : mysql55-libs-5.5.34-1.40.amzn1.x86_64                                                                                                      5/8   
          Verifying  : mysql-5.5-1.3.amzn1.noarch                                                                                                                 6/8   
          Verifying  : mysql55-5.5.34-1.40.amzn1.x86_64                                                                                                           7/8   
          Verifying  : mysql55-server-5.5.34-1.40.amzn1.x86_64                                                                                                    8/8   
          
        Installed:   
          mysql.noarch 0:5.5-1.3.amzn1                                               mysql-server.noarch 0:5.5-1.3.amzn1   
          
        Dependency Installed:   
          mysql55.x86_64 0:5.5.34-1.40.amzn1                   mysql55-common.x86_64 0:5.5.34-1.40.amzn1            mysql55-libs.x86_64 0:5.5.34-1.40.amzn1   
          mysql55-server.x86_64 0:5.5.34-1.40.amzn1            perl-DBD-MySQL.x86_64 0:4.020-2.8.amzn1              perl-DBI.x86_64 0:1.609-4.4.amzn1   
          
        Complete!   
        [root@ip-172-31-11-222 ec2-user]# service mysqld start   
        Initializing MySQL database:  Installing MySQL system tables...   
        OK   
        Filling help tables...   
        OK   
          
        To start mysqld at boot time you have to copy   
        support-files/mysql.server to the right place for your system   
          
        PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !   
        To do so, start the server, then issue the following commands:   
          
        /usr/bin/mysqladmin -u root password 'new-password'   
        /usr/bin/mysqladmin -u root -h ip-172-31-11-222 password 'new-password'   
          
        Alternatively you can run:   
        /usr/bin/mysql_secure_installation   
          
        which will also give you the option of removing the test   
        databases and anonymous user created by default.  This is   
        strongly recommended for production servers.   
          
        See the manual for more instructions.   
          
        You can start the MySQL daemon with:   
        cd /usr ; /usr/bin/mysqld_safe &   
          
        You can test the MySQL daemon with mysql-test-run.pl   
        cd /usr/mysql-test ; perl mysql-test-run.pl   
          
        Please report any problems with the /usr/bin/mysqlbug script!   
          
                                                                   [  OK  ]   
        Starting mysqld:                                           [  OK  ]   
        [root@ip-172-31-11-222 ec2-user]# ^C   
        [root@ip-172-31-11-222 ec2-user]#   
    posted on 2014-01-10 10:45 cangshi 閱讀(1760) 評論(0)  編輯  收藏 所屬分類: linux

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲片一区二区三区| 亚洲黄片手机免费观看| 免费中文字幕视频| 日韩中文字幕精品免费一区| 亚洲中文字幕日产乱码高清app | 免费乱码中文字幕网站| 精品亚洲A∨无码一区二区三区| 国产亚洲美女精品久久| 在线精品免费视频| 18gay台湾男同亚洲男同| 午夜理伦剧场免费| 亚洲国产另类久久久精品黑人| 成年大片免费视频播放一级| 亚洲高清无码综合性爱视频| 免费国产草莓视频在线观看黄| 久久久久亚洲精品成人网小说| 两性色午夜免费视频| 久久乐国产精品亚洲综合| 国产免费一级高清淫曰本片| 亚洲熟伦熟女新五十路熟妇| 久久久久国色AV免费观看| 亚洲最大的黄色网| 国产在线观看片a免费观看| 美女无遮挡拍拍拍免费视频| 国产成人精品日本亚洲专一区| 久久久青草青青国产亚洲免观 | 少妇太爽了在线观看免费视频 | 视频免费在线观看| 图图资源网亚洲综合网站| 国产男女性潮高清免费网站| 美女视频黄频a免费大全视频| 国产亚洲美女精品久久久| 最近免费中文字幕视频高清在线看 | 亚洲一级特黄大片无码毛片| 青苹果乐园免费高清在线| 成a人片亚洲日本久久| 亚洲综合色视频在线观看| 成人毛片18女人毛片免费| 亚洲视频免费播放| 亚洲国产成人久久精品软件| 亚洲日本中文字幕天堂网|