Xshell 5 (Build 0719)
Copyright (c) 2002-2015 NetSarang Computer, Inc. All rights reserved. Type `help' to learn how to use Xshell prompt.
[d:\~]$ Connecting to 192.168.1.137:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'. Last login: Sun Dec 13 19:15:22 2015 from 192.168.1.169
[root@localhost ~]# cd /home
[root@localhost home]# ll
total 4
drwx------. 4 ligaoxiang ligaoxiang 4096 Dec 14 2015 ligaoxiang
[root@localhost home]# wget -c http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz
--2015-12-13 20:44:04-- http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz
Resolving soft.vpser.net... failed: Name or service not known.
wget: unable to resolve host address “soft.vpser.net”
[root@localhost home]# wget -c http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz && tar zxf lnmp1.2-full.tar.gz && cd lnmp1.2-full && ./install.sh lnmp
--2015-12-13 20:44:57-- http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz
Resolving soft.vpser.net... 74.207.246.99
Connecting to soft.vpser.net|74.207.246.99|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 326745420 (312M) [application/octet-stream]
Saving to: “lnmp1.2-full.tar.gz” 19% [=======> ] 62,303,983 3.45M/s eta 78s ^C
[root@localhost home]# ll
total 61520
drwx------. 4 ligaoxiang ligaoxiang 4096 Dec 14 2015 ligaoxiang
-rw-r--r--. 1 root root 62991223 Dec 13 20:45 lnmp1.2-full.tar.gz
[root@localhost home]# wget -c http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz
--2015-12-13 20:45:34-- http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz
Resolving soft.vpser.net... 74.207.246.99, 2600:3c01::f03c:91ff:fe96:d57a
Connecting to soft.vpser.net|74.207.246.99|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 326745420 (312M), 263754197 (252M) remaining [application/octet-stream]
Saving to: “lnmp1.2-full.tar.gz” 100%[++++++++==================================>] 326,745,420 3.05M/s in 84s 2015-12-13 20:47:04 (2.98 MB/s) - “lnmp1.2-full.tar.gz” saved [326745420/326745420] [root@localhost home]# ll
total 319096
drwx------. 4 ligaoxiang ligaoxiang 4096 Dec 14 2015 ligaoxiang
-rw-r--r--. 1 root root 326745420 Jul 24 02:34 lnmp1.2-full.tar.gz
[root@localhost home]# tar zxf lnmp1.2-full.tar.gz ^H^H
^C
[root@localhost home]# tar zxf lnmp1.2-full.tar.gz
[root@localhost home]# ll
total 319100
drwx------. 4 ligaoxiang ligaoxiang 4096 Dec 14 2015 ligaoxiang
drwxr-xr-x. 7 root root 4096 Jun 5 2015 lnmp1.2-full
-rw-r--r--. 1 root root 326745420 Jul 24 02:34 lnmp1.2-full.tar.gz
[root@localhost home]# cd lnmp1.2-full
[root@localhost lnmp1.2-full]# ll
total 80
-rwxr-xr-x. 1 root root 3870 Jun 5 2015 addons.sh
-rw-r--r--. 1 root root 6338 Jun 5 2015 ChangeLog
drwxr-xr-x. 3 root root 4096 Jun 5 2015 conf
drwxr-xr-x. 2 root root 4096 Jun 5 2015 include
drwxr-xr-x. 2 root root 4096 Apr 16 2015 init.d
-rwxr-xr-x. 1 root root 4534 Jun 5 2015 install.sh
-rwxr-xr-x. 1 root root 6123 Jun 5 2015 php5.2.17.sh
-rwxr-xr-x. 1 root root 6694 Jun 18 05:25 pureftpd.sh
-rw-r--r--. 1 root root 5272 May 31 2015 readme
-rw-r--r--. 1 root root 5272 Jun 5 2015 README
drwxr-xr-x. 3 root root 4096 Jun 23 23:00 src
drwxr-xr-x. 2 root root 4096 Apr 16 2015 tools
-rwxr-xr-x. 1 root root 3942 Jun 5 2015 uninstall.sh
-rwxr-xr-x. 1 root root 2421 Jun 5 2015 upgrade.sh
[root@localhost lnmp1.2-full]# vim install.sh
[root@localhost lnmp1.2-full]# vim install.sh #!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH # Check if user is root
exit 1
fi cur_dir=$(pwd)
Stack="lnmp"
else
Stack=$1
fi LNMP_Ver='1.2' . include/main.sh
. include/init.sh
. include/mysql.sh
. include/mariadb.sh
. include/php.sh
. include/nginx.sh
. include/apache.sh
. include/end.sh Get_Dist_Name if [ "${DISTRO}" = "unknow" ]; then
exit 1
fi clear
echo "+------------------------------------------------------------------------+"
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
if [ "${DISTRO}" = "RHEL" ]; then
RHEL_Modify_Source
fi
Get_Dist_Version
if [ "${DISTRO}" = "Ubuntu" ]; then
Ubuntu_Modify_Source
fi
Set_Timezone
if [ "$PM" = "yum" ]; then
CentOS_InstallNTP
CentOS_RemoveAMP
CentOS_Dependent
elif [ "$PM" = "apt" ]; then
Deb_InstallNTP
Xen_Hwcap_Setting
Deb_RemoveAMP
Deb_Dependent
fi
Disable_Selinux
Check_Download
Install_Autoconf
Install_Libiconv
Install_Libmcrypt
Install_Mhash
Install_Mcrypt
Install_Freetype
Install_Curl
Install_Pcre
if [ "${SelectMalloc}" = "2" ]; then
Install_Jemalloc
elif [ "${SelectMalloc}" = "3" ]; then
Install_TCMalloc
fi
if [ "$PM" = "yum" ]; then
CentOS_Lib_Opt
elif [ "$PM" = "apt" ]; then
Deb_Lib_Opt
Deb_Check_MySQL
fi
if [ "${DBSelect}" = "1" ]; then
Install_MySQL_51
elif [ "${DBSelect}" = "2" ]; then
Install_MySQL_55
elif [ "${DBSelect}" = "3" ]; then
Install_MySQL_56
elif [ "${DBSelect}" = "4" ]; then
Install_MariaDB_5
elif [ "${DBSelect}" = "5" ]; then
Install_MariaDB_10
fi
Export_PHP_Autoconf
} LNMP_Stack()
{
Init_Install
if [ "${PHPSelect}" = "1" ]; then
Install_PHP_52
elif [ "${PHPSelect}" = "2" ]; then
Install_PHP_53
elif [ "${PHPSelect}" = "3" ]; then
Install_PHP_54
elif [ "${PHPSelect}" = "4" ]; then
Install_PHP_55
elif [ "${PHPSelect}" = "5" ]; then
Install_PHP_56
fi
Install_Nginx
Install_PHP_54
elif [ "${PHPSelect}" = "4" ]; then
Install_PHP_55
elif [ "${PHPSelect}" = "5" ]; then
Install_PHP_56
fi
Creat_PHP_Tools
Add_LAMP_Startup
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
-- VISUAL LINE -- 190,1 Bot

LNMP一键安装包sh脚本的更多相关文章

  1. LNMP一键安装包 PHP自动升级脚本

    LNMP一键安装包 PHP自动升级脚本 2011年03月15日 上午 | 作者:VPS侦探 前一段时间完成了lnmp一键安装包的PHP自动升级脚本,今天发布出来,如果想升级PHP版本的lnmp用户可以 ...

  2. 安装lnmp一键安装包(转)

    系统需求: CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian Linux系统 需要3GB以上硬盘剩余空间 128M以上内存,Xen的需要有SWAP,OpenVZ的另外 ...

  3. CentOS下Web服务器环境搭建LNMP一键安装包

    CentOS下Web服务器环境搭建LNMP一键安装包 时间:2014-09-04 00:50来源:osyunwei.com 作者:osyunwei.com 举报 点击:3797次 最新版本:lnmp- ...

  4. LNMP一键安装包 V1.1 通告

    LNMP一键安装包 是一个用Linux Shell编写的能够为CentOS/RadHat.Debian/Ubuntu VPS(VDS)或独立主机安装LNMP(Nginx.MySQL/MariaDB.P ...

  5. Linode和DigitalOcean lnmp一键安装包哪个好?

    Linode和DigitalOcean都是非常棒的VPS厂商,512MB内存的VPS每月低到5美元,搭建wordpress网站,非常方便,甚至可以多人共用,服务器足够强悍,跑几个wordpress博客 ...

  6. LNMP一键安装包

    http://www.aliweihu.com/333.html LNMP一键安装包是什么? LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat.Debian/Ub ...

  7. lnmp 一键安装包

    系统需求: CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian Linux系统 需要5GB以上硬盘剩余空间 需要128MB以上内存(如果为128MB的小内存VPS,Xe ...

  8. LNMP一键安装包如何重装Nginx

    LNMP一键安装包安装好后,相应的Mysql,Nginx及PHP都会安装配置完成. 由于某些特殊情况的需要,如何更换Nginx的版本呢? nginx升级脚本可以完成. 1. 手动编译方法:/usr/l ...

  9. 安装 - LNMP一键安装包

    https://lnmp.org/ 系统需求: CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian Linux系统 需要5GB以上硬盘剩余空间 需要128MB以上内存( ...

随机推荐

  1. delete了,析构函数却没有调用

    析构函数在对象的生命结束时,会自动调用,大家所熟知的智能指针就是根据析构函数的这种特性而实现的,包括Qt的内存管理机制,也都是利用了析构函数的这一机制来实现的.c++创始人Bjarne Stroust ...

  2. 【LeetCode】Sum Root to Leaf Numbers

    题目 Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a num ...

  3. java concurrent之前戏synchronized

    对于多线程共享资源的情况须要进行同步,以避免一个线程的修改被还有一个线程的修改所覆盖. 最普遍的同步方式就是synchronized. 把代码声明为synchronized.有两个重要后果,一般是指该 ...

  4. android UI进阶之弹窗的使用(2)--实现通讯录的弹窗效果

    相信大家都体验过android通讯录中的弹窗效果.如图所示: android中提供了QuickContactBadge来实现这一效果.这里简单演示下. 首先创建布局文件: <?xml versi ...

  5. 编写可维护的JS 01

    1.编程风格 缩进层级 使用制表符进行缩进 2个/4个空格缩进 语句结尾 不省略分号 行的长度 不超过80个字符 换行 在运算符后面换行 空行 在以下场景中添加: 方法之间 在方法中局部变量与第一条语 ...

  6. sublime test3 使用技巧

    sublimeText3使用技巧 常用快捷键 ctrl+d :选中光标处的文本单元,继续按ctrl+d选中相同文本单元 alt+F3 :功能和ctrl+d类似,用于批量修改相同文本 shift+↑ ↓ ...

  7. 解决iOS7中UITableView在使用autolayout时layoutSubviews方法导致的crash

    近期公司项目上线后,出现了大量的crash,发生在iOS7系统上,和UITableView相关: Auto Layout still required after executing -layoutS ...

  8. JavaBean组件在JSP文档中的应用

    Bean: package cn.donghaua.bean; public class StringBean { private String message = "No message ...

  9. C程序的存储空间布局

    历史沿袭至今,C程序一直由下列几部分组成: 1. 正文段.这是由CPU执行的机器指令部分.通常,正文段是可共享的,所以即使是频繁执行的程序(编辑器,编译器,命令解释器)在存储器中也只需一个副本,另外正 ...

  10. 利用python进行数据分析之pandas库的应用(二)

    本节介绍Series和DataFrame中的数据的基本手段 重新索引 pandas对象的一个重要方法就是reindex,作用是创建一个适应新索引的新对象 >>> from panda ...