会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
独自上路
博客园
首页
新随笔
联系
订阅
管理
2023年11月
在Pycharm中解决pip安装interpreter报错
摘要: 在使用pip 安装第三方模块的时候,报错: WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository i
阅读全文
posted @ 2023-11-09 15:11 独自上路
阅读(705)
评论(0)
推荐(0)
2020年2月
Thinkphp 前端视图输出日期时间戳自动转换为时间格式化年月日
摘要: Thinkphp视图模板中输出日期格式,不同的数据库存储方式处理函数稍有不一样。
阅读全文
posted @ 2020-02-26 20:16 独自上路
阅读(2670)
评论(0)
推荐(0)
2019年12月
树莓派一键安装驱动
摘要: 安装脚本 sudo wget http://fars-robotics.net/install-wifi -O /usr/bin/install-wifi sudo chmod +x /usr/bin/install-wifi 查看说明 sudo install-wifi -h会给出驱动安装提示 安
阅读全文
posted @ 2019-12-31 02:11 独自上路
阅读(2247)
评论(0)
推荐(0)
2015年7月
更改CentOS7的yum更新源
摘要: 1. 备份现有源:mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak2.下载163源wget http://mirrors.163.com/.help/CentOS7-Base-163.repomv C...
阅读全文
posted @ 2015-07-30 03:28 独自上路
阅读(2275)
评论(2)
推荐(0)
解决虚拟机VMware安装CentOS7.0识别不到网卡
摘要: 由于Vmware虚拟网卡和linux兼容问题导致驱动无法正常安装,默认的网卡类型不兼容.解决方法找到我们的Vmware虚拟机文件夹,将VMware 虚拟机配置 (.vmx),追加一条设置我们网卡类型ethernet0.virtualDev = "e1000"原因VMware 都在虚拟客户机中提供的是...
阅读全文
posted @ 2015-07-30 02:19 独自上路
阅读(1649)
评论(0)
推荐(0)
安装centos后无法引导启动windows7的解决方法
摘要: 在电脑Windows7系统上安装Centos7,安装后找不到Windows7引导菜单。原因:因为CentOS 7已采用新式的grub2系统,所以需要进入/boot/grub2目录后使用vi编辑grub.cfg文件。解决方法一:修改Centos 7的Grub2引导,添加Windows的启动项1 1.s...
阅读全文
posted @ 2015-07-30 01:03 独自上路
阅读(9277)
评论(1)
推荐(1)
Centos允许root远程登录设置
摘要: 以root权限执行 vi /etc/ssh/sshd_config将#PermitRootLogin yes这一行的“#”去掉,修改为:PermitRootLogin yes重启ssh服务/etc/rc.d/init.d/sshdrestart(root执行)
阅读全文
posted @ 2015-07-14 15:01 独自上路
阅读(20673)
评论(0)
推荐(1)
Ubuntu nginx 配置404错误页面
摘要: 1.创建自己的404.html页面;2.更改nginx.conf在http定义区域加入:/etc/nginx# vim nginx.conf 下添加 fastcgi_intercept_errors on; http{ ...... fastcgi_intercept_errors o...
阅读全文
posted @ 2015-07-04 01:43 独自上路
阅读(1674)
评论(0)
推荐(0)
2015年6月
通过PHP自带的$_SERVER判断 手机访问网站自动跳转到手机版
摘要: 需要有PC版网站和移动版网站,当手机访问域名的时候,通过PHP自带的$_SERVER判断浏览设备并跳转到移动版页面。如果是PC电脑打开网址,则不跳转直接访问pc版。1
阅读全文
posted @ 2015-06-19 18:02 独自上路
阅读(4453)
评论(0)
推荐(0)
2015年4月
php使用$_SERVER["REMOTE_ADDR"]获取访问IP地址
摘要: php获取访问IP地址
阅读全文
posted @ 2015-04-18 02:26 独自上路
阅读(1768)
评论(0)
推荐(0)
公告