树莓派lnmp搭建
来源:互联网 发布:云计算课程有什么 编辑:程序博客网 时间:2024/06/05 10:33
参考1
sudo apt-get updatesudo apt-get install nginx php5-fpm php5-cli php5-curl php5-gd php5-mcrypt php5-mysql php5-cgi mysql-server
修改配置文件,/etc/nginx/nginx.conf
worker_processes 1; worker_connections 256; gzip on;gzip_disable "msie6"; gzip_vary on;gzip_proxied any;gzip_comp_level 6;gzip_buffers 16 8k;gzip_http_version 1.1;gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
参考2
sudo nano /etc/nginx/sites-available/default
server { listen 80; server_name raspiweb.dyndns.org; root /var/www/; access_log /var/log/nginx/localhost.access.log; #error_page 404 /404.html; if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; } location / { index index.html index.htm index.php default.html default.htm default.php; } location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ { access_log off; expires 1d; } location ~ .*\.php(\/.*)*$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }}
阅读全文
0 0
- 树莓派搭建LNMP环境
- 树莓派lnmp搭建
- lnmp搭建
- lnmp搭建
- lnmp搭建
- LNMP搭建
- LNMP搭建
- LNMP搭建
- LNMP搭建
- LNMP 搭建
- LNMP搭建
- lnmp搭建
- LNMP搭建
- Debian(树莓派)下搭建LNMP
- LNMP环境搭建
- LNMP环境搭建
- Virtualbox搭建LNMP
- LNMP环境搭建
- service mysql start出错,mysql启动不了,解决mysql: unrecognized service错误
- spring boot + redis 实现session共享
- Java消息中间件学习笔记六 -- Spring JMS理论
- bootstrap 让文字显示在响应式图片上
- linux-系统延迟及定时机制
- 树莓派lnmp搭建
- JS设计模式之发布订阅模式
- 连续总结第二十一天
- LeetCode:60. Permutation Sequence
- 洛谷P1084 疫情控制(NOIp2012)
- typedef 定义数组类型用法
- 3、Oracle查询语句-from-字句
- bootstrap 大坑,大坑
- [Unity][PHOTON][UNET][SOCKET][Android]PC-Android建立聊天室ChatRoom交互通讯