分类 电脑 下的文章

深圳移动宽带DNS服务器 - 120.196.165.24 将 url.cn 返回到 127.0.0.1 的IP地址

昨晚我家里人说电脑QQ打不开QQ上转发的微信公众号文章,当时夜了,所以我敷衍说,“明天可能自动会好的”。

今天,家里人还是打不开。然后我远程一看,浏览器提示无法打开页面。查看浏览器里显示的网址,是url.cn的,是腾讯公司常用来跳转网址的短域名。尝试ping url.cn的域名,返回127.0.0.1的应答。再查看本机的hosts文件内容,正常。查看当前的dns服务器地址是120.196.165.24和211.136.192.6,是从路由器自动获取到的。又查路由器的配置信息,dns是从宽带拨号里自动获取到的。120.196.165.24对应的rDNS值是ns6.gd.cnmobile.net,看来移动宽带自动分配的dns服务器工作不正常。所以,最后是将电脑的IPv4配置信息中的dns服务器手动更改为阿里云的公共dns服务器223.5.5.5后就可以打开url.cn的跳转网址了。

C:\>nslookup url.cn 120.196.165.24
服务器:  ns6.gd.cnmobile.net
Address:  120.196.165.24

DNS request timed out.
    timeout was 2 seconds.
名称:    url.cn
Address:  ::1

以管理员账户登录到Windows 10 添加日文微软输入法

问题:非管理员的普通用户在“控制面板”添加日文微软输入法后,只能输入英文字母abc,不能输入日文平假字あいさつと。

尝试:以管理员账户登录后,在“控制面板”添加日文微软输入法后,会提示下载语言包,完成下载后(显示“已安装语言包”),非管理员账户也能输入日文平假字なに了。

参考:https://www.bilibili.com/read/cv3562323/

ja-ime-1.png

腾讯服务器 - iredmail - 安装问题 - python web.py

环境:腾讯云香港机,iredmail 1.3.1,centos7

问题:iredmail安装完成后,在浏览器里访问 iredadmin 提示 Internal Server Error 出错。

过程:查看 /var/log/message 内容,

Jul 22 13:35:30 mail uwsgi: *** Operational MODE: preforking ***
Jul 22 13:35:30 mail uwsgi: Traceback (most recent call last):
Jul 22 13:35:30 mail uwsgi:  File "iredadmin.py", line 9, in <module>
Jul 22 13:35:30 mail uwsgi:
Jul 22 13:35:30 mail uwsgi: from libs import iredbase
Jul 22 13:35:30 mail uwsgi:  File "/opt/www/iRedAdmin-1.0/libs/iredbase.py", line 7, in <module>
Jul 22 13:35:30 mail uwsgi:
Jul 22 13:35:30 mail uwsgi: import web
Jul 22 13:35:30 mail uwsgi: ImportError
Jul 22 13:35:30 mail uwsgi: :
Jul 22 13:35:30 mail uwsgi: No module named web
Jul 22 13:35:30 mail uwsgi:
Jul 22 13:35:30 mail uwsgi: unable to load app 0 (mountpoint='') (callable not found or import error)
Jul 22 13:35:30 mail uwsgi: *** no app loaded. going in full dynamic mode ***

回查安装过程中,有相关的错误提示内容:

Complete!
[ INFO ] Installing required Python-3 modules with pip3: web.py>=0.51 web.py>=0.51
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting web.py>=0.51
  The repository located at mirrors.tencentyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host mirrors.tencentyun.com'.
  Could not find a version that satisfies the requirement web.py>=0.51 (from versions: )
No matching distribution found for web.py>=0.51
[ INFO ] Installing required Python-2 modules with pip2: web.py>=0.51 more-itertools==5.0.0 web.py>=0.51 more-itertools==5.0.0
Collecting web.py>=0.51
  The repository located at mirrors.tencentyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host mirrors.tencentyun.com'.
  Could not find a version that satisfies the requirement web.py>=0.51 (from versions: )
No matching distribution found for web.py>=0.51
You are using pip version 8.1.2, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

那么可尝试手工安装python的相关包,
pip3 install web.py>=0.51
pip2 install web.py>=0.51 more-itertools==5.0.0

然后再重启相应服务(iredamin和iredpad等),或重启系统后测试,可以正常登录到iredadmin进行管理了。

参考:https://forum.iredmail.org/topic17082-internal-server-error-iredadmin.html

宝塔面板 - 安装 php 7.3 - can't find evp.h

现象:通过宝塔面板,在“软件商店”里安装php7.3,失败,提示 can't find evp.h。

尝试:查找 evp.h 文件,发现有两个地方有,/usr/include/openssl/evp.h 和 /usr/local/src/openssl-1.1.1c/include/openssl/evp.h 。查看 /www/server/panel/install/php.sh 里的内容,php7.3安装的编译参数有 --with-openssl=/usr/local/openssl 。尝试将usr/local/src/openssl-1.1.1c/include/openssl/ 里的编译原文件复制到 /usr/local/openssl/include/openssl/ 后,再安装就成功了。

参考:

centos8 - xampp linux 5.5 - use a 32 bit compatibility library for your system - libnsl

问题:在centos8 64位系统里安装xampp for linux php 5.5,提示 “XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.”

尝试:可能是php使用了libnsl.so的模块,导致php加载出错。yum install libnsl 可安装 libnsl 后再次尝试。

参考:https://forums.centos.org/viewtopic.php?t=71785