摘要: #include<stdio.h> #include<stdlib.h> #include<malloc.h> #define MAXSIZE 100 typedef struct { int *base; int *top; int stacksize; }SqStack; int InitSqS 阅读全文
posted @ 2020-11-26 13:04 UNkey 阅读(140) 评论(0) 推荐(0)
摘要: ###GNU bash 4.3.1### ###Ubuntu14.04### ###2020/11/19### 1.写一个简单bash脚本,或者叫shell脚本用于测试重定向。文件名为a.sh,不废话,上代码。 #!/bin/bash while ((1)) //此处必须双括号 do echo "h 阅读全文
posted @ 2020-11-21 12:31 UNkey 阅读(349) 评论(0) 推荐(0)
摘要: ###Ubuntu14.04--mysql5.5.6### ###2020/11/14### 常见的MYSQL,MYSQL_RES,MYSQL_ROW结构体等,详见:https://dev.mysql.com/doc/dev/mysql-server/latest/mysql_8h.html 1.转 阅读全文
posted @ 2020-11-14 21:58 UNkey 阅读(510) 评论(0) 推荐(0)
摘要: ###mysql-5.5.6 Ubuntu14.04### ### 2020/11/14### 一、mysql背景知识 1.数据库的访问 mysql -u root -p; 2.数据库版本的查看 select version(); 3.查看mysql中的具体数据库 show databases; 4 阅读全文
posted @ 2020-11-14 10:45 UNkey 阅读(141) 评论(0) 推荐(0)
摘要: ###操作系统Ubuntu14.04### ###mysql5.5.6### ###连接数据库,进行操作### #include <stdio.h> #include <stdlib.h> #include <mysql/mysql.h> MYSQL *mysql_main; MYSQL_RES * 阅读全文
posted @ 2020-11-13 22:05 UNkey 阅读(426) 评论(0) 推荐(0)
摘要: 1.整形数组逆序 -#include<stdio.h> -#include<unistd.h> -#include<stdlib.h> -#define length 20 int a[length]; int main() { int i; printf("init array.\n"); for 阅读全文
posted @ 2020-11-10 21:53 UNkey 阅读(74) 评论(0) 推荐(0)
摘要: -###nginx -version 1.4.6(Ubuntu14.04)###- 查看nginx服务进程信息。 ps -aux | grep 'nginx' 查看nginx服务进程监听端口。 netstat -anp | grep pid ###pid为对应的进程号。 nginx重新加载配置文件( 阅读全文
posted @ 2020-11-08 09:17 UNkey 阅读(137) 评论(0) 推荐(0)