Quantcast
Channel: 乐于学习,勤于思考
Browsing latest articles
Browse All 16 View Live

linux查看和修改PATH环境变量的方法

查看PATH:echo $PATH 以添加mongodb server为列 修改方法一: export PATH=/usr/local/mongodb/bin:$PATH //配置完后可以通过echo $PATH查看配置结果。 生效方法:立即生效 有效期限:临时改变,只能在当前的终端窗口中有效,当前窗口关闭后就会恢复原有的path配置 用户局限:仅对当前用户 修改方法二:...

View Article



python3.6 使用pip 出现 TLS/SSL问题?

今天在在centos 6.9上 安装python3.6后 使用pip 安装模块,提示如下错误: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 解决方法: 1、安装 openssl openssl-devel (openssl-dev)...

View Article

screen 断开 screen -r 不能进入断开的会话

screen意外断开后screen -r *** 命令不能进入断开的会话,出现如下提示: There is a screen on: 11103.*** (Attached) There is no screen to be resumed matching ***. 这个时候可以用下面这条命令进入: screen -D -r *** *** 为你挂起的实例名!

View Article

Selenium+PhantomJS使用时报错原因及解决方案

今天在使用selenium+PhantomJS动态抓取网页时,出现如下报错信息: UserWarning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead warnings.warn(‘Selenium support for...

View Article

CentOS7使用firewalld打开关闭防火墙与端口

1、firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld...

View Article


CI框架学习之–隐藏入口文件-index.php

一般CI框架第一次使用时: 原地址为: http://127.0.0.1/CI/index.php/hello/index 隐藏入口文件后只需要把地址写成即可: http://127.0.0.1/CI/hello/index 第一步、需要开启Apache的 rewrite 功能 Apache\conf\httpd.conf 修改,然后重启Apache.修改内容如下:...

View Article
Browsing latest articles
Browse All 16 View Live




Latest Images