
linux
文章平均质量分 51
我爱吃煎饼~
这个作者很懒,什么都没留下…
展开
-
linux vim下快速查找
查找是在esc模式下使用的在esc模式下输入: /save_path 回车不要忘了冒号!!!!/ ? 都可以查找:/save_path:?save_path原创 2018-05-02 14:21:42 · 884 阅读 · 0 评论 -
linux yum安装mysql8.0
首先下载包https://dev.mysql.com/downloads/repo/yum/mysql80-community-release-el7-1.noarch.rpmrpm -Uvh mysql80-community-release-el7-1.noarch.rpmyum install mysql-community-server...service mysqld...原创 2019-01-17 12:32:09 · 942 阅读 · 0 评论 -
php redis配置主从复制
首先把主从服务器redis.conf daemonize no改成yes redis会在后台运行把主服务器 redis.conf bind 127.0.0.1 改为0.0.0.0从服务器:添加slaveof 【主ip】 【主端口】 ...原创 2019-01-11 15:11:49 · 494 阅读 · 0 评论 -
linux nginx配置 pathinfo模式
我是给二级域名配置的pathinfo模式所以要改的是二级域名的配置.conf把location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_n...原创 2018-05-29 11:43:22 · 1256 阅读 · 0 评论 -
nginx配置二级域名
先在阿里云解析一个二级域名 控制台-》域名与万网-》域名 解析-》添加解析 填上主机记录 www 记录值 你的ip 其他默认就ok 现在编辑nginx.conf /usr/local/nginx/conf/nginx.conf在http中加上一句 include /usr/local/nginx/conf/sites/*...原创 2018-05-24 11:47:25 · 1014 阅读 · 0 评论 -
linux 配置php环境变量
vim /etc/profile//加上export PATH=$PATH:/usr/local/php/bin保存退出source /etc/profilephp -v原创 2018-05-25 16:18:23 · 4839 阅读 · 0 评论 -
linux 配置nginx 自启
vim /etc/init.d/nginx//直接复制#!/bin/bash# nginx Startup script for the Nginx HTTP Server# it is v.0.0.2 version.# chkconfig: - 85 15# description: Nginx is a high-performance web and proxy server.# It h...原创 2018-05-25 16:04:55 · 285 阅读 · 0 评论 -
linux 配置mysql 自启
//复制mysql.server 改为mysqldcp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld//赋权限chmod 755 /etc/init.d/mysqldchkconfig mysqld onchkconfig原创 2018-05-25 16:02:24 · 300 阅读 · 0 评论 -
linux 配置php自启
vim /etc/init.d/php-fpm//下面复制即可 不要以为有# 就不需要#!/bin/sh# chkconfig: 2345 15 95# description: PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation \# with some additional fe...原创 2018-05-25 15:59:38 · 275 阅读 · 0 评论 -
linux 配置redis自启
redis源码里其实已经提供了一个初始化脚本,位置在/usr/redis/utils/redis_init_script复制到/etc/init.d/redis 重命名 给权限然后 vim /etc/rc.local把service redis start 放最后 :wq 保存退出也可以利用chkconfig 配置redis自启chkconfig redis o...原创 2019-01-14 10:57:17 · 355 阅读 · 0 评论