logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

nohup npm start & 后直接关闭shell窗口,进程跟着关闭

nohup npm start & 后直接关闭shell窗口,进程跟着关闭。参考了这篇博客:nohup命令实现退出终端后程序继续后台运行_nsj820的专栏-CSDN博客_nohup 关闭终端在执行了上面的命令后,然后输入任意键回到shell中,使用 exit 命令退出,而不是直接关闭整个shell程序,即可保证程序要后端正常运行。摘上面博客中关键的一段话:在当shell中提示了nohup

#npm#bash#前端
redisTemplate执行lua脚本出错 Missing type id when trying to resolve subtype of [simple type, class java.l

场景:使用 redisTemplate 执行lua脚本,返回一个字符串时,lua脚本执行成功,但是返回下面的错误,这个是因为结果序列化导致的,我们返回的字符串是一个 {} , 无法被 GenericJackson2JsonRedisSerializer 序列化org.springframework.data.redis.serializer.SerializationException: Coul

gitee公开仓库clone出现 fatal: unable to access 的错误

gitee公开仓库clone出现 fatal: unable to access 的错误,这个错误不是因为没有权限,而是因为本地的git可能使用了代理,操作步骤如下:# 查看git对http、https检出是否用了代理git config --global http.proxygit config --global https.proxy# 取消代理git config --global --un

#代理模式#git#github
nginx屏蔽线上某个接口(URL|路由),不给访问

场景:线上某个接口访问频繁导致服务器压力负载过大,需要暂时屏蔽降级进入nginx.conf配置文件文件指定相应的接口URL,直接 return 403; 就好了。记得修改过配置文件后执行 ./nginx -s reload , 使得配置文件修改生效。如果想返回特定的内容,例如json字符串指定URL,返回特定的json文件就可以了...

React FunctionComponent ‘xxx‘ is missing in props validation eslint(react/prop-types)

今天在自己的 React Native 项目里引入了 ESLint 来优化代码风格,通过npx eslint --init指令配置好之后 ESLint 要求为组件声明返回类型:// Missing return type on functionexport default function Transcript(props: TranscriptProps) {const {style} = pr

#react.js
aliyun-oss-react-native 安卓使用报错的问题

两个错误一个是gradle报错没有compile方法的错误,no method compile还有一个是上传的时候出现文件不存在的错误no such file or directory (file:///data/user/0/..... /storage/emulated/0/.....)第一个问题是前者在高版本的gradle中已经由compile 变成了 implementation ,后者则

#android#react native#react.js
redis的发布订阅 PubSub

Redis之PubSub-阿里云开发者社区

#redis#数据库#database
Uni App input 手机键盘回车搜索

然后设置 @confirm 事件,而非 @keyup.enter.native。首先将input的confirm-type设置为search。

#uni-app
git clone unexpected disconnect while reading sideband packet

设置以下参数即可windows:set GIT_TRACE_PACKET=1set GIT_TRACE=1set GIT_CURL_VERBOSE=1unix:export GIT_TRACE_PACKET=1export GIT_TRACE=1export GIT_CURL_VERBOSE=1PowerShell:$env:GIT_TRACE_PACKET=1$env:GIT_TRACE=1$e

#git
react-navigation-stack 让背景变成透明

起先搜到这篇文章:https://github.com/react-navigation/react-navigation/issues/6297将下面配置放到 createStackNavigator 方法的入参作为配置就好了,我用的版本是 2.10.4。{transparentCard: true,transitionConfig: () => ({containerStyle: {ba

#react.js#react native#javascript
    共 74 条
  • 1
  • 2
  • 3
  • 8
  • 请选择