Loading

邢栋博客

“服务器笔记“

windows下apache支持php-nts版本

帮同学的windows服务装个禅道,登录进去才发现只有apache,没有php,也没有mysql 装完php和mysql,发现访问php文件直接展示没有解析,于是就开始配置apache解析php的模块 好多年windows+apache这种组合了,搞了半天才解决 LoadModule fcgid_module modules/mod_fcgid.so <IfModule fcgid_module> FcgidInitialEnv PHPRC "F:/Web/PHPServer/Bin/PHP" ...

Mac 升级系统后 ssh 报错

报错如下: Unable to negotiate with 10.10.10.100 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss 解决办法: cd ~/.ssh vim config Host * ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p IdentityFile ~/.ssh/id_rsa IdentitiesOnly yes HostkeyAlgorithms +ssh-rsa Pubk...

centos7 执行启动邮件服务报错-systemctl start postfix

错误信息如下 Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details. 解决办法 修改 /etc/postfix/main.cf的设置 inet_protocols = ipv4 inet_interfaces = all

最完美 ThinkPHP(tp) 的 Nginx 配置文件

系统 LSB Version: :....(太长了) Distributor ID: CentOS Description: CentOS Linux release 8.2.2004 (Core) Release: 8.2.2004 Codename: Core 使用官网给的没有生效 location / { // …..省略部分代码 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; } } 于是 s...

centos下openresty+lua入门实践

安装openresty 1、安装依赖开发库 yum install pcre-devel openssl-devel gcc curl postgresql-devel 2、下载 + 编译 + 安装 wget https://openresty.org/download/openresty-1.19.3.1.tar.gz 我刚开始先下载的1.19.3.1版本,但是在编译时增加nginx_upstream_check_module模块,一直报错,错误信息如下 ./configure: error: the ngx_http_upstream_check_m...

docker安装es的中文分词器ik插件

两种安装方式 1、use elasticsearch-plugin to install docker exec -it elasticsearch /bin/sh cd bin/ elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.1.1/elasticsearch-analysis-ik-7.1.1.zip 执行完毕后 elasticsearch-plugin list #查看 elasticsear...

Mac下使用clion调试redis源码

1、先从github上下载源码 1.1搜索https://github.com/search?q=redis+clion 1.2最好是选择别人配置好CMakeLists.txt的,不然自己配置也很麻烦 2、下载完成,开始配置 //选择一个想要调试的版本进行下载 wget https://github.com/htw0056/redis-3.0-annotated-cmake-in-clion/archive/master.zip //解压 unzip redis-3.0-annotated-cmake-in-clion-master.zip //重命名+...

Mac下安装gdb证书

1、先按照csdn上面的这边文章进行添加证书,名称设为 code_gdbsign https://blog.csdn.net/LU_ZHAO/article/details/104803399/ 2、假如你的mac系统大于Mac OS X 10.14,则 vim gdb-entitlement.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/...

Mac系统实现git命令补全

1、先安装brew,安装过的可以忽略 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2、安装bash-completion brew install bash-completion 3、系统配置 下载此文件 https://github.com/git/git/blob/master/contrib/completion/git-completion.bash 然后复制到家目录 cp ...

mac命令行终端显示当前git分支

vim ~/.bash_profile,写入以下内容 function git_branch { branch="`git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //"`" if [ "${branch}" != "" ];then if [ "${branch}" = "(no branch)" ];then branch="(`git rev-parse --short HEAD`...)" fi echo " ($branch)" fi...