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一键安装包sh脚本

    Xshell 5 (Build 0719) Copyright (c) 2002-2015 NetSarang Computer, Inc. All rights reserved. Type `he ...

  2. CentOS7上LNMP安装包一步搭建LNMP环境

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

  3. 制作Linux下程序安装包——使用脚本打包bin、run等安装包

    制作简单的安装包的时候可以简单的用cat命令连接两个文件,然后头部是脚本文件,执行的时候把下面的文件分解出来就行了.一般这个后部分的文件是个压缩 包,那样,就能够打包很多文件了,在脚本中解压出来即可. ...

  4. lnmp----------lnmp集成环境使用lnmp安装包安装lnmp集成环境的步骤

    1.先看下screen -S lnmp 命令是否存在,不存在则安装.这个是个什么东东呢?百度一下( GNU Screen是一款由GNU计划开发的用于命令行终端切换的自由软件.用户可以通过该软件同时连接 ...

  5. ubuntu17.10安装lnmp安装包的核心问题-gcc版本、g++版本

    大致碰到的问题都是这样,不是php安装失败,就是MySQL安装失败,或者Nginx也安装失败 基本上是花式报错.后来在军哥的论坛中找到了这个帖子:https://bbs.vpser.net/viewt ...

  6. C# Note19: Windows安装包制作实践

    前言 最近在项目中需要不断更新新版本的software installer(软件安装包),于是便查阅资料,整理了下制作方法. NSIS安装包制作脚本 NSIS(Nullsoft Scriptable ...

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

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

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

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

  9. LNMP安装一键安装包

    系统需求: CentOS/Debian/Ubuntu Linux系统 需要2GB以上硬盘剩余空间 128M以上内存,OpenVZ的建议192MB以上(小内存请勿使用64位系统) VPS或服务器必须已经 ...

随机推荐

  1. 在 Windows Azure 上部署预配置 Oracle VM

    Microsoft 和 Oracle 近期宣布建立战略合作伙伴关系,基于此,我们将通过 Windows Azure 镜像库推出多种常用的 Oracle 软件配置.即日起,客户可以在 Windows S ...

  2. POJ 1721 CARDS(置换群)

    [题目链接] http://poj.org/problem?id=1721 [题目大意] 给出a[i]=a[a[i]]变换s次后的序列,求原序列 [题解] 置换存在循环节,因此我们先求出循环节长度,置 ...

  3. 拥抱开源,怎样关注Linux Kernel 邮件列表?

    现在开源如此火爆.以至于张口闭口不提到都仿佛不是搞IT 的.那么怎样拥抱开源?本文适合刚開始学习的人,如有大神至此,goto exit ! 一.怎样增加开源 以Linux 为例,这么一个成功的开源项目 ...

  4. Linux进程间通信总结

    刚请完婚假,请假期间做了些技术总结,其中一个就是Linux进程间通信方式的总结. Linux提供了多种进程间通信的方式,列举如下: PIPE(管道) FIFO(先进先出,也称为有名管道) domain ...

  5. unity 播放外部视频

    摘要: Unity支持的播放视频格式有.mov..mpg..mpeg..mp4..avi和.asf.只需将对应的视频文件拖拽入Project视图即可,它会自动生成对应的MovieTexture对象. ...

  6. SSIS 实例 从Ftp获取多个文件并对数据库进行增量更新。

    整个流程 Step 1 放置一个FTP Task 将远程文件复制到本地 建立FTP链接管理器后 Is LocalPatchVariable 设置为Ture 并创建一个变量设置本地路径 Operatio ...

  7. C# Best Practices - Define Proper Classes

    Application Architecture Define the components appropriately for the application and create project ...

  8. Penalty

    Penalty时间限制:1000 ms | 内存限制:65535 KB难度:2描述As is known to us, the penalty is vitally important to comp ...

  9. .net format 中 大括号{}处理

    1.string string.format(string format,object arg0) 错误:因为方法中使用{n}做占位符号了,所以其他需要括号{}的地方,就需要{{}}

  10. synchronized和vilatile

    第一个程序 public class Test06 implements Runnable{ public int a = 0; public static void main(String[] ar ...