
后端
热爱生活热爱你
文章设置vip,还请支持!如果您实在想阅读,请留言私信,看到后单发你哦~!
展开
-
boost 共享内存上创建一个复杂的map
此仅为记录参考:参考文档1:用boost在共享内存上创建一个复杂的map_phonzia的博客-优快云博客参考文档2:使用Boost将stl map放入共享内存_涟漪、的博客-优快云博客原创 2022-03-18 10:21:35 · 426 阅读 · 0 评论 -
Ubuntu c++ 简单的多线程 例子
CMakefile.txt 需要添加 ,位置不好在最后面set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")方式1:#include <thread>调用:CTestThread mtest;thread m_thread_test(mtest);CTestThread.hclass CTestThread {public: void operator()() { start(); }...原创 2022-03-03 17:41:48 · 1017 阅读 · 0 评论 -
Ubuntu c++ 使用redis clion工具
安装hiredis过hiredis.h接口来实现,目前只能在Linux环境使用。apt-get install libhiredis-devCMakeLists.txt需要填写include_directories(/usr/local/include/hiredis)link_directories(/usr/local/lib)link_libraries(hiredis)这部分一定要在add_executable 上面如果有问题说明库libhiredis.so位置不对找不到.原创 2022-03-03 17:15:07 · 691 阅读 · 0 评论 -
Ubuntu20 安装redis服务
安装 sudo apt-get install redis-server -y修改配置文件配置文件位置 /etc/redis/redis.conf#设置端口 port#设置密码 requirepass启用远程登录的话 注释掉 bind 127.0.0.1protected-mode 修改为 no配置文件修改完成后一定要重启下redis服务,通过下面的命令,如果还是不行可以尝试重启服务器,但是确保防火墙为关闭或者端口为(6379)放行# 启动 redis 服务service...原创 2022-03-03 17:05:46 · 1230 阅读 · 0 评论 -
Centos7下 phpstudy composer的简单调整
curl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composercomposer config -g repo.packagist composer https://mirrors.aliyun.com/composer/composer require phpoffice/phpspreadsheet 按照excel助手composer remove phpoffice/phpsp原创 2022-01-23 17:02:58 · 321 阅读 · 0 评论 -
Centos7 设置ntp时间同步服务
设置ntp时间同步服务1、安装ntpyum install -y ntp2、设置NTP服务开机启动chkconfig ntpd onservice nptd start查看防火墙状态firewall-cmd --state停止firewallsystemctl stop firewalld.service禁止firewall开机启动systemctl disable firewalld.service禁用: systemctl stop firewalld开放端口fire.原创 2022-01-23 16:57:59 · 1242 阅读 · 0 评论 -
Centos7 thinkphp6 安装 swoole 小皮面板环境
环境准备:centos 7thinkphp6nginx小皮面板本想着根据官方指引https://www.kancloud.cn/manual/thinkphp6_0/1359700完成安装,结果中间波折挺多!1、安装小皮面板https://www.xp.cn/linux.html2、小皮面板创建网站、数据库一些3、安装最新版thinkphp ,根据手册即可https://www.kancloud.cn/manual/thinkphp6_0/1037481,我安装的是t..原创 2020-06-04 17:07:22 · 4163 阅读 · 0 评论