zoukankan      html  css  js  c++  java
  • 环境搭建

    安装mysql
    yum list | grep mysql
    yum install mysql-server.x86_64
    启动mysql
    /etc/init.d/mysqld start
    进入mysql创建用户并授权
    mysql -uroot
    show databses;
    use mysql;
    delete from user where password="";
    GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'root';
    GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'root';
    GRANT ALL PRIVILEGES ON *.* TO 'han'@'%' IDENTIFIED BY 'root';
    flush privileges;
    安装php
      Centos 5.X
      rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
      CentOs 6.x
      rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
      CentOs 7.X
    rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
    rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

    yum install php55w.x86_64 php55w-cli.x86_64 php55w-common.x86_64 php55w-gd.x86_64 php55w-ldap.x86_64 php55w-mbstring.x86_64 php55w-mcrypt.x86_64 php55w-mysql.x86_64 php55w-pdo.x86_64

    yum install php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64

    yum install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64

    .安装PHP FPM
    yum install php55w-fpm
    yum install php56w-fpm
    yum install php70w-fpm
    启动fpm
    /etc/init.d/php-fpm start
    安装nginx

    rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm

    yum list | grep nginx

    yum install nginx.x86_64

    启动nginx
    /etc/init.d/nginx start
    访问出现Welcome to nginx!安装成功

  • 相关阅读:
    水晶报表设计--基本概念
    微信公众平台开发小结
    CCF计算机职业认证考试
    Linux 命令
    百度搜索引擎的一些技巧
    Windows的一些操作命令
    Eclipse:写jsp 出现的一些问题
    操作系统(基本问题)
    C语言编程技巧(注意点)
    mysql命令报错问题
  • 原文地址:https://www.cnblogs.com/jiuweidezhanfang/p/5473849.html
Copyright © 2011-2022 走看看