安装lnmprm的shell,临时

来源:互联网 发布:移动端域名配置 编辑:程序博客网 时间:2024/06/14 01:50

随便写写,省了新装的一大堆步骤,待完善

centos 6.6

php nginx mysql redis mongodb

#!/bin/bashyum install wget -yecho "##########install remi repo##########"wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmrpm -Uvh remi-release-6*.rpm epel-release-6*.rpmrm -rf epel-release-6-8.noarch.rpmrm -rf remi-release-6.rpmecho "##########install nginx##########"echo "[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/gpgcheck=0enabled=1priority=1" > /etc/yum.repos.d/nginx.repoecho "##########install mongodb repo##########"echo "[mongodb-org-3.0]name=MongoDB Repositorybaseurl=http://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/3.0/x86_64/gpgcheck=0enabled=1" > /etc/yum.repos.d/mongodb-org-3.0.repoyum install --enablerepo=remi ntpdate vim nginx lrzsz gcc pcre-devel zlib-devel openssl openssl-devel mysql mysql-server php php-devel php-gd php-fpm php-mysql php-mbstring php-xml php-mcrypt zip unzip mongodb-org php-pear samba -yyum update --enablerepo=remi -yecho "extension=mongo.so" >> /etc/php.inipecl install mongochkconfig --level 2345 php-fpm onchkconfig --level 2345  nginx onchkconfig --level 2345  mongod onchkconfig --level 2345  mysqld onservice php-fpm startservice nginx startservice mongod startservice mysqld start#修改#mysql_secure_installation#/etc/nginx/conf.d/default.conf#/etc/php-fpm.d/www.conf 用户和组 php_flag[display_errors] = on#关闭selinux /etc/selinux/config SELINUX=disabled#wget http://download.redis.io/releases/redis-3.0.0.tar.gz
#修改/etc/php.ini data.timezone = Asia/Shanghai#重启
</pre><pre name="code" class="plain">腾讯云NTP */20 * * * * /usr/sbin/ntpdate ntpupdate.tencentyun.com >/dev/null &cn.ntp.org.cn

0 0
原创粉丝点击