随笔分类 -  ubuntu

摘要:删除mysql 1.sudo apt-get autoremove --purge mysql-server-5.5 2.sudo apt-get remove mysql-common 清理残留数据 dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dp 阅读全文
posted @ 2018-11-22 09:36 落夜loe 阅读(866) 评论(0) 推荐(0)
摘要:在Ubuntu 要配置 \var\www\loelve 目录为 www.loelve.xyz 为例 一、打开:\etc\hosts文件:sudo vim \etc\hosts 添加:127.0.0.1 www.loelve.xyz 二、打开:\etc\apach2\sites-available\0 阅读全文
posted @ 2018-11-03 12:17 落夜loe 阅读(1399) 评论(0) 推荐(0)
摘要:系统已安装 php7.0 在执行程序是发现 curl_init 函数未定义, 原因是 php 的 curl 模块并未安装。可按如下步骤解决: 1.查询curl的php支持名字 apt-cache search curl | grep php 结果如下: php-curl - CURL module 阅读全文
posted @ 2018-09-05 14:26 落夜loe 阅读(1306) 评论(1) 推荐(1)
摘要:1.ubuntu下的apache2 安装 sudo apt-get install apache2 首先ubuntu下apache文件分布和windows下不一样 我通过apt-get安装 - 默认站点在 /var/www/ - 配置文件在 /etc/apache2/ - 日志在 /var/log/ 阅读全文
posted @ 2018-09-05 10:28 落夜loe 阅读(1202) 评论(0) 推荐(1)
摘要:修改主机名: /etc/hostname 一、Start Apache 2 Server /启动apache服务 # /etc/init.d/apache2 startor$ sudo /etc/init.d/apache2 start二、 Restart Apache 2 Server /重启ap 阅读全文
posted @ 2018-05-16 16:45 落夜loe
摘要:sudo apt-get update sudo apt-get install apache2 备注: ##################备注:如果这时候发现无法访问公网ip, 请去配置阿里云后台的安全组。添加一条 入方向的规则 eg: 允许 自定义 TCP 80/80 地址段访问 0.0.0. 阅读全文
posted @ 2018-01-20 10:52 落夜loe 阅读(350) 评论(0) 推荐(0)