
Ubuntu Linux
shghnn
这个作者很懒,什么都没留下…
展开
-
又是一个坑:Reading package lists... Done Building dependency
一般apt-get出现这种情况:Reading package lists... DoneBuilding dependency tree Reading state information... DoneE: Unable to locate package ****就是没有更新APT库更新一下就好了sudo apt-get updatesudo apt-g...转载 2020-01-14 16:23:22 · 2403 阅读 · 0 评论 -
Ubuntu16.04安装php5.6
安装php5.6sudo apt-get install python-software-propertiessudo add-apt-repository ppa:ondrej/phpsudo apt-get updatesudo apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cl...原创 2020-01-14 15:27:50 · 208 阅读 · 0 评论 -
Ubuntu彻底删除PHP7.0
一、删除php的相关包及配置sudo apt-get autoremove php7*二、删除关联sudo find /etc -name "*php*" |xargs rm -rf 三、清除dept列表sudo apt purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`四、检查是否卸载干净(无返回就是...转载 2020-01-14 11:29:36 · 562 阅读 · 0 评论 -
Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0
在远程连接mysql的时候,连接不上,出现如下报错:Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0原因分析:mysql开启了DNS的反向解析功能,这样mysql对连接的客户端会进行DNS主机名查找。mysql处理客户端解析过程:1)当mysq...原创 2020-01-14 11:07:29 · 1149 阅读 · 0 评论 -
Navicat连接ubuntu的mysql
一、先查到虚拟机IP地址,打开终端中执行:ifconfig -a命令即可查到。如果提示“ifconfig command not found”,则安装 net-tool 即可sudo apt install net-tools二、由于是本机,不用考虑什么安全生,所以直接将root改为远程访问mysql -uroot -p use mysql;update user s...原创 2020-01-14 10:48:56 · 839 阅读 · 0 评论 -
ubuntu 16.04 下重置 MySQL 5.7 的密码(忘记密码)
编辑mysql的配置文件sudo gedit /etc/mysql/mysql.conf.d/mysqld.cnf,在[mysqld]段下加入一行“skip-grant-tables”。重启mysql服务yxj @yxj:~$ sudo service mysql restart用空密码进入mysql管理命令行,切换到mysql库。yxj @yxj:~$ mysqlW...转载 2020-01-13 18:18:55 · 176 阅读 · 0 评论 -
Ubuntu首次登陆设置root密码
1、启动Ubuntu2、输入sudo passwd在[sudo] password for wheat:后输入当前用户的密码3、当前用户密码验证通过后输入需要设置的root超级管理员账户密码Enter new UNIX password:验证输入的密码Retype new UNIX password:4、出现passwd: password updated successfully字样...原创 2020-01-13 17:36:38 · 633 阅读 · 0 评论 -
linux ubuntu搭建PHP环境并且部署项目
为了以后工作的需要,我需要尽早的熟悉linux操作系统。择日不如撞日,索性今天就把我的1元腾讯云主机装成linux好了,然后把之前的项目也都迁过来。所以就有了这篇博客。1.前提条件前提条件当然是要有一个Linux系统啦,可以像我一样搞一个云主机,也可以装在虚拟机,总之是Linux就对啦。我这里使用的是Ubuntu server 16,直接在腾讯云控制台重装系统之后,就可以开始我们之后的工作...转载 2020-01-13 17:33:07 · 1207 阅读 · 0 评论 -
解决方法:You do not have the permissions necessary to view the contents of “XXX”
在Ubuntu系统中,用户无法访问其他磁盘,出现如下警告:You do not have the permissions necessary to view the contents of “XXX”解决方法,赋予当前用户root权限,即可正常访问所有磁盘:chmod -R 777 /var/www/html其实就是赋予访问执行的权限。...原创 2020-01-13 17:20:01 · 11085 阅读 · 0 评论