logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

nginx实现静态文件的token认证

思路1.用户请求携带token请求nginx2.nginx反问后台服务token是否有效3.token有效就返回静态资源 无效就返回权限不够普通的nginx无法编写lua脚本我们采用openresty版本可以编写lua脚本lua包需要下载lua-resty-http工具包,地址lua-resty-http,解压后将.lua文件放到 lualib\resty目录下就行。编写nginx的config的

#nginx#lua#运维
通过加速计和地磁传感器实现方位角

定义6个变量接收加速计的x y z和地磁传感器xy zvar ax = 0;var ay = 0;var az = 0;var mx = 0;var my = 0;var mz = 0;开发平台用的是Apicloud所以采用平台的方法获取加速计的参数和地磁传感器的参数地磁传感器function a() {api.startSensor({type: 'magnetic_field'}, fu.

#javascript
hive springboot mybatis-plus

pom文件<dependency><groupId>org.apache.hive</groupId><artifactId>hive-jdbc</artifactId><version>2.1.1</version><exclusions><exc

#hive#spring boot#java
hdfs和yarn安装过程

1.配置虚拟机 IP 名字2.配置免密登录 (ssh-keygen -t rsa 生成两个文件id_rsa(私钥)、id_rsa.pub(公钥))(ssh-copy-id 主机地址 发送公钥到指定主机(自己也要发))3.安装JDK配置JDK环境(官方建议修改配置环境在/etc/profile.d下建立一个文件写自己需要配置的环境)4.安装Hadoop配置hadoop环境5.修改hadoop自定义配

#hadoop#hdfs#mapreduce
到底了