//下载php wget http://php.net/get/php-7.2.8.tar.gz/from/a/mirror //解压 tar -zxvf php-7.2.8.tar.gz //进入目录 cd php-7.2.8 //选择目录,编译安装 ./configure --prefix=/u ...
分类:
Web程序 时间:
2018-08-01 19:38:24
阅读次数:
170
chmod权限 使用命令"man 2 chmod"学习chmod函数? int chmod(const char *path, mode_t mode);– 参数*path:文件路径。– 参数mode:直接使用数字即可。和前面命令中chmod 777 xxx 中的777 这个参数含义类似,也可以使用 ...
分类:
其他好文 时间:
2018-08-01 16:02:44
阅读次数:
165
cacti 的 “FATAL: Cannot connect to MySQL server on ‘localhost‘” 错误
t01ecdf087f8cd7c928.jpg?
[root@nagios cacti]# php poller.php
FATAL: Cannot connect to MySQL server on ‘localhost‘. Please make sure you have specified a valid MySQL database name in ‘include/config.php‘
当mysql中的所有配置和cacti的config.php都正确,却还是出现该错误时,那就是mysql套接字的原因了~ cacti会自动的去查找/var/lib/mysql/mysql.sock 该套接字,但是如果是源码安装的mysql,未指定套接字位置时,套接字的位置为/tmp/mysql.sock,由于cacti未找到/var/lib/mysql/mysql.sock,所以显示的是“Cannot connect to MySQL ser
分类:
数据库 时间:
2018-08-01 15:22:43
阅读次数:
210
问题描述:输入命令scp a.txt root@192.168.0.105:/tmp(将当前目录下的文件a.txt复制到服务器IP为192.168.0.105的root用户的/tmp/目录下),结果会提示如下错误。 解决方案: 1.使用命令vim /etc/ssh/sshd_config,对文件ss ...
分类:
其他好文 时间:
2018-07-30 18:07:40
阅读次数:
160
在接收raw_input方法后,判断接收到的字符串是否为数字 例如: str = raw_input("please input the number:") if str.isdigit(): 为True表示输入的所有字符都是数字,否则,不是全部为数字 str为字符串str.isalnum() 所有 ...
分类:
编程语言 时间:
2018-07-29 14:19:42
阅读次数:
149
1. fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access r ...
分类:
移动开发 时间:
2018-07-29 10:45:19
阅读次数:
1185
#!/bin/bashprint_usage(){printf"pleaseenteraninteper\n"}read-p"Pleaseinputfirstnumber:"firstnumwhile["echo"$firstnum"|sed-r‘s#[^0-9]##g‘"!="$firstn
分类:
系统相关 时间:
2018-07-28 18:56:16
阅读次数:
142
The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room ...
分类:
其他好文 时间:
2018-07-28 18:19:26
阅读次数:
142
Step 1 Information 信息 Please read the following important information before continuing 继续之前,请阅读以下重要信息 Step 2 Select Destination Location 选择安装位置 Step ...
分类:
其他好文 时间:
2018-07-28 11:57:36
阅读次数:
174
错误原因:Selenium 已经弃用 PhantomJS ,请使用火狐或者谷歌无界面浏览器。 解决方法:selenium的版本问题,使用 pip show selenium 显示默认安装的是3.13.1版本 卸载当前版本 pip uninstall selenium 卸载之后重新安装selenium ...
分类:
Web程序 时间:
2018-07-27 22:27:16
阅读次数:
491