上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: cd /soft/git 下载最新版本git: wget https://github.com/git/git/archive/v2.26.2.tar.gz tar -zxvf v2.26.2.tar.gz 编译安装之前,需要安装所需的依赖,命令如下: yum -y install curl-dev 阅读全文
posted @ 2020-04-23 16:37 离岸少年 阅读(131) 评论(0) 推荐(0)
摘要: 检查是否安装了SVN: rpm -aq subversion 使用yum安装: yum -y install subversion 查看是否启动成功 ps -ef|grep svn 则安装成功。 创建版本库: https://www.cnblogs.com/jackzhuo/p/11888042.h 阅读全文
posted @ 2020-04-23 15:50 离岸少年 阅读(131) 评论(0) 推荐(0)
摘要: 我已经安装了php7.4,现在想再安装一个7.1,则 mkdir -p /lnmp/php71 wget https://www.php.net/distributions/php-7.1.18.tar.gz tar -zxvf php-7.1.18.tar.gz cd php-7.1.18 ./c 阅读全文
posted @ 2020-04-23 15:23 离岸少年 阅读(4334) 评论(0) 推荐(0)
摘要: #查看启动情况 ps -ef|grep nginx #查看是否启动成功 curl 192.168.0.177 #查看端口情况 netstat -ano|grep 80 修改nginx配置(我的nginx是安装在/lnmp/nginx上的): vim /lnmp/nginx/conf/nginx.co 阅读全文
posted @ 2020-04-23 14:16 离岸少年 阅读(2086) 评论(0) 推荐(0)
摘要: 和设置nginx的步骤差不多。 vim /etc/init.d/php-fpm 添加以下命令行: #!/bin/sh # chkconfig: 2345 15 95 # description: PHP-FPM (FastCGI Process Manager) is an alternative 阅读全文
posted @ 2020-04-23 11:14 离岸少年 阅读(1277) 评论(0) 推荐(0)
摘要: 在linux系统的/etc/init.d/目录下创建nginx文件 vim /etc/init.d/nginx 在脚本中添加以下命令(内容主要参考官方文档) #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # 阅读全文
posted @ 2020-04-23 09:53 离岸少年 阅读(1606) 评论(0) 推荐(0)
摘要: 1.准备 a.新建目录,/lnmp/php7、/lnmp/nginx: mkdir -p /lnmp/php7 mkdir /lnmp/nginx b.安装依赖 yum install gcc gcc-c++ automake pcre pcre-devel zlip zlib-devel open 阅读全文
posted @ 2020-04-22 17:34 离岸少年 阅读(513) 评论(0) 推荐(0)
摘要: 一般APP,用户第一次登陆需要注册,后面登陆只需要验证账号密码,更新token 关于token,APP中大多数接口都需要用到 token需要有唯一属性,过期时间等性质。以下是关于token生成的算法: <?php /* * 生成TOKEN * */ public static function se 阅读全文
posted @ 2020-04-02 11:20 离岸少年 阅读(782) 评论(0) 推荐(0)
摘要: 单例模式可节省资源,使资源不浪费。 具体实现方式如下(基于TP5): <?php namespace app\common\lib; use ali\top\TopClient; use ali\top\request\AlibabaAliqinFcSmsNumSendRequest; use th 阅读全文
posted @ 2020-04-01 15:26 离岸少年 阅读(182) 评论(0) 推荐(0)
摘要: JS: 引入: <script src="https://cdn.bootcss.com/crypto-js/3.1.9-1/crypto-js.min.js"></script> <script src="https://cdn.bootcss.com/crypto-js/3.1.9-1/aes. 阅读全文
posted @ 2020-03-05 15:06 离岸少年 阅读(800) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页