2018年8月3日
摘要: 1:进入到/lib/systemd/system/目录 cd /lib/systemd/system/ 2:创建php-fpm.service文件,并编辑 vim php-fpm.service 内容入下: [Unit] Description=The PHP FastCGI Process Manager After=syslog.target network.target [Servi... 阅读全文
posted @ 2018-08-03 14:22 泪滴 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 1:进入到/lib/systemd/system/目录 cd /lib/systemd/system/ 2:创建nginx.service文件,并编辑 vim nginx.service 内容入下: [Unit] #描述服务 Description=nginx service #描述服务类别 After=network.target #服务运行参数的设置 [Service] #是后... 阅读全文
posted @ 2018-08-03 14:07 泪滴 阅读(157) 评论(0) 推荐(0) 编辑
摘要: CentOS 7下使用yum安装MySQL5.7.20 最简单的 #先停掉mysql进程 pkill -9 mysqld #卸载 rpm -qa|grep -i mysql yum -y remove mysql-community-client-5.6.38-2.el7.x86_64 #安装 cd /usr/local #下载 wget http://repo.mysql.com/mysq... 阅读全文
posted @ 2018-08-03 13:55 泪滴 阅读(90) 评论(0) 推荐(0) 编辑
  2018年7月23日
摘要: /** * 批量下载简历 */ public function batch() { $str = $this->_param['str']; $arr = json_decode($str, 1); $time = date('YmdHis'); $filedir = ROOT_PATH . "p... 阅读全文
posted @ 2018-07-23 11:48 泪滴 阅读(316) 评论(0) 推荐(0) 编辑
摘要: /** * excel下载。单个职位下的求职者 */ public function test() { $deliveryIds = trim($this->_param['deliveryIds'], ','); if(empty($deliveryIds)){ return json($this-... 阅读全文
posted @ 2018-07-23 11:46 泪滴 阅读(114) 评论(0) 推荐(0) 编辑
  2018年7月11日
摘要: ctrl + l :清空编辑区 git add . //把文件添加到暂存区git commit -a -m "备注" //把暂存区的文件提交到仓库git status //查看仓库状态git diff readme.txt //查看修改了什么git log //查看commit信息,可用于版本回退 阅读全文
posted @ 2018-07-11 14:59 泪滴 阅读(153) 评论(0) 推荐(0) 编辑
  2018年5月24日
摘要: server { # 服务端口 listen 80; # 指定ip或域名 多个域名之间用空格分开 server_name www.ktvll.com; # 默认首页 index index.html index.htm index.php; # 网站根目录 root /alidata/www/default; ... 阅读全文
posted @ 2018-05-24 10:28 泪滴 阅读(169) 评论(0) 推荐(0) 编辑
摘要: # Nginx进程以哪个用户身份运行和用户组 user www www; # 开启的进程数 ( 一般为CPU的核数或auto ) worker_processes auto; # 全局错误日志位置 # 日志级别有debug info notice warn error crit # debug最详细 crit最少最简单 error_log /alidata/log/nginx/err... 阅读全文
posted @ 2018-05-24 10:27 泪滴 阅读(127) 评论(0) 推荐(0) 编辑
摘要: nginx 配置全站 https 1 . 在nginx目录下创建cert目录 拷贝下面2个文件到cert目录下 证书文件: xxx.pem 证书私钥; xxx..key 2 . 修改虚拟主机配置文件 server { //--- 80 端口改为 443 ssl # listen 80; listen 443 ssl; //--- 80 端口改为 443... 阅读全文
posted @ 2018-05-24 10:14 泪滴 阅读(108) 评论(0) 推荐(0) 编辑
  2018年4月12日
摘要: xhprof 的安装 cd ~ git clone https://github.com/longxinH/xhprof 安装 cd xhprof/extension/ /usr/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --enable-xhprof make && make insta... 阅读全文
posted @ 2018-04-12 15:15 泪滴 阅读(154) 评论(0) 推荐(0) 编辑