centos 6.9 快速部署lnmp网站
来源:互联网 发布:js获取相同class的值 编辑:程序博客网 时间:2024/05/21 17:09
安装软件
yum install -y php php-mysql php-fpm nginx mysql mysql-server
mysql配置
/etc/my.cnf[client]port=3306[mysql]default-character-set=utf8[mysqld]skip-name-resolveport=3306character-set-server=utf8default-storage-engine=MyISAM#支持 INNODB 引擎模式。修改为 default-storage-engine=INNODB 即可。#如果 INNODB 模式如果不能启动,删除data目录下ib开头的日志文件重新启动。sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"max_connections=512query_cache_size=0table_cache=256tmp_table_size=18Mthread_cache_size=8myisam_max_sort_file_size=64Gmyisam_sort_buffer_size=35Mkey_buffer_size=25Mread_buffer_size=64Kread_rnd_buffer_size=256Ksort_buffer_size=256Kinnodb_additional_mem_pool_size=2Minnodb_flush_log_at_trx_commit=1innodb_log_buffer_size=1Minnodb_buffer_pool_size=47Minnodb_log_file_size=24Minnodb_thread_concurrency=8
- 建立账号
grant all privileges on *.* to root@'%' identified by 'xxx';grant all privileges on *.* to root@'localhost' identified by 'xxx';flush privileges;
nginx配置
server { listen 80 default; server_name www.xxx.com; client_max_body_size 4M; client_body_buffer_size 128k; root /opt/www/www.xxx.com; index index.php; location ~ \.php$ { #try_files $uri $uri/ /index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param REDIRECT_STATUS 200; # fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass 127.0.0.1:9000; }}
php-fpm配置
nothing configure
启动
/etc/init.d/php-fpm restart/etc/init.d/mysqld restart/etc/init.d/nginx restartchkconfig php-fpm onchkconfig mysqld onchkconfig nginx on
阅读全文
0 0
- centos 6.9 快速部署lnmp网站
- centos下LNMP网站应用环境的部署
- Centos 7 lnmp部署脚本
- LNMP环境快速搭建 + Wiki部署
- centos下快速搭建LNMP开发环境
- 搭建lnmp环境,部署php动态网站
- LNMP部署网站 访问php文件 404
- 实现基于LNMP的电子商务网站部署
- LNMP部署
- Centos 6.5 快速部署FTP
- Centos 6.5 Nginx 快速部署
- centos 6.5 lnmp环境部署一些二次修改事项
- CentOS-6.8-x64部署LNMP架构Blog博客平台
- CentOS Apache 部署静态网站
- HP gen8 服务器快速搭建Centos 7 + lnmp 测试环境
- 在我的lnmp环境上部署我的网站
- 搬瓦工VPS+LNMP+Wordpress快速搭建个人网站
- centOS 5.4 快速部署cacti监控
- Lumen 5.4 中 Http options类型请求返回405的问题
- nginx
- Scala练习-二叉树查找
- UnityShader入门精要学习笔记(二):数学知识
- 自定义Button,Button的父类控件如果有Press按下事件的时候的就return
- centos 6.9 快速部署lnmp网站
- Spring之Bean实现了ApplicationContextAware等aware接口,对于setApplicationContext方法执行时间点的说明
- Flex 布局
- Dataguard网络优化调整
- 五大存储模型关系模型、键值存储、文档存储、列式存储、图形数据库
- EasyUI—右键关闭选项卡
- 设计模式简介
- BZOJ 1087: [SCOI2005]互不侵犯King 状态压缩 题解
- IAR下STM32F103 Boot + APP的编程