随笔分类 -  服务器

摘要:输入命令nginx -t # nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is succe 阅读全文
posted @ 2016-08-14 12:19 hereim 阅读(1555) 评论(0) 推荐(0)
摘要:我的安装文件为:mysql-5.7.9-osx10.10-x86_64.dmg卸载方法:sudo rm /usr/local/mysqlsudo rm -rf /usr/local/mysql*sudo rm -rf /Library/StartupItems/MySQLCOMsudo rm -rf... 阅读全文
posted @ 2015-11-07 18:07 hereim 阅读(338) 评论(0) 推荐(0)
摘要:原因:macbook系统自带的 PHP5.5 的 GD 库有问题。解决方法:在终端运行:curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5等待安装,然后就ok了。 阅读全文
posted @ 2015-11-07 17:44 hereim 阅读(371) 评论(0) 推荐(0)
摘要:运行sudo apt-get install php5-curl即可安装php cURL扩展。开始运行失败,后来根据提示运行sudo apt-get update命令后,再重新执行sudo apt-get install php5-curl就ok了。 阅读全文
posted @ 2015-08-26 15:22 hereim 阅读(300) 评论(0) 推荐(0)
摘要:登录到服务器执行lsb_release -a即可列出所有版本信息。 阅读全文
posted @ 2014-10-20 10:22 hereim 阅读(225) 评论(0) 推荐(0)
摘要:首先,修改/opt/lampp/etc/httpd.conf文件,开启虚拟主机功能找到配置项# Virtual hosts# Include etc/extra/httpd-vhosts.conf修改为# Virtual hostsInclude etc/extra/httpd-vhosts.con... 阅读全文
posted @ 2014-08-26 11:16 hereim 阅读(552) 评论(0) 推荐(0)
摘要:出现原因:PHP版本6中 取消了get_magic_quotes_gpc()函数,首先这个函数的作用:是为了防止sql注入,当该函数打开时将所有单引号,双引号,反斜线和空字符转会自动转为含有反斜线的溢出字符。PHP6取消magic_quotes机制,那么就是默认转义一些特殊字符来防止sql注入。可以... 阅读全文
posted @ 2014-05-27 07:37 hereim 阅读(1307) 评论(0) 推荐(0)
摘要:PHP 提示 Creating default object from empty value 的问题,一般是由于PHP版升级的原因,PHP 5.4 以上的版本一般会报这个错误;我的解决方法:找到报错的地方,初始化对象$_obj = new stdClass();同理,数组也需要初始化$_arr =... 阅读全文
posted @ 2014-05-22 17:19 hereim 阅读(1096) 评论(0) 推荐(0)
摘要:系统环境:Ubuntu 64位1.下载xampp-linux-x64-1.8.3-4-installer.run安装文件下载地址:https://www.apachefriends.org/zh_cn/index.html2.安装,我把下载好的文件放到了 /opt/目录下,然后运行下面命令cd /o... 阅读全文
posted @ 2014-05-21 16:44 hereim 阅读(950) 评论(0) 推荐(0)