失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > centos mysql php tomcat_centos 一键部署安装nginx mysql php apache tomcat redis等包合集

centos mysql php tomcat_centos 一键部署安装nginx mysql php apache tomcat redis等包合集

时间:2020-12-11 17:46:27

相关推荐

centos mysql php tomcat_centos 一键部署安装nginx mysql php apache tomcat redis等包合集

1.1/

yum -y install wget screen curl python #for CentOS/Redhat # apt-get -y install wget screen curl python #for Debian/Ubuntu wget http://aliyun-/oneinstack-full.tar.gz #阿里云用户下载 wget /oneinstack-full.tar.gz #包含源码,国内外均可下载 wget /oneinstack.tar.gz #不包含源码,建议仅国外主机下载 tar xzf oneinstack-full.tar.gz cd oneinstack #如果需要修改目录(安装、数据存储、Nginx日志),请修改options.conf文件 screen -S oneinstack #如果网路出现中断,可以执行命令`screen -r oneinstack`重新连接安装窗口 ./install.sh #注:请勿sh install.sh或者bash install.sh这样执行

2.2/

安装LNMP

wget -c /lnmp/lnmp1.3.tar.gz && tar zxf lnmp1.3.tar.gz && cd lnmp1.3 && ./install.sh lnmp

默认安装lnmp可不写,如需要安装LNMPA或LAMP,将./install.sh 后面的参数替换为lnmpa或lamp即可。如需更改网站和数据库目录先修改 lnmp.conf 文件。

3.3/

wget /lamp/lamp_centos1.0.tar.gz

tar zxvf lamp_centos1.0.tar.gz

cd centos

sh install.sh

4.4/

wget -c /phpstudy.bin

chmod +x phpstudy.bin #权限设置

./phpstudy.bin #运行安装

5.附送阿里云挂接数据盘方法:

wget /scripts/auto_fdisk.sh

6.更换为阿里云的源

阿里云Linux安装镜像源地址:/

CentOS系统更换软件安装源

第一步:备份你的原镜像文件,以免出错后可以恢复。

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 /repo/Centos-5.repo

CentOS 6

wget -O /etc/yum.repos.d/CentOS-Base.repo /repo/Centos-6.repo

第三步:运行yum makecache生成缓存

yum clean all

yum makecache

chmod +x ./auto_fdisk.sh

./auto_fdisk.sh

如果觉得《centos mysql php tomcat_centos 一键部署安装nginx mysql php apache tomcat redis等包合集》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。