频道栏目
首页 > 资讯 > 虚拟机 > 正文

vmware下ubantu18的配置和软件安装步骤教程

18-05-30        来源:[db:作者]  
收藏   我要投稿

安装vmware-tools

vmware软件—虚拟机—安装vmware-tools—解压 tar zxvf —切换路径—./vmware-install.pl—输入yes—显示Enjoy, –the VMware team安装成功虚拟机—设置—共享文件夹—开启—执行命令/usr/bin/vmware-user

更新镜像源

1.访问 https://mirrors.tuna.tsinghua.edu.cn/,找到ubantu点击其后面的问号,选择对应的版本,复制文本框里的内容
2.备份Ubuntu默认的源地址: sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
3.更新源文件,输入命令: sudo gedit /etc/apt/sources.list,清空当前内容,粘贴第一步复制的内容
4.更新源: sudo apt-get update

安装mysql

1.安装

# 更新源 
sudo apt-get update
# 安装mysql服务
sudo apt-get install mysql-server
# 安装客户端
sudo apt install mysql-client
# 安装依赖
sudo apt install libmysqlclient-dev
# 检查状态
sudo apt install net-tools
sudo netstat -tap | grep mysql

2.设置 root密码

$ sudo su
# mysql
mysql>
mysql> select user, plugin from mysql.user;
+------------------+-----------------------+
| user | plugin |
+------------------+-----------------------+
| root | auth_socket  |
| mysql.session | mysql_native_password |
| mysql.sys  | mysql_native_password |
| debian-sys-maint | mysql_native_password |
+------------------+-----------------------+
4 rows in set (0.00 sec)

mysql>  select user, plugin from mysql.user;
+------------------+-----------------------+
| user | plugin |
+------------------+-----------------------+
| root | auth_socket  |
| mysql.session | mysql_native_password |
| mysql.sys  | mysql_native_password |
| debian-sys-maint | mysql_native_password |
+------------------+-----------------------+
4 rows in set (0.00 sec)

mysql> update mysql.user set authentication_string=PASSWORD('123456'), plugin='mysql_native_password' where user='root';
Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 1

mysql>  flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> exit
Bye
root@shylin:/home/shylin# su - shylin# 切换回普通用户

$ sudo /etc/init.d/mysql restart
$ mysql -uroot -p

shylin@shylin:~$ mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.22-0ubuntu18.04.1 (Ubuntu)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

3.配置mysql远程登录

# 修改配置文件,注释掉bind-address = 127.0.0.1
$ sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf

# 保存退出,然后进入mysql服务,执行授权命令:
$ mysql -uroot -p

mysql> grant all on *.* to root@'%' identified by '123456' with grant option;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye
$ sudo /etc/init.d/mysql restart

安装redis

安装Redis服务器端

sudo apt-get install redis-server

检查Redis服务器系统进程

~ ps -aux|grep redis
redis  4162  0.1  0.0  10676  1420   Ss23:240:00 /usr/bin/redis-server /etc/redis/redis.conf
conan  4172  0.0  0.0  11064924 pts/0 S+23:260:00 grep --color=auto redis

通过启动命令检查Redis端口状态

~ netstat -nlt|grep 6379
tcp  00 127.0.0.1:6379 0.0.0.0:*LISTEN

通过启动命令检查Redis服务器状态

~ sudo /etc/init.d/redis-server status
redis-server is running

通过命令行客户端访问Redis

~ redis-cli
redis 127.0.0.1:6379>

安装搜狗输入法

1.从官网下载最新的安装包  sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb 
2.解决依赖 sudo apt install -f
3.从设置找到语言->管理安装语言,待更新安装完成,设置为fcitx 
4.重新登入,在右上角的托盘->配置,添加搜狗输入法 
相关TAG标签
上一篇:移动开发网络请求框架解析
下一篇:Could not build module 'libxml2'报错解决方法
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站