background picture of the home page

Think in Code

nginx配置代理

nginx配置 TCP转发代理 stream { # 统一放置,方便管理 # include tcpConf/*.conf; # 访问8080/tcp将会直接转发到2324/tcp upstream tcp_proxy {

thumbnail of the cover of the post

CentOS 配置网卡

root用户执行 dhclient 会自动分配一个ip,假如是 192.268.31.100 sudo vi /etc/sysconfig/network-scripts/ifcfg-ens*修改网卡配置 BOOTPROTO = static (默认是dhcp) ONBOOT = yes (默认是n

thumbnail of the cover of the post

Linux 修改/查看文件描述符限制

文件描述符 查看进程id pidof processName 更改文件描述符限制(临时) ulimit -n 10240 更改文件描述符限制(永久,不一定是设置的值) vi /etc/security/limits.conf * soft nofile 10240 * hard nofile 102

thumbnail of the cover of the post

C++调用QML代码

C++调用QML代码 QML调用C++代码参考链接 C++调用QML实际上就是通过 QML 对象的指针去访问QML对象的属性和方法 只要获取到QML对象的指针,接下来就和普通C++代码调用一样 QML中的类,其实都是继承与QObject,Qt类在构建的过程中是有对象树,每个对象都有父对象和子对象,调

thumbnail of the cover of the post

VPS搭建v2ray ss

搭建v2ray ss ubuntu上可能无效,CentOS上测试有效 v2ray bash <(curl -s -L https://git.io/v2ray.sh) 如果提示 curl: command not found ,那是因为你的小鸡没装 Curl ubuntu/debian 系统安装

thumbnail of the cover of the post

VS 停靠或拆分窗口崩溃的解决方法

VS 停靠或拆分窗口崩溃的解决方法 今天使用 VS2015 突然遇到了拆分窗口 IDE 直接崩掉的情况,查询一番后找到了除卸载 KB4598301 补丁以外的办法: 目前 VS2019 可以通过最新更新解决,VS2015 可以通过修改%InstallRoot%\Common7\IDE\devenv.

thumbnail of the cover of the post