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. 也许有用(也谈VC中ModifyStyle&ModifyStyleEx无法改变控件的Style)

     一个View中用到了一个CListCtrl,在OnInitialUpdate函数里面他调用了m_listCtrl.ModifyStyleEx(0, LVS_EX_FULLROWSELECT);但是结 ...

  2. BZOJ 4503 两个串(FFT)

    [题目链接] http://www.lydsy.com/JudgeOnline/problem.php?id=4503 [题目大意] 给出S串和T串,计算T在S中出现次数,T中有通配符'?'. [题解 ...

  3. MyMVC框架的使用

    1)在web.config 中system.web 节点下加入例如以下代码 <pages controlRenderingCompatibilityVersion="4.0" ...

  4. Introduction to Probability (5) Continus random variable

    CONTINUOUS RANDOM VARIABLES AND PDFS  连续的随机变量,顾名思义.就是随机变量的取值范围是连续的值,比如汽车的速度.气温.假设我们要利用这些參数来建模.那么就须要引 ...

  5. Google Maps 学习笔记(二)地图天气预报服务 2014.06.04

    地图天气预报服务:一,获取天气预报信息:二,解析天气预报信息:三,在地图上加载天气预报信息: Yahoo!提供的天气预报服务采用流行的RSS输出结果,接口地址如下: http://weather.ya ...

  6. C#操作Office.word(一)

    该文章主要是讲述如何使用VS2010创建word文档,因为在项目中我们可能需要点击一个按钮把数据库中的项目表单或图片显示到word文档中,因此该文章主要分析如何使用VS2010创建word文档并填写相 ...

  7. mysql修改用户名和密码

    修改用户名 mysql> use mysql;  选择数据库Database changedmysql> update user set user="dns" wher ...

  8. HDU1712-ACboy needs your help

    描述: ACboy has N courses this term, and he plans to spend at most M days on study.Of course,the profi ...

  9. Android 开发笔记 “The constructor AlertDialog.Builder(new View.OnKeyListener(){}) is undefined”

    1.The constructor AlertDialog.Builder(new View.OnKeyListener(){}) is undefined等,应该有很多类似问题 比如你的源码文件名是 ...

  10. HTML+CSS笔记 CSS中级 颜色&长度值

    颜色值 在网页中的颜色设置是非常重要,有字体颜色(color).背景颜色(background-color).边框颜色(border)等,设置颜色的方法也有很多种: 1.英文命令颜色 语法: p{co ...