LNMP一键安装包sh脚本
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脚本的更多相关文章
- LNMP一键安装包 PHP自动升级脚本
LNMP一键安装包 PHP自动升级脚本 2011年03月15日 上午 | 作者:VPS侦探 前一段时间完成了lnmp一键安装包的PHP自动升级脚本,今天发布出来,如果想升级PHP版本的lnmp用户可以 ...
- 安装lnmp一键安装包(转)
系统需求: CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian Linux系统 需要3GB以上硬盘剩余空间 128M以上内存,Xen的需要有SWAP,OpenVZ的另外 ...
- CentOS下Web服务器环境搭建LNMP一键安装包
CentOS下Web服务器环境搭建LNMP一键安装包 时间:2014-09-04 00:50来源:osyunwei.com 作者:osyunwei.com 举报 点击:3797次 最新版本:lnmp- ...
- LNMP一键安装包 V1.1
通告
LNMP一键安装包 是一个用Linux Shell编写的能够为CentOS/RadHat.Debian/Ubuntu VPS(VDS)或独立主机安装LNMP(Nginx.MySQL/MariaDB.P ...
- Linode和DigitalOcean lnmp一键安装包哪个好?
Linode和DigitalOcean都是非常棒的VPS厂商,512MB内存的VPS每月低到5美元,搭建wordpress网站,非常方便,甚至可以多人共用,服务器足够强悍,跑几个wordpress博客 ...
- LNMP一键安装包
http://www.aliweihu.com/333.html LNMP一键安装包是什么? LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat.Debian/Ub ...
- lnmp 一键安装包
系统需求: CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian Linux系统 需要5GB以上硬盘剩余空间 需要128MB以上内存(如果为128MB的小内存VPS,Xe ...
- LNMP一键安装包如何重装Nginx
LNMP一键安装包安装好后,相应的Mysql,Nginx及PHP都会安装配置完成. 由于某些特殊情况的需要,如何更换Nginx的版本呢? nginx升级脚本可以完成. 1. 手动编译方法:/usr/l ...
- 安装 - LNMP一键安装包
https://lnmp.org/ 系统需求: CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian Linux系统 需要5GB以上硬盘剩余空间 需要128MB以上内存( ...
随机推荐
- /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found,解压rpm包
如果是64位系统报错信息如下: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by 原因是没有GLIB ...
- 怎样注册uber司机 如何注册uber司机 最新详细攻略
怎样注册uber司机 如何注册加入uber司机 全国加入Uber 的要求 车辆要求:要求裸车价8万以上,车龄5年以内,第三者责任险保额30万以上,不支持20万以下的面包车/商务车,不支持4座以下车辆. ...
- j2se总结
j2se总结 经过一周多的时间完成了j2se基础的学习,个人感觉最大的收获不是对j2se的语法了解了多少,而是对面向对象的认识再一次加深了.面向对象,让类和对象成为一切. 下边是对j2se的一部分的总 ...
- j详细说明ava于clone办法
原文地址:http://leihuang.org/2014/11/14/java-clone/ In java, it essentially means the ability to create ...
- 在基类中的析构函数声明为virtual
#include <iostream> using namespace std; class Father { public: ~Father() { cout << &quo ...
- VS2015操作Oracle数据需要做那些设置?
1>在oracle网上下载:ODP.NET 2> 要根据自己的oracle 数据32bit/64bit,选择下载. 3> 根据提示配置tnsnames.ora文件. # alias ...
- iOS面试题05-父子控制器、内存管理
内存管理.父子控制器面试题 1.建立父子关系控制器有什么用 回答:1>监听屏幕选中 2>如果想拿到你当前的很小的一个控制器所在的导航控制器必须要跟外面比较大的控制器建立父子关系,才能一层一 ...
- BZOJ 1034: [ZJOI2008]泡泡堂BNB( 贪心 )
贪心...用最弱的赢最弱的,用最强的赢最强的,否则用最弱的和最强的比... (贴个官方题解:将双方的选手均按从强到弱排序,然后第一次扫描尽可能用当前剩下的选手中能赢对手当前最强选手中最弱的一个去赢得胜 ...
- load_library(linker.cpp:759): library "libmaliinstr.so" not found
1.02-07 15:19:09.277: E/linker(16043): load_library(linker.cpp:759): library "libmaliinstr.so&q ...
- Python开发环境Spyder安装方法
Spyder(Scientific PYthon Development EnviRonment)是一个强大的交互式 Python 语言开发环境,提供高级的代码编辑.交互测试.调试等特性,支持包括 W ...