生成sqlite3静态库

download source from: https://www.sqlite.org/2021/sqlite-amalgamation-3340100.zip gcc shell.c sqlite3.c -lpthread -ldl -c ar rcs sqlite3.a sqlite3.o

12/27/2020 03:33 axiao

docker

check errors for docker stack services not started: docker service ps --no-trunc {serviceName} https://stackoverflow.com/questions/45372848/docker-swarm-how-to-find-out-why-service-cant-start

11/05/2020 09:48 axiao

移远mqtt

open network: AT+QMTOPEN=0,"116.6.82.227",1883 connect: AT+QMTCONN=0,"clientExample" disconnect: AT+QMTDISC=0 publish message: AT+QMTPUB=0,0,0,0,"topic/pub" CTRL+Z HEX:

07/29/2020 09:15 axiao

windows文件共享

在文件夹属性选项卡配置Everyone或特定用户的读写权限 进入高级共享设置 打开文件和打印机共享 所有网络部分关机密码保护共享 TCP端口:445

07/20/2020 06:50 axiao

linux查看磁盘空间占用情况

显示文件系统使用概况: df -h 列出文件夹和文件大小: du -xh -d 1 | sort -h -x 排除挂载的其他文件系统 -h 以人类可读的格式显示文件大小 -d 1 只输出在当前文件夹之下一级内的文件夹或文件 sort -h 通过人类可读的大小列排序(正序)

07/19/2020 06:09 admin

ubuntu install ruby

apt-get install ruby-dev gcc libffi-dev make

08/27/2019 08:34 axiao

postgresql

常用命令 启动:systemctl start postgresql@10-main 停止:systemctl stop postgresql@10-main 常用目录与文件: 数据目录 /var/lib/postgresql/10/main postgresql配置文件 /etc/postgresql/10/main/postgresql.conf 建立备用服务器

07/18/2019 08:45 axiao

什么是shell

shell提供unix系统的接口。它收集收入并且基于输入执行程序。当程序完成执行,它将显示该程序的输出。 shell是一个可以运行命令,程序和shell脚本的环境。有不同风格的shell,就像有不同风格的操作系统一样。每种风格的shell有一套它自己的识别的命令和方法。 Bouren shell通常在大多数Unix版本上安装为bin/sh,因此,它是编写可以在不同版本的linux上使用的脚

07/13/2019 13:07 admin

ubuntu安装goland

curl https://download-cf.jetbrains.com/go/goland-2019.1.3.tar.gz -o goland-2019.1.3.tar.gz sudo tar xfz goland-2019.1.3.tar.gz -C /opt/ cd /opt/GoLand-2019.1.3/bin ./goland.sh

07/10/2019 14:59 admin

linux允许ssh远程密码方式登录root账户

linux允许ssh远程密码方式登录root账户: 某些系统版本没有自带ssh服务器,若未安装直接通过包管理器安装 openssh-server。 vim /etc/ssh/sshd_config 将PermitRootLogin值设为yes,PasswordAuthentication值设为yes。 service sshd restart 重启ssh服务器即可。

07/10/2019 12:45 admin

sudo执行某些命令提示未找到怎么解决

sudo visudo -f /etc/sudoers.d/custom Defaults secure_path = <path> 这里的path当使用sudo时会获取它 注意: 如果方便切换至root用户,不推荐使用此方式。

07/10/2019 10:04 admin

centos安装virtualbox

curl https://download.virtualbox.org/virtualbox/6.0.8/VirtualBox-6.0-6.0.8_130520_el7-1.x86_64.rpm -o VirtualBox-6.0-6.0.8_130520_el7-1.x86_64.rpm yum install VirtualBox-6.0-6.0.8_130520_el7-1.x86

07/06/2019 02:20 admin

golang安装

curl https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz --output go1.12.6.linux-amd64.tar.gz tar -C /usr/local -xzf go1.12.6.linux-amd64.tar.gz vim /etc/profile.d/custom.sh 末尾添加export PATH=$P

07/04/2019 09:11 admin

更新linux服务器时间

yum install ntpntpdate time.apple.com

07/04/2019 07:52 admin

nginx之websocket

使用反向代理时,需要显式传递必要的header到代理的服务器,nginx配置示例: location /ws { proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Con

07/01/2019 14:38 admin

冒泡排序

冒泡排序是最简单的排序算法,通过重复交换顺序有误的相邻元素来工作。该算法是一种比较排序,以较小或较大元素冒泡到列表顶部的方式命名。 array := [] int { 3 , 5 , 2 , 4 , 1 , 78 , 242 , -10 } fmt.Println(array) for i := 0 ; i < len (array); i

06/29/2019 11:52 admin

golang发送邮件

进入qq邮箱的设置开启IMAP/SMTP服务,获取授权码 实现代码参考: https://gist.github.com/chrisgillis/10888032

06/29/2019 09:25 admin

命令大全

linux go get -v github.com/xxx export 查看全部环境变量 export xxx 查看单个环境变量 netstat -tulnp 查看端口使用情况 chmod +rwx <path> 设置文件权限 curl <url> --output <ouput path> 下载文件 window rd /s

06/16/2019 04:09 admin
Loading...