香港VPS CENTOS6.x操作系统WEB运行环境配置脚本

来源:互联网 发布:淘宝网假冒材质成分 编辑:程序博客网 时间:2024/05/16 05:42
CENTOS6.x操作系统的香港VPS初次使用可以尝试在络端运行以下脚本,自动安装LNMP环境:

#!/bash/sh

yum -y remove nginx httpd mysql mysql-server php php-fpm php54w php54w-*
yum -y install gcc nginx-stable httpd mysql-server

rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
yum install php54w php54w-*
yum install php-fpm

yum -y update

wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install nginx

service mysqld start
service php-fpm start
service nginx start
service httpd start


脚本下载地址:centosyum0.txt

注:可以把文件扩展名txt改为sh;
0 0