centos mysql php tomcat_centos 一键部署安装nginx,mysql,php,apache,tomcat,redis等包合集
1.1/oneinstack.com
yum -y install wget screen curl python #for CentOS/Redhat # apt-get -y install wget screen curl python #for Debian/Ubuntu wget http://aliyun-oss.linuxeye.com/oneinstack-full.tar.gz #阿里云用戶下載 wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz #包含源碼,國內(nèi)外均可下載 wget http://mirrors.linuxeye.com/oneinstack.tar.gz #不包含源碼,建議僅國外主機下載 tar xzf oneinstack-full.tar.gz cd oneinstack #如果需要修改目錄(安裝、數(shù)據(jù)存儲、Nginx日志),請修改options.conf文件 screen -S oneinstack #如果網(wǎng)路出現(xiàn)中斷,可以執(zhí)行命令`screen -r oneinstack`重新連接安裝窗口 ./install.sh #注:請勿sh install.sh或者bash install.sh這樣執(zhí)行
2.2/lnmp.org
安裝LNMP
wget -c http://soft.vpser.net/lnmp/lnmp1.3.tar.gz && tar zxf lnmp1.3.tar.gz && cd lnmp1.3 && ./install.sh lnmp
默認(rèn)安裝lnmp可不寫,如需要安裝LNMPA或LAMP,將./install.sh 后面的參數(shù)替換為lnmpa或lamp即可。如需更改網(wǎng)站和數(shù)據(jù)庫目錄先修改 lnmp.conf 文件。
3.3/yumlamp.com
wget http://soft.laozuo.org/lamp/lamp_centos1.0.tar.gz
tar zxvf lamp_centos1.0.tar.gz
cd centos
sh install.sh
4.4/lamp.phpstudy.net
wget -c http://lamp.phpstudy.net/phpstudy.bin
chmod +x phpstudy.bin #權(quán)限設(shè)置
./phpstudy.bin #運行安裝
5.附送阿里云掛接數(shù)據(jù)盤方法:
wget http://mirrors.linuxeye.com/scripts/auto_fdisk.sh
6.更換為阿里云的源
阿里云Linux安裝鏡像源地址:http://mirrors.aliyun.com/
CentOS系統(tǒng)更換軟件安裝源
第一步:備份你的原鏡像文件,以免出錯后可以恢復(fù)。
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
第二步:下載新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
第三步:運行yum makecache生成緩存
yum clean all
yum makecache
chmod +x ./auto_fdisk.sh
./auto_fdisk.sh
總結(jié)
以上是生活随笔為你收集整理的centos mysql php tomcat_centos 一键部署安装nginx,mysql,php,apache,tomcat,redis等包合集的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 手机远程开电脑6不6手机能远程开电脑吗
- 下一篇: 环境复制_PostgreSQL热备之流复