• 欢迎访问VPS岛网站,国外VPS,国内VPS,国外服务器,国内服务器,服务器主机,测评及优惠码,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站 QQ群

Nginx Mysql PHP总结

mysql技术 命如落花 65次浏览 已收录 0个评论

nginx安装http://nginx.org/en/download.html
cd /usr/local
cd nginx
cd conf
cd nginx.conf
cd html
./nginx -t
./nginx -s reload
vim nginx.conf
netstat -pantu | grep 80
server {
listen 80;
server_name www.nautilus.org;
location / {
root html/www;
index index.html index.htm;
}

mysql安装wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.22.tar.gz
mysql解压tar zxvf mysql-5.6.38.tar.gz
mkdir /usr/local/mysql
mkdir /usr/local/mysql/data
cd mysql-5.6.38/
开始编译安装:cmake
make
make install
修改目录属主权限
chown -R mysql:mysql /usr/local/mysql/data/
chown -R mysql:mysql /usr/local/mysql/
数据库初始化scripts/mysql_install_db –user=mysql –basedir=/usr/local/mysql –datadir=/usr/local/mysql/data/mysql –pid-file=/usr/local/mysql/data/mysql/mysql.pid –tmpdir=/tmp
chown -R mysql:mysql my.cnf
vim my.cnf
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
cd /usr/local/mysql/support-files
./mysql.server start
cd /usr/local/mysql/bin
./mysql -u root -p

php安装wget http://cn2.php.net/distributions/php-5.6.0.tar.xz
xz -d php-5.6.0.tar.xz
tar xf php-5.6.0.tar -C /usr/local/src/
yum install zlib-devel libxml2-devel libjpeg-devel libjpeg-turbo-devel
yum install freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel bz2-devel
cd /usr/local/src/php-5.6.0/
./configure


VPS岛 的文章和资源来自互联网,仅作为参考资料,如果有侵犯版权的资源请尽快联系站长,我们会在24h内删除有争议的资源。丨 转载请注明Nginx Mysql PHP总结
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址