- 博客(17)
- 资源 (12)
- 收藏
- 关注
原创 python pip安装
命令行安装:python3:wget https://bootstrap.pypa.io/get-pip.pypython get-pip.pypython2.7wget https://bootstrap.pypa.io/pip/2.7/get-pip.pypython get-pip.py.1python源码安装第三方包下载第三方库源码包,解压进入源码目录python setup.py install...
2021-08-08 17:59:06
131
原创 python pip安装
命令行安装:python3:wget https://bootstrap.pypa.io/get-pip.pypython get-pip.pypython2.7wget https://bootstrap.pypa.io/pip/2.7/get-pip.pypython get-pip.py.1python源码安装第三方包下载第三方库源码包,解压进入源码目录python setup.py install...
2021-07-31 14:20:32
211
原创 CEPH14.2.13版本部署示例
############################CEPH容器下载######################################################docker pull ceph/ceph:v14.2.4docker pull ceph/daemon:master-03e923f-nautilus-centos-7-x86_64############################CEPH部署参考##################################
2021-03-06 16:04:54
544
原创 centos7.8上部署keepalived实现VIP漂移-未完待续
yum installkeepalived -y 虚IP漂移实现yum install httpd -y 测试虚IP漂移node0配置:echo "212-node0" > /var/www/html/index.html[root@node0 ~]# cat /etc/keepalived/keepalived.conf ! Configuration File for keepalivedglobal_defs { notification_email { ...
2021-02-04 21:56:49
495
2
原创 epoll demo
#include<stdio.h>#include<arpa/inet.h>#include<sys/eventoll.h>#include<unistd.h>#include<ctype.h>#define MAXLEN 1024#define SERV_PORT 8000#define MAX_OPEN_FD 1024int main(int argc,char *argv[]){ int connfd = 0;.
2020-08-06 23:48:02
445
原创 内核通用链表-双向循环链表
参考文档:https://blog.youkuaiyun.com/liebao_han/article/details/53956609?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1(整体讲解通俗易懂,但这个文档.
2020-05-09 11:54:58
310
原创 git 常用命令
Git status 查看文件状态Git add hello.php 特定文件Git add . 增加/修改提交Git add -u 修改/删除提交Git add -A 增加/修改/删除全部提交Git commit -m "提交描述"Git push 推送本地仓库到GitHub仓库Git pull 拉取GitHub仓库内容G...
2020-03-22 20:34:02
154
转载 命令行选项解析函数(C语言):getopt()和getopt_long()
https://www.cnblogs.com/chenliyang/p/6633739.htmloptoptargoptindargv[optind]
2019-10-13 18:26:17
2850
原创 C语言 倒计时程序
#include <stdio.h>#include <stdlib.h>int main(){ printf("remain time :\n"); int a=15; while(--a>=0) { printf("%5d\r",a); fflush(stdout); sleep(1); } }只是实现了简单的倒计...
2019-09-12 00:57:40
5233
原创 std:lock_guard 不能用在 condition_variable wait中
1, std:lock_guard、unique_lock、condition_variable 一般使用实例#include <condition_variable>#include <mutex>#include <future>#include <iostream>bool readyFlag; std::mutex read...
2019-06-30 17:55:07
1222
2
原创 c++ boost 编译链接
g++ -std=c++11 -I /usr/local/boost/include/ -L /usr/local/boost/lib/ -Wl,-rpath-link=/usr/local/boost/lib -Wl,-rpath=/usr/local/boost/lib -lboost_thread -lpthread test.cpp -o test
2019-06-10 23:31:55
1036
原创 Linux VMware共享目录在/mnt/hgfs下不显示
1,执行命令vmhgfs-fuse .host:/ /mnt/hgfs2,命令reboot则失效,在启动脚本中开机启动3,将vmhgfs-fuse .host:/ /mnt/hgfs 命令写入shell脚本 hgfs_my ,注意不加.sh 将hgfs_my放入/etc/rc.d/init.d/目录下,并加可执行权限4 , 添加执行链接ln -s ...
2019-06-09 12:34:56
3775
原创 centos 6.10 安装 gcc 7.3
checking for suffix of object files... configure: error: in `/root/gcc-4.7.2/x86_64-unknown-linux-gnu/libgcc':configure: error: cannot compute suffix of object files: cannot compileSee `config.log' ...
2019-05-24 20:26:16
2112
原创 terminate called after throwing an instance of 'std::cad_alloc' what():std::bad_alloc
内存不够:1,确认系统已占用内存是否正常,排除数据量过大导致的问题,此时系统内存不足导致 std::bad_alloc内存剩余:1,确认接口调用时,调用和背调接口的的参数是否一致,动态库库调用中若不一致,编译链接通过,但执行可能导致 std::bad_alloc2,确认是否使用vector,vector超容量时会重新申请二倍内存,因为vector会将老的一块内存,完全拷贝到另一块连...
2019-02-01 18:22:33
54930
4
原创 C++ STL Vector与List区别
第二点和第三点在海量数据应用时重点关注,会影响内存利用率和存储性能 1,vector内存是连续的,list链表内存不连续2,vector会预分配内存,capacity为vector实际内存大小,list内存分配为实际数据大小3,vector内存达到capacity容量时将vector数组全部拷贝到新的capacity大小的内存区域,会比list多进行内存拷贝4,vecto...
2019-01-20 23:00:56
2049
mysql 5.1.59 server and client rpm
2014-06-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人