Ubuntu服务器相关命令
2015-11-14 10:08
260 查看
MySQL密码
默认密码为空时设置密码:mysqladmin -u root -p password mypasswd
输入这个命令后,需要输入root的原密码(空的),然后root的密码将改为mypasswd。
修改密码:
mysql -u root -p 先用旧密码登录
mysql> use mysql;
mysql> update user set Password = PASSWORD(‘新密码’) where User =’root’;
各个服务操作命令汇总:
nginx:/etc/init.d/nginx start/stop/restart/reload)
apache:
/etc/init.d/httpd start/stop/restart/…
mysql:
/etc/init.d/mysqld start/stop/restart/…
如何配置 mysql 远程连接
默认安装的 mysql,出于安全考虑,只能本地连接。如果您需要远程连接,这里就需要设置一下 mysql 的权限表。具体设置的步骤如下:进入服务器命令行:
mysql -uroot -p 密码
mysql>grant all on . to root@”%” identified by “密码”;
mysql>flush privileges;
服务器命令下载JDK: wget –no-cookies –header “Cookie: oraclelicense=accept-securebackup-cookie;” http://download.oracle.com/otn-pub/java/jdk/8u77-b03/jdk-8u77-linux-i586.tar.gz
相关文章推荐
- linux常用命令笔记
- 找出前50最耗CPU的SQL语法
- [o] SQLite数据库报错: Invalid column C
- 黑马程序员_JavaSE基础知识总结十七:GUI界面
- KEIL编译后Program Size: Code=1032 RO-data=336 RW-data=12 ZI-data=1836 的含义
- Why BIOS loads MBR into 0x7C00 in x86 ?
- Android 之内容提供者 内容解析者 内容观察者
- CRF++的安装以及Ubunt下java版本的CRF++的配置
- Words of CS
- scala学习-基本语法3
- 数据库死锁及解决死锁问题
- 整型数与字符串之间的转化
- HTML中判断手机是否安装某APP,跳转或下载该应用
- GPUImage API文档之GPUImageFramebuffer类
- Linux中find常见用法
- Ubuntu下Java开发环境的搭建
- ASP.NET的POST和GET提交并接收处理返回值
- Educational Codeforces Round 1
- Obj文件解析相关bug心得
- linux shell 编程2(if else 判断文章的可读、可写可执行)