美文网首页我爱编程
centos一些配置记录

centos一些配置记录

作者: ning_e83f | 来源:发表于2018-05-20 10:36 被阅读0次

    一、网络连接

    1、cd  /etc/sysconfig/network-scripts/

    2、vi    ifcfg-ens33,把ONBOOT=no 改成ONBOOT=yes,添加行:DNS1=8.8.8.8,保存并退出

    3、service network restart

    二、安装apache

    yum install httpd

    三、安装php

    1、先安装SCL:yum install centos-release-scl-rh

    2、yum install rh-php70

    3、查看scl安装了哪些软件:scl -l

    4、执行bash命令,让shell自动识别php命令:scl enable rh-php70 bash

    四、安装mysql

    相关文章

      网友评论

        本文标题:centos一些配置记录

        本文链接:https://www.haomeiwen.com/subject/txizdftx.html