2019年2月18日

摘要: 今天准备在我的ubuntu上安装curl玩一玩,在ubuntu上安装curl可以参考:curl 安装 安装成功之后,我使用: 判断curl是否安装成功时,发现报错,curl无法使用: 解决方法: 1:找到curl安装地址: 可以知道curl地址为/usr/local/bin目录下 2:修改/etc/ 阅读全文
posted @ 2019-02-18 16:02 huaweichenai 阅读(368) 评论(0) 推荐(0) 编辑

2019年2月15日

摘要: 使用lnmp一键安装后,lnmp的安装主要软件及配置文件默认目录如下(lnmp安装): 1:nginx: Nginx 目录: /usr/local/nginx/ Nginx日志目录:/home/wwwlogs/ 添加的虚拟主机配置文件所在目录:/usr/local/nginx/conf/vhost/ 阅读全文
posted @ 2019-02-15 14:47 huaweichenai 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 一:设置root用户密码 在ubuntu中root用户的密码是随机的,所以需要我们自己起设置root用户的密码 在终端命令行中执行 这时候会提示你输入当前用户密码,输入成功之后,下面输入的就是root用户的密码 这时候root用户密码就设置成功了,使用su root,然后输入刚刚输入的root用户密 阅读全文
posted @ 2019-02-15 14:46 huaweichenai 阅读(1654) 评论(0) 推荐(0) 编辑
摘要: 一:无法使用xshell远程连接ubuntu服务器 1:安装openssh-server 2:配置ssh服务(这一步是为了使root用户可以使用远程连接) 将/etc/ssh/sshd_config文件中的PermitRootLogin prohibit-password注释掉,并加上PermitR 阅读全文
posted @ 2019-02-15 14:43 huaweichenai 阅读(632) 评论(0) 推荐(0) 编辑

2019年1月29日

摘要: 一:安装FTP 输入vsftpd -v判断是否安装成功 启动/停止/重启FTP 二:添加ftp用户 1:创建ftp用户并设置密码 2:配置该用户仅能通过 FTP 访问 三:FTP配置 1:FTP的配置文件在/etc/vsftpd/vsftpd.conf,找到以下配置并修改或添加 2:配置可以登录ft 阅读全文
posted @ 2019-01-29 16:10 huaweichenai 阅读(262) 评论(0) 推荐(0) 编辑

2019年1月15日

摘要: 在网上有很多的根据ip地址获取实际地址的教程 他们给了很多的现成接口,例: 新浪:'http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=' . $ip 淘宝:"http://ip.taobao.com/service/get 阅读全文
posted @ 2019-01-15 14:53 huaweichenai 阅读(297) 评论(0) 推荐(0) 编辑

2019年1月11日

摘要: 前提: 你需要收github和Packagist账号 github地址:https://github.com Packagist地址:https://packagist.org 一:将你的composer包代码上传到github上 如何上传代码到github上可以参考我的:github 简单使用 如 阅读全文
posted @ 2019-01-11 15:37 huaweichenai 阅读(1608) 评论(0) 推荐(0) 编辑

2019年1月10日

摘要: 一:使用composer安装composer包时遇到Your requirements could not be resolved to an installable set of packages 分析: 这是由于doctrine/instantiator的1.1.0版本必须是PHP7.1,然而我 阅读全文
posted @ 2019-01-10 14:04 huaweichenai 阅读(345) 评论(0) 推荐(0) 编辑

2019年1月7日

摘要: 在Laravel中所有的异常都由Handler类处理,该类包含两个方法:report和render,其中render方法将异常渲染到http响应中。laravel的Handler类文件位置:app/Exceptions/Handler,由于render方法时间异常渲染到http响应中,所以我们只需要 阅读全文
posted @ 2019-01-07 11:43 huaweichenai 阅读(3092) 评论(0) 推荐(0) 编辑

2019年1月4日

摘要: 上半年在阿里云买了一个服务器,之前使用xshell登录linux服务器时一直我没有发现在等于的时候有一个警告信息:WARNING! The remote SSH server rejected X11 forwarding request,这是由于这个警告不会影响我对于我的linux服务器的操作所以 阅读全文
posted @ 2019-01-04 17:05 huaweichenai 阅读(302) 评论(0) 推荐(0) 编辑

导航