博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年2月3日

摘要: 基础优化脚本 1 #!/bin/bash 2 3 # 基础优化脚本 4 5 # no.0 mirrors and epel change 开始可能没有wget命令 6 yum install -y wget 7 /bin/mv /etc/yum.repos.d/CentOS-Base.repo /e 阅读全文

posted @ 2021-02-03 14:57 PorkerFace 阅读(85) 评论(0) 推荐(0) 编辑

2020年6月8日

摘要: 查看服务:chkconfig --list 制作服务 #!/bin/sh # chkconfig: 345 99 10 # description: Auto-starts tomcat # /etc/init.d/tomcatd # Tomcat auto-start # Source funct 阅读全文

posted @ 2020-06-08 16:56 PorkerFace 阅读(316) 评论(0) 推荐(0) 编辑

2020年6月5日

摘要: 1 //package com.tony.util; 2 import java.io.*; 3 import java.net.*; 4 5 /** 6 * UDP客户端程序,用于对服务端发送数据,并接收服务端的回应信息. 7 * Title: SyslogClient 8 * Descripti 阅读全文

posted @ 2020-06-05 10:58 PorkerFace 阅读(1327) 评论(0) 推荐(0) 编辑

2020年3月2日

摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/time.h> #include <signal.h> #include <pthread.h> typedef void (*timer_callbac 阅读全文

posted @ 2020-03-02 17:50 PorkerFace 阅读(420) 评论(0) 推荐(0) 编辑

2020年2月21日

摘要: bool isVaildIp(const char *ip) { int dots = 0; /*字符.的个数*/ int setions = 0; /*ip每一部分总和(0-255)*/ if (NULL == ip || *ip == '.') { /*排除输入参数为NULL, 或者一个字符为' 阅读全文

posted @ 2020-02-21 12:03 PorkerFace 阅读(427) 评论(0) 推荐(0) 编辑

2020年1月17日

摘要: 此教程适用于使用U盘恢复介质来恢复Surface Go二合一设备系统SurfaceGo_BMR_45_64_1.011.2.zip 大致两个步骤 一、制作U盘恢复介质 下载适用于自己平板的恢复镜像文件,同型号同配置不一定同用一款恢复镜像文件。 解压下载完的Surface平板Win 10恢复镜像zip 阅读全文

posted @ 2020-01-17 16:19 PorkerFace 阅读(5274) 评论(0) 推荐(0) 编辑

2019年12月23日

摘要: /* head.h */#ifndef __SUM_H__ #define __SUM_H__ #ifdef __cplusplus extern "C" { #endif int add(int a, int b); int sub(int a, int b); #ifdef __cplusplu 阅读全文

posted @ 2019-12-23 19:50 PorkerFace 阅读(287) 评论(0) 推荐(0) 编辑

2019年12月12日

摘要: inotify监听文件并通知 static int inotify_dbfile(const char *spFromRule, const char *spDevFile) { int inotifyFd; int watchfd1; int watchfd2; char buf[BUF_LEN] 阅读全文

posted @ 2019-12-12 21:01 PorkerFace 阅读(241) 评论(0) 推荐(0) 编辑

摘要: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> typedef struct _Ateacher { int id; char *name; char **stu; }Teacher_t; 阅读全文

posted @ 2019-12-12 20:58 PorkerFace 阅读(86) 评论(0) 推荐(0) 编辑

2019年11月12日

摘要: 安装在虚拟机上的CentOS7的时间分为系统时间和硬件时间。二者都修改,重启系统(init 6 )才会永久生效。 修改步骤如下查看当前系统时间 date修改当前系统时间 date -s "2018-2-22 19:10:30查看硬件时间 hwclock --show修改硬件时间 hwclock -- 阅读全文

posted @ 2019-11-12 10:39 PorkerFace 阅读(140) 评论(0) 推荐(0) 编辑