当前位置:网站首页>linux basic command explanation
linux basic command explanation
2022-08-02 12:19:00 【Mu Chenchenxi】
1. Basic environment:
Experimental environment
1. This machine is installed on the desktop
2. The network mode is nat ip: 172.20.10.8
Basic environment
1. You can ping the network and network settings
2. Mount the image and configure the yum source repository
Minimum installation needs to download the dependent environment
[[email protected] ~]#yum -y install wget.x86_64
[[email protected] ~]#yum -y install vim
[[email protected] ~]#yum -y install bash-completion
[[email protected] ~]#bash
2. Install Mysql and configure it
1. Check whether the basic environment reserves mysql or mariadb packages:
Check if MySQL is installed
[[email protected]]# cd /etc/yum.repos.d
[[email protected] yum.repos.d]# rpm -qa | grep mysql
[[email protected] yum.repos.d]# rpm -qa | grep mariadb mariadb-libs-5.5.68-1.el7.x86_64
#Forcibly uninstall mariadb-lib
[[email protected] yum.repos.d]# rpm -e --nodeps mariadb-libs
[[email protected] yum.repos.d]# rpm -qa | grep mariadb
#install mysql database
[[email protected] yum.repos.d]# wget https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm #Get the mysql.rpm package from the Internet
p>
#Install rpm package
[[email protected] yum.repos.d]# rpm -ivh mysql80-community-release-el7-5.noarch.rpm

#Empty cache
[[email protected] ~ yum.repos.d]# yum makecache fast [[email protected] ~yum.repos.d]# yum repolist
2. Install mysql database and login, change password
[[email protected] yum.repos.d]# yum -y install mysql-community-server
[[email protected] yum.repos.d]# grep "passwor" /var/log/mysqld.log 2022-04-15T01:10:12.626454Z 6 [Note] [MY-010454] [Server] A temporarypassword is generated for [email protected]: RbSv)lzrG6ts [[email protected] yum.repos.d]# mysql -u root -p Enter password: mysql> set password='[email protected]'; Query OK, 0 rows affected (0.00sec) mysql> exit Bye
3. Set to allow remote access
[[email protected] ~]systemctl stop firewalld.service
[[email protected] ~]systemctl disable firewalld.service
4. Modify mysql permissions to allow anyone to connect
[[email protected] yum.repos.d]# mysql -u root -p Enter password: mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with-A Database changed mysql> select Host,User from user; +-----------+------------------+ | Host | User |+-----------+------------------+ | localhost | mysql.infoschema | | localhost | mysql.session | | localhost | mysql.sys | | localhost | root | +-----------+------------------+ 4 rows in set (0.00 sec) mysql>update user set Host='%' where User=root; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.01 sec)mysql> exit Bye
5. Use the connection tool: use the Navicat connection tool to test
New---mysql Note: The password is the database password and the host is the IP address of the virtual machine (the password must be entered manually)


边栏推荐
- 阿苹的思考
- Lexicon 27 - Remove Elements - Simple Questions
- 力扣704-二分查找
- simulink PID自动整定
- MyCat2 introduction and installation and basic use
- According to the field classification Golang map array
- numpy&pands 中的unique
- MD5 detailed explanation (check file integrity)
- Hand rolled architecture, 41 Redis interview asked
- Drools(8):WorkBench使用
猜你喜欢

三种实现分布式锁的方式

Technology sharing | Description of the electronic fence function in the integrated dispatching system

使用kubesphere图形界面创建一个应用操作流程

np.nan, np.isnan, None, pd.isnull, pd.isna finishing and summary

MD5 detailed explanation (check file integrity)

力扣35-搜索插入位置——二分查找

力扣151-颠倒字符串中的单词

Problem solving in the process of using mosquitto

Process finished with exit code 1

今日睡眠质量记录85分
随机推荐
darknet训练yolov4模型
WPF——自定义日历
SQL函数 $TRANSLATE
数据湖(三):Hudi概念术语
Lexicon 27 - Remove Elements - Simple Questions
Do you really understand the business process service BPass?
Chapter 14 Manually create a REST service (2)
智能图像分析-智能家用电器图像目标检测统计计数检测与识别-艾科瑞特科技(iCREDIT)
Distributed current limiting, hand & redisson implementation
Likou 704 - binary search
According to the field classification Golang map array
AQS-AbstractQueuedSynchronizer
Likou 209 - String with the Minimum Length - Sliding Window Method
Thymeleaf
Taurus.MVC V3.0.3 Microservice Open Source Framework Released: Make the evolution of .NET architecture easier in large concurrency.
基础协议讲解
Pod调度策略:亲和性、污点与污点容忍
使用kubesphere图形界面创建一个应用操作流程
手撸架构,MongDB 面试50问
解决anaconda下载pytorch速度极慢的方法