随笔分类 - linux
摘要:如果登录账户不是 root,则需要执行 sudo -H -s 切换为 root 账户
阅读全文
摘要:用composer 安装包文件时,如果报如下错误: Your requirements could not be resolved to an installable set of packages. 不要较真,运行如下命令解决: composer install --ignore-platform
阅读全文
摘要:今天搞了一下系统,系统是 centos 7 的,后来发现宝塔面板打不开了。 执行一下下面的代码 ll /etc/init.d/ 执行df -h看看磁盘空间 确定不是以上原因, 执行下面命令: 1 mv /etc/init.d/bt /tmp/bt_back 2 cp /www/server/pane
阅读全文
摘要:/** * 打开nginx配置文件nginx.conf,添加以下内容 * 注意层级,在 http{ server { location { #这里添加 } } } 添加 */ location / { if (!-e $request_filename){ rewrite ^/(.*)$ /inde
阅读全文
摘要:注:不要复制以下的代码,经测试,报内有异常字符,并且定位到代码文件未尾,时有时无极不稳定,应该逐字敲入。 文件fileupload.class.php: <?php /** file: fileupload.class.php文件上传类FileUpload 本类的实例对象用于处理上传文件,可以上传一
阅读全文
摘要:网页文件浏览器总共 4 个文件实现: 支持打开并编辑的文本文件和配置文件:txt、log、conf、sql、ini和sh文件; 支持浏览的图片文件,php 支持的 gd 库打开的图片文件 jpeg、png、gif、bmp、wbmp、webp、xbm、xpm; 支持浏览的视频文件,h5 支持的 mp4
阅读全文
摘要:地址:https://developer.aliyun.com/composer 下载地址: https://mirrors.aliyun.com/composer/composer.phar 全局配置(推荐) 所有项目都会使用该镜像地址: composer config -g repo.packa
阅读全文
摘要:ngnix服务器,进入:nginx/conf/vhosts.conf: server { listen 80; server_name www.x.com x.com; root "C:\Runing\PHPTutorial"; location / { index index.html index
阅读全文
摘要:ubuntu下载地址:https://www.ubuntu.org.cn/download 安装步骤如下: 要用 putty 连接,root 用户登录的话,下面的配置需要修改: 以上用 VMware 的 net 模式连接的网络,这种连接方式适合于 ip 地址比较稀缺的情况。如果需要其他连接方式,请参
阅读全文