xml地图|网站地图|网站标签 [设为首页] [加入收藏]

drupal快速部署

来源:http://www.ccidsi.com 作者:集成介绍 人气:182 发布时间:2019-06-26
摘要:安装Mysql5 yum install mysql mysql-server chkconfig --levels 235 mysqld on 系统:Windows 7 64位系统 任何本着从简原则来做,能yum/rpm的,坚决不手工业编写翻译 :) 本次布署情状基于CentOS 6.3 x86_64系统。
  1. 安装Mysql5

    yum install mysql mysql-server chkconfig --levels 235 mysqld on

系统:Windows 7 64位系统

任何本着从简原则来做,能yum/rpm的,坚决不手工业编写翻译 :)
本次布署情状基于CentOS 6.3 x86_64系统。

启动

设置此前,首先下载软件:

  1. 盘算干活

    #更新yum[[email protected] ~]# yum -y update[[email protected] ~]# yum install libaio-devel.x86_64#drupal 8.0亟待用到curl模块[[email protected] ~]# yum install curl-devel[[email protected] ~]# yum -y install libpng-devel libjpeg-devel freetype-devel gmp-devel libxml2-devel

  2. 安装nginx

    #安装nginx官方yum源包[[email protected] ~]# rpm -ivh  protected] ~]# yum -y install nginx[[email protected] ~]# chkconfig nginx on

  3. 安装php-fpm

    #安装php yum源包[[email protected] ~]# rpm -ivh rpm -Uvh  protected] ~]# yum -y install php54w

  4. 配置nginx php
    /etc/nginx/nginx.conf 配置文件能够绝不做别的修改。
    编排 /etc/nginx/conf.d/default.conf,以本站为例,配置文件如下:

    server { listen 80; server_name imysql.com .imysql.com; root /data/www/imysql.cn/; index index.php index.htm index.html index.shtml; error_page 404 /page_not_found; error_page 500 502 503 504 /page_not_found; location ~ /.ht { deny all; } if ($fastcgi_script_name ~ ../.php) { return 403; } location / { if (!-e $request_filename) { rewrite ^/(.)$ /index.php?q=$1 last; } } location ~ .php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ ..(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ ..(js|css)?$ { expires 1h; } location ^~ /sites/default/files/imagecache/ { index index.php index.html; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 last; break; } }}

/etc/init.d/mysqld start

Nginx:

上述配置包含了nginx虚拟主机的配备,以及drupal的rewrite规则配置,轻巧急速。

询问是还是不是运转

PHP Stable PHP 5.6.26:

  1. 起始测试
    老是修改完配置文件后,都记得施行上面包车型地铁通令测试配置文件正确性:

    [[email protected] ~]# /etc/init.d/nginx configtestnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successful

netstat -tap | grep mysql

mysql:

认同配置文件准确后,实行上面包车型地铁下令重载nginx,使其收效:

没辙运营mysql时

先是步:在D盘营造文件夹Nginx php Mysql,路线为:D:Nginx php Mysql

[[email protected] ~]# /etc/init.d/nginx reload#或者restart[[email protected] ~]# /etc/init.d/nginx restart
vi /etc/my.cnf

第二步:安装Nginx,安装目录为:D:Nginx php Mysqlnginx

马到成功 :)

#skip networking

  1.打开D:Nginx php Mysqlnginx目录,运行该公文夹下的nginx.exe

:) 此次布置情况基于CentOS 6.3 x86_64体系。 0. 盘算工作 #更新yum[[email protected] ~]# yum -y updat...

重启mysql

  2.测试是不是运行nginx。展开浏览器访问 to nginx!”,出现的辨证已经运行成功了。

/etc/init.d/mysqld restart

若运营不成功,查看是不是端口被并吞。

设置mysql密码:

    安装PHP,安装目录为:D:Nginx php Mysqlphp

方法一:

    安装mySQL,安装目录为:D:Nginx php Mysqlmysql

mysqladmin -uroot password

第三步:修改Nginx的conf文件:目录为D:Nginx php Mysqlnginxconf

主意二(设置根用户密码)(推荐):

文本名字为:nginx.conf 

mysql_secure_installation
  1. 去掉worker_processes前的#号,开启一个进程

  2. 添加events

  3. 设置http->设置server->支持php

    #user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root d:/Nginx php Mysql/nginx/html; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ .php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }}

系统活动运维mysql

  测试nginx是还是不是安装成功

办法一(推荐,fedora新四管理服务的授命):

图片 1

systemctl enable mysqld.service  systemctl start mysqld.service

第四步:修改php下php.ini-development文件,将文件名修改为php.ini,找开php.ini:

本文由68399皇家赌场发布于集成介绍,转载请注明出处:drupal快速部署

关键词: 68399皇家赌场 环境 Nginx Windows

上一篇:this实现基于内容的推荐

下一篇:没有了

最火资讯