<<repo.zip>>
<<php-protobuf-master.zip>>
<<pki.zip>>https://dev.mysql.com/downloads/repo/yum/
1. 更新yum 源
yum install lrzsz
cd /etc/yum.repos.d/
rm -rf *
mv ~/repo.zip .
unzip repo.zip
cd /etc/pki/rpm-gpg
rm -rf *
mv ~/pki.zip .
unzip pki.zip
- 安装php,mysql环境
yum install nginx php redis php-fpm mysql-server php-devel
/etc/init.d/mysqld start
/usr/bin/mysql_secure_installation
dhwqbxloa
yum install php-pecl-mongo.x86_64 php-mysqlnd.x86_64
https://github.com/allegro/php-protobuf/archive/master.zip
unzip php-protobuf-master.zip
phpize
./configure && make && make install
- 安装erlang
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
wget http://www.erlang.org/download/otp_src_R16B03-1.tar.gz
tar -zxvf otp_src_R16B03-1.tar.gz
cd otp_src_R16B03-1
./configure --prefix=/usr && make && make install
- 安装mongo
tar zxvf mongodb-linux-x86_64-2.4.12.tgz
mv mongodb-linux-x86_64-2.4.12 /usr/local/mongodb
cd /usr/local/mongodb
mkdir data log etc
vi etc/mongod.conf
dbpath=/usr/local/mongodb/data
logpath=/usr/local/mongodb/log/mongod.log
directoryperdb=true
logappend=true
fork=true
auth = true
#maxConns = 10000
echo "/usr/local/mongodb/bin/mongod -f /usr/local/mongodb/etc/mongod.conf" >>/etc/rc.local
/usr/local/mongodb/bin/mongod -f /usr/local/mongodb/etc/mongod.conf
vi /etc/profile
PATH=/usr/local/mongodb/bin:$PATH
mongo
use admin
db.addUser('root','dsfhjkefw')
- 创建用户修改授权
useradd billing_dev sdfhkhlkfs
useradd catdog fdsfskdjjhf
useradd center_dev gvewpnjks
chown -R center_dev:center_dev /home/center_dev
chown -R center_dev:center_dev /home/billing_dev
vi /etc/nginx/nginx.conf
user center_dev;
vi /etc/php-fpm.d/www.conf
user = center_dev
group = center_dev
chkconfig redis on
chkconfig nginx on
chkconfig mysqld on
chkconfig php-fpm on
如果您喜欢本站,点击这儿可以捐赠本站
这些信息可能会帮助到你: 联系作者 | 报毒说明
修改版本软件,加群提示等均为修改者自留,非本站信息,注意鉴别
这些信息可能会帮助到你: 联系作者 | 报毒说明
修改版本软件,加群提示等均为修改者自留,非本站信息,注意鉴别
评论(0)