zoukankan      html  css  js  c++  java
  • Linux下安装与卸载PHP

    一、安装依赖

    yum install zlib-devel libxml2-devel libjpeg-devel libjpeg-turbo-devel freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel libxslt-devel

    二、安装php

    ./configure  --prefix=/usr/local/php  --with-config-file-path=/usr/local/php/etc  --with-png-dir=/usr/local/libpng  --with-jpeg-dir=/usr/local/jpeg  --with-freetype-dir=/usr/local/freetype  --with-zlib-dir=/usr/local/zlib  --with-mcrypt=/usr/local/libmcrypt  --with-libxml-dir=/usr/local/libxml2/  --with-iconv-dir=/usr/local/libiconv  --enable-libxml  --enable-xml  --enable-bcmath  --enable-shmop  --enable-sysvsem  --enable-inline-optimization  --enable-opcache  --enable-mbregex  --enable-fpm  --enable-mbstring=all  --enable-gd-native-ttf  --with-openssl  --enable-pcntl  --enable-sockets  --with-xmlrpc  --enable-zip  --enable-soap  --without-pear  --with-gettext  --enable-session  --with-curl  --enable-ctype  --enable-shared  --with-gd --disable-fileinfo

    安装php7.2.12

    ./configure --prefix=/usr/local/php 
    --with-curl 
    --with-freetype-dir 
    --with-gd 
    --with-gettext 
    --with-iconv-dir 
    --with-kerberos 
    --with-libdir=lib64 
    --with-libxml-dir 
    --with-mysqli 
    --with-openssl 
    --with-pcre-regex 
    --with-pdo-mysql 
    --with-pdo-sqlite 
    --with-pear 
    --with-png-dir 
    --with-jpeg-dir 
    --with-xmlrpc 
    --with-xsl 
    --with-zlib 
    --enable-fpm 
    --enable-bcmath 
    --enable-libxml 
    --enable-inline-optimization 
    --enable-mbregex 
    --enable-mbstring 
    --enable-opcache 
    --enable-pcntl 
    --enable-shmop 
    --enable-soap 
    --enable-sockets 
    --enable-sysvsem 
    --enable-xml 
    --enable-zip

    三、卸载php

    首先先要列出php的安装包
    在命令行键入
    # rpm -qa|grep php
    会列出php相关的安装包
    输入rpm -e 加包名卸载该软件,所列出的包名依次进行卸载
    只要记住命令还是不难的,当然apache也得卸载重装
    过程是一样的
    过程中会有一些比较顽强的包不好卸载,可以用这个命令来卸载
    # rpm -e 程序包名 --nodeps

  • 相关阅读:
    努力学习吧!
    C# 捕捉键盘事件
    oracle 11g 及 plsqldeveloper 相关操作
    Oracle 建表空间
    窗体程序 防止重复打开子窗体
    asp 下 ewebeditor 上传图片功能,在IE7,IE8 及更高版本上失效解决方法
    StringBuilder 在后台动态输出 html 代码
    起动停止 Oracle11g 三个服务的批处理写法
    MySQL 常用命令语句
    虚拟机—pychrm
  • 原文地址:https://www.cnblogs.com/gentlemanwuyu/p/10600526.html
Copyright © 2011-2022 走看看