
Linux
文章平均质量分 55
商商-77
Keep moving!!!
展开
-
Ubuntu-Server 环境笔记
将 /etc/apt/sources.list 中的地址全部替换成国内地址参考。原创 2022-09-24 10:07:02 · 737 阅读 · 0 评论 -
frp内网穿透服务搭建
部署内网穿透服务,来实现通过公网IP访问内网机器原创 2022-09-24 09:35:17 · 2683 阅读 · 0 评论 -
CentOS安装MySQL指定版本
CentOS安装MySQL指定版本原创 2022-06-27 21:57:52 · 781 阅读 · 2 评论 -
Ubuntu常用配置
配置国内镜像源https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/# cat /etc/apt/sources.list选择你的ubuntu版本: # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic mai...原创 2020-01-09 10:08:54 · 202 阅读 · 0 评论 -
判断QQ是否在线
html> body> ggygygygybr> td>a href="http://wpa.qq.com/msgrd?V=1&Uin=445013022&Site=悠悠鸟影视论坛&Menu=yes" target="_blank">img src="http://wpa.qq.com/pa?p=1:445013022:4" border="0" alt="QQ" />44原创 2014-08-10 10:03:43 · 765 阅读 · 0 评论 -
非阻塞型通信进程
#include"stdio.h" #include"sys/types.h" #include"unistd.h" #include"signal.h" void sigint_handler(int sig) { printf("recevied SIGINT signal successed!\n"); return; } void main() {原创 2014-08-10 10:03:24 · 714 阅读 · 0 评论 -
汇编语言编程问题
编程将内存单元赋值,分别将8位无符号数0-255赋值到物理地址1A302H到1A401H内存空间....求高手指点本文出自 “阿凡达” 博客,请务必保留此出处http://shamrock.blog.51cto.com/2079212/708524原创 2014-08-10 10:04:16 · 425 阅读 · 0 评论 -
汇编语言编程问题
使用汇编语言编程计算1*2+3*4+5*6+...+49*50=?给出编程本文出自 “阿凡达” 博客,请务必保留此出处http://shamrock.blog.51cto.com/2079212/708525原创 2014-08-10 10:04:18 · 449 阅读 · 0 评论 -
Linux学习笔记
安装完Ubuntu后忽然意识到没有设置root密码,不知道密码自然就无法进入根用户下。到网上搜了一下,原来是这麽回事。Ubuntu的默认root密码是随机的,即每次开机都有一个新的root密码。我们可以在终端输入命令 sudo passwd,然后输入当前用户的密码,enter,终端会提示我们输入新的密码并确认,此时的密码就是root新密码。修改成功后,输入命令 su root,再输入新的密码就ok原创 2016-02-04 11:05:18 · 363 阅读 · 0 评论 -
信号量应用
#include #include #include #define SEM_PATH "/home/my_sem" #define max_tries 3 int semid; main() { int flag1,flag2,key,i,init_ok,tmperrno; struct semid_ds sem_info; struct seminfo sem_原创 2014-08-10 10:04:32 · 457 阅读 · 0 评论 -
汇编语言统计输入中各字符出现的次数
DATA SEGMENT BUFFER DB 100 DB ? DB 100 DUP(?) CHARS DB 'INPUT:$' DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA MAIN PROC FAR PUSH DS SUB AX,AX PUSH AX MOV AX,DATA原创 2014-08-10 10:04:21 · 3952 阅读 · 1 评论 -
Linux创建线程
#include"stdio.h" #include"pthread.h" #include"unistd.h" static shdata=4; void *create(void *arg) { printf("New pthread......\n"); printf("shared data=%d \n",shdata); return(void *原创 2014-08-10 10:03:39 · 435 阅读 · 0 评论 -
汇编步骤
.可以搜下集成汇编环境啊,像“轻松汇编”,辰灿汇编语言集成开发环境, MasmEditor这些。集成环境里面汇编调试这些都比较方便。下面这个操作非常简单。 2.如果masm5的目录是 d:\masm5 ,你的源代码是d:\11.asm 则有: 打开CMD(命令提示符,在程序 附件里面) 输入: "d:\masm5\masm.exe" d:\11.asm 该命令完成汇原创 2014-08-10 10:04:23 · 570 阅读 · 0 评论 -
消息队列实现进程间通信
服务器 #include"sys/types.h" #include"sys/msg.h" #include"sys/ipc.h" #define MSGKEY 75 struct msgform{ long mtype; char mtext[1000]; }msg; void server() { int msgid; msgid=msgget( MS原创 2014-08-10 10:04:28 · 518 阅读 · 0 评论 -
Linux消息队列应用
#include"sys/types.h" #include "sys/msg.h" #include "unistd.h" #include"stdio.h" void msg_stat(int,struct msqid_ds); int main() { int gflags,sflags,rflags; key_t key; int msgid;原创 2014-08-10 10:03:17 · 533 阅读 · 0 评论 -
Linux创建线程
#include"stdio.h" #include"unistd.h" #include"stdlib.h" #include"pthread.h" #include"semaphore.h" #include"string.h" void *thread_function(void *arg); pthread_mutex_t work_mutex; #define WORK原创 2014-08-10 10:03:37 · 469 阅读 · 0 评论 -
信号量实现进程同步
#include #include #include #include #include #include #include #include #define MAXSEM 5 /*声明三个信号量ID*/ int fullid; int emptyid; int mutxid; int main(){原创 2014-08-10 10:04:30 · 1094 阅读 · 0 评论 -
共享主存实现进程间通信
写程序 #include"sys/ipc.h" #include"sys/shm.h" #include"sys/types.h" #include"unistd.h" #include"stdio.h" #include"string.h" typedef struct{ char name[4]; int age; }people; main(in原创 2014-08-10 10:04:34 · 835 阅读 · 0 评论 -
阻塞型通信程序
#include"stdio.h" #include"unistd.h" #include"sys/types.h" #include"signal.h" #include"wait.h" void sigchld_handler(int sig) { pid_t pid; int status; for(;(pid=waitpid(-1,&status原创 2014-08-10 10:03:26 · 1038 阅读 · 0 评论 -
网页动态显示时间
html> body> tr> td height="17" colspan="3" align="right" bordercolor="#FFFFFF"> div align="left"> 当前时间: span id=localtime class="STYLE3">span> script type="text/javascript"> function showLoca原创 2014-08-10 10:03:48 · 622 阅读 · 0 评论