zoukankan      html  css  js  c++  java
  • CentOS下安装使用phpMyAdmin. Set up phpMyAdmin on CentOS

    须要组件:
    Apache
    PHP
    Mysql
    phpMyAdmin
    
    Apache
    0. yum install httpd
    1. 确认版本号
    $ httpd -v
    2. 启动apache
    $ sudo service httpd start (http://xxx.xxx.xxx.xxx shows apache info)
    3.设定自己主动启动(optional)
    $ sudo chkconfig httpd on
    $ sudo chkconfig --list
    httpd  0:off    1:off    2:on     3:on     4:on     5:on     6:off
    
    PHP
    0. yum install php php-devel php-mbstring php-mysql php-gd
    1. 确认版本号
    $ php -v
    2. 设置php.ini
    $ sudo cd /etc
    $ sudo cp php.ini php.ini.old
    $ sudo vim php.ini (optional)
    post_max_size = 8M
    upload_max_filesize = 2M
    ↓
    post_max_size = 128M
    upload_max_filesize = 128M
    
    Mysql
    0. yum -y install mysql-server
    1. 确认版本号
    $ mysql --version
    2. Mysql 启动
    $ sudo service mysqld start 或者
    $ sudo /etc/rc.d/init.d/mysqld start
    3. 设置password
    $ sudo mysql_secure_installation
    4. 设置自己主动启动
    $ sudo chkconfig mysqld on
    
    phpMyAdmin
    0. 安装
    $ sudo yum install phpmyadmin
    1. 配置phpMyAdmin.conf
    $ cd /etc/httpd/conf.d
    $ sudo cp phpMyAdmin.conf  phpMyAdmin.conf.old
    $ sudo vim phpMyAdmin.conf  
    Allow from 127.0.0.1   (near line 25)
    Allow from ::1
    ↓
    #Allow from 127.0.0.1
    #Allow from ::1
    Allow from All
    $ sudo service httpd restart
    http://xxx.xxx.xxx.xxx/phpmyadmin 

  • 相关阅读:
    HTTPs与HTTP的区别&HTTPs如何建立连接
    HTTP协议常见状态码和字段
    服务器负载均衡
    ARP协议工作原理
    C++智能指针
    C++类型转换
    Rust 只出现一次的数字 两种解法
    Rust 存在重复元素 两种解法
    Rust 旋转数组
    Rust 动态规划 买卖股票的最佳时机 II
  • 原文地址:https://www.cnblogs.com/mthoutai/p/7110662.html
Copyright © 2011-2022 走看看