wkt blog

  • About
  • About

Month: September 2019

linux smb 服务端配置

by admin/September 29, 2019/其他

1. 安装 sudo apt-get install samba 2. 修改默认配置 sudo vim /etc/samba/smb.conf global 选项中添加一条: security = user 添加一个选项: [share] comment = share test browseable = yes path = /home/wukt/tools/mount/ read only = no 3. 设置用户 设置一个用户和密码: sudo smbpasswd -a wukt # […]

win7 连接linux smb服务

by admin/September 29, 2019/其他

设置网络安全级别 开始->运行->secpol.msc->本地策略->安全选项->网络安全:LAN管理器身份验证级别->发送 LM 和 NTLMv2 ,如果已协商,则使用NTLMv2 (会话安全 &)->完成设置 执行连接操作 资源管理器右键 添加一个网络位置 网络位置的连接形如: \192.168.1.111\share 按照提示下一步即可。

get the real Client IP in django using nginx

by admin/September 27, 2019/其他

Nginx is proxying the request to Django(maybe uwsgi) for you, so any request that reaches Django will look from localhost. Change nginx config: location / { proxy_pass http://frontends; proxy_pass_header Server; proxy_redirect off; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme […]

django testcase migrate take long time

by admin/September 20, 2019September 20, 2019/其他

use command like python manage.py test youapp –settings=xianxia.settings_test –parallel –keepdb

AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’

by admin/September 2, 2019/其他

解决方法 sudo rm -rf /usr/lib/python2.7/dist-packages/OpenSSL sudo rm -rf /usr/lib/python2.7/dist-packages/pyOpenSSL-0.15.1.egg-info sudo pip install pyopenssl

How to use Let’s Encrypt DNS challenge validation?

by admin/September 2, 2019/其他

Currently it is possible to perform a DNS validation also with the certbot LetsEncrypt client in the manual mode. Automation is also possible (see below). Manual plugin You can either perform a manual verification – with the manual plugin. certbot […]

Recent Posts

  • docker编译arm python
  • Create a virtual serial port that relays data over ssh
  • 在ssh服务器上创建代理, 使所有流量经过ssh客户端
  • linux:将目录里的软连接替换为原始文件
  • IntelliJ Idea: How to open project from the network share

Archives

  • July 2022
  • December 2021
  • September 2021
  • July 2021
  • June 2021
  • December 2020
  • November 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • January 2019
  • December 2018
  • November 2018
  • September 2018
  • August 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • November 2017
  • October 2017
  • September 2017
  • June 2017
  • May 2017
  • April 2017
  • April 2016

友情链接

  • Harttle
  • 张俊杰的微博客
  • 蔣振飞的博客
  • 饲养员的窝
Proudly powered by WordPress | Theme: ShowMe by NEThemes.