摘要: 在使用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:12 独自上路 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Thinkphp视图模板中输出日期格式,不同的数据库存储方式处理函数稍有不一样。 阅读全文
posted @ 2020-02-26 20:16 独自上路 阅读(2432) 评论(0) 推荐(0) 编辑
摘要: 安装脚本 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 独自上路 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: 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 独自上路 阅读(2255) 评论(2) 推荐(0) 编辑
摘要: 由于Vmware虚拟网卡和linux兼容问题导致驱动无法正常安装,默认的网卡类型不兼容.解决方法找到我们的Vmware虚拟机文件夹,将VMware 虚拟机配置 (.vmx),追加一条设置我们网卡类型ethernet0.virtualDev = "e1000"原因VMware 都在虚拟客户机中提供的是... 阅读全文
posted @ 2015-07-30 02:19 独自上路 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: 在电脑Windows7系统上安装Centos7,安装后找不到Windows7引导菜单。原因:因为CentOS 7已采用新式的grub2系统,所以需要进入/boot/grub2目录后使用vi编辑grub.cfg文件。解决方法一:修改Centos 7的Grub2引导,添加Windows的启动项1 1.s... 阅读全文
posted @ 2015-07-30 01:03 独自上路 阅读(9206) 评论(1) 推荐(1) 编辑
摘要: 以root权限执行 vi /etc/ssh/sshd_config将#PermitRootLogin yes这一行的“#”去掉,修改为:PermitRootLogin yes重启ssh服务/etc/rc.d/init.d/sshdrestart(root执行) 阅读全文
posted @ 2015-07-14 15:01 独自上路 阅读(20567) 评论(0) 推荐(1) 编辑
摘要: 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 独自上路 阅读(1629) 评论(0) 推荐(0) 编辑
摘要: 需要有PC版网站和移动版网站,当手机访问域名的时候,通过PHP自带的$_SERVER判断浏览设备并跳转到移动版页面。如果是PC电脑打开网址,则不跳转直接访问pc版。1 阅读全文
posted @ 2015-06-19 18:02 独自上路 阅读(4430) 评论(0) 推荐(0) 编辑
摘要: php获取访问IP地址 阅读全文
posted @ 2015-04-18 02:26 独自上路 阅读(1719) 评论(0) 推荐(0) 编辑