centOS7手动安装lnmp环境问题总结
来源:互联网 发布:大数据主要来源于 编辑:程序博客网 时间:2024/06/04 18:22
php7:/usr/bin/php //执行文件目录/usr/lib64/php //php已安装的库文件,32位为/usr/lib/php/etc/php.d //php所有扩展库的配置文件/etc/php.ini //php自身的配置文件/usr/share/php //暂时不知/usr/include/php//phpize添加的扩展库源码位置/usr/share/man/man1/php.1.gz //php帮助文档php-fpm:/usr/sbin/php-fpm /etc/php-fpm.d //存放php-fpm的配置文件。(socket的配置)/etc/php-fpm.conf //php-fpm的源配置文件/usr/share/man/man8/php-fpm.8.gznginx:/usr/sbin/nginx /etc/nginx //包含nginx.conf,fastCgi_params等文件,还有conf.d文件夹,里面为nginx.conf的子配置文件,可在里面建vhost文件夹以建立多个站点/usr/share/nginx //存放nginx的模块信息?默认的站点目录在该目录下的html目录里nginx运行会产生nginx.pid文件,默认在/run/nginx.pidphp-fpm运行时会产生php-fpm.pid文件,默认在/run/php-fpm/php-fpm.pid以tcp协议的9000端口访问时,不产生文件,以socket方式访问时会生成www.sock文件放在/run/php-fpm目录下。可将这些文件路径调整至/var/run目录下,或着新建网站目录放在任意位置日志文件默认会存放在/run/log下,可调整,并可与pid文件保存在同一目录www.sock为nginx与php-fpm连通的介质,故nginx.conf中与php-fpm.conf中的配置要保持一致,同时。生成的socket文件要属于www用户并给与其读写权限,否则会产生502错误。 对于根据源码安装的,就比较方便了,因为可以将其全部存放在同一目录,通常是/usr/local目录下,这样管理起来比较方便,所以强烈推荐源码安装!redis安装:下载源码压缩包,解压至/usr/local/目录,进redis目录。执行make编译,会在./src下生成6个可执行文件。然后执行make install,会将这些可执行文件复制到/usr/local/bin目录下,redis-benchmarkredis-check-aofredis-check-rdbredis-cliredis-sentinel -> redis-serverredis-server####全信息为:-rwxr-xr-x. 1 root root 2431696 10月 2 22:55 redis-benchmark-rwxr-xr-x. 1 root root 25157 10月 2 22:55 redis-check-aof-rwxr-xr-x. 1 root root 5178454 10月 2 22:55 redis-check-rdb-rwxr-xr-x. 1 root root 2584403 10月 2 22:55 redis-clilrwxrwxrwx. 1 root root 12 10月 2 22:55 redis-sentinel -> redis-server-rwxr-xr-x. 1 root root 5178454 10月 2 22:55 redis-server再执行./utils/isntall_server.sh执行配置引导脚本,生成配置信息如下:Selected config:Port : 6379Config file : /etc/redis/6379.confLog file : /var/log/redis_6379.logData dir : /var/lib/redis/6379Executable : /usr/local/bin/redis-serverCli Executable : /usr/local/bin/redis-cli并将redis配置为跟随系统启动。服务名为redis_6379netconsole 0:关 1:关 2:关 3:关 4:关 5:关 6:关network 0:关 1:关 2:开 3:开 4:开 5:开 6:关nginx 0:关 1:关 2:开 3:开 4:开 5:开 6:关redis_6379 0:关 1:关 2:开 3:开 4:开 5:开 6:关
systemctl与chkconfig:systemctl管理系统服务,chkconfig管理用户自定义的服务当用户通过systemctl禁用或启用某一非系统服务时,会重定向到chkconfig中执行off或者on.同样,当通过chkconfig修改系统服务时会重定向到systemctl中执行相应的命令
0 0
- centOS7手动安装lnmp环境问题总结
- 安装LNMP环境,centos7
- CentOS7安装LNMP环境
- CentOS7安装LNMP环境
- centos7下安装lnmp环境
- CentOS7安装LNMP+Mongodb环境
- centos7下的lnmp环境安装
- Docker CentOS7 LNMP环境yum方式安装
- CentOS7 一键安装LNMP环境
- linux centos7 基于LNMP环境安装redis
- centos7安装完成后配置LNMP环境
- 手动配置lnmp环境
- CentOS7 LNMP环境搭建
- centos7搭建lnmp环境
- CentOS7-搭建LNMP环境
- CentOS7 LNMP环境搭建
- centos7上装lnmp总结
- centos7之lnmp安装
- 汇编语言(Assembly Language)——面向机器的程序设计语言
- LeetCode[208] Implement Trie (Prefix Tree)
- Toast的用法大全
- c语言练习
- 单源最短路径(Dijkstra)(C++)
- centOS7手动安装lnmp环境问题总结
- spring基础知识总结----AOP代理模式的实现
- Python的from import 和 import 的区别
- 本地配置yum源
- 开发艺术探索--Android的View事件体系
- 自己编写的MVC框架实践(一)
- linux 系统下修改Mysql默认字符集
- mybatis的学习探讨(中 )
- Linux系统巡检脚本