VPS侦探论坛

 找回密码
 注册
查看: 4306|回复: 2

php,mysql,nginx各个组件可以单独安装单独卸载吗

[复制链接]
发表于 2016-5-7 18:49:41 | 显示全部楼层 |阅读模式

php,mysql,nginx各个组件可以单独安装单独卸载吗
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-5-8 09:12:18 | 显示全部楼层


修改一个独立脚本 install_mariadb.sh

#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

# Check if user is root
if [ $(id -u) != "0" ]; then
    echo "Error: You must be root to run this script, please use root to install lnmp"
    exit 1
fi

cur_dir=$(pwd)
Stack=$1
if [ "${Stack}" = "" ]; then
    Stack="lnmp"
else
    Stack=$1
fi

LNMP_Ver='1.2'

. include/main.sh
. include/init.sh
. include/mysql.sh
. include/mariadb.sh
. include/end.sh

Get_Dist_Name

if [ "${DISTRO}" = "unknow" ]; then
    Echo_Red "Unable to get Linux distribution name, or do NOT support the current distribution."
    exit 1
fi

clear
echo "+------------------------------------------------------------------------+"
echo "|          LNMP V${LNMP_Ver} for ${DISTRO} Linux Server, Written by Licess          |"
echo "+------------------------------------------------------------------------+"
echo "|        A tool to auto-compile & install LNMP/LNMPA/LAMP on Linux       |"
echo "+------------------------------------------------------------------------+"
echo "|          For more information please visit http://www.lnmp.org         |"
echo "+------------------------------------------------------------------------+"

Init_Install()
{
    Press_Install
    Print_Sys_Info
    Disable_Selinux
   Install_MariaDB_10
  
}

LNMP_Stack()
{
    Init_Install
    Check_LNMP_Install
}

LNMPA_Stack()
{
    Init_Install
    Check_LNMPA_Install
}

LAMP_Stack()
{
    Init_Install
    Check_LAMP_Install
}

case "${Stack}" in
    lnmp)
        Dispaly_Selection
        LNMP_Stack 2>&1 | tee -a /root/lnmp-install.log
        ;;
    lnmpa)
        Dispaly_Selection
        LNMPA_Stack 2>&1 | tee -a /root/lnmp-install.log
        ;;
    lamp)
        Dispaly_Selection
        LAMP_Stack 2>&1 | tee -a /root/lnmp-install.log
        ;;
    *)
        Echo_Red "Usage: $0 {lnmp|lnmpa|lamp}"
        ;;
esac
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-5-8 09:22:40 | 显示全部楼层

均无法单独安装

卸载可以自己进行删除

也可以自己修改脚本来实现
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 11:32 , Processed in 0.025582 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表