- 博客(3)
- 收藏
- 关注
原创 Ubuntu重启停止Apache
Linux系统为Ubuntu18 一、Start Apache 2 Server /启动apache服务 # /etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 start 二、 Restart Apache 2 Server /重启apache服务 # /etc/init.d/apache2 restart or $ sudo /etc/init.d/apache2 restart 三、Stop Apache 2 Server /停止apach
2021-09-26 17:27:38
781
原创 Ubuntu18.04.05允许root用户远程登录
1、进入Ubuntu系统 首先使用普通用户登录到Ubuntu系统,然后使用sudo命令切换到root用户下: 设置root密码:sudo passwd root 切换到root用户命令:su 输入密码 登录到root账户 2、编辑SSH服务配置文件 编辑SSH服务的配置文件sshd_config,修改SSH的端口和root用户权限。 使用到的命令:(按字母“i”进入编辑模式,按ESC退出编辑模式,“:wq”保存退出)。 vim /etc/ssh/sshd_config 1、找到# p...
2021-09-26 14:15:16
649
原创 ubuntu18 彻底卸载mysql并且重新安装
ubuntu彻底卸载mysql并且重新安装 首先删除mysql: sudo apt-get remove mysql-* 然后清理残留的数据 dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 它会跳出一个对话框,你选择yes就好了 然后安装mysql sudo apt-get install mysql-client mysql-server 安装的时候会提示要设置root密码,如果你没有在卸载的时候去清理残留数据是不会提示..
2021-09-26 14:13:41
449
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人