玛卡巴卡的卡巴卡玛 发表于 2024-7-15 03:33:42

Linux体系:第十章:服务器环境搭建,2024年最新正式加入字节跳动

查看日记:less catalina.out
MySQL的安装与配置

进入opt目录:cd /opt
在opt目录下上传MySQL-server-5.5.52-1.el6.x86_64.rpm和MySQL-client-5.5.52-1.el6.x86_64.rpm
忽略依靠关系实行删除:rpm -e --nodeps mariadb-libs-1:5.5.56-2.el7.x86_64
安装服务端:rpm -ivh /opt/MySQL-server-5.5.52-1.el6.x86_64.rpm
安装客户端:rpm -ivh /opt/MySQL-client-5.5.52-1.el6.x86_64.rpm
查看版本:mysqladmin --version
mysqladmin  Ver 8.42 Distrib 5.5.52, for Linux on x86_64
启动MySQL服务:systemctl start mysql.service
查看服务状态:systemctl status mysql.service
查看端口:netstat -anp|grep 3306
查看mysql运行的进程:ps -ef|grep mysql|grep -v grep
设置root用户和暗码:mysqladmin -u root password
New password:
Confirm new password:
登录mysql:mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.52 MySQL Community Server (GPL)
Copyright © 2000, 2016, 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>
查看数据库:show databases;
利用test数据库:user test;
查看表:show tables;
退出:exit;
然后去windows的sqlYog连接,主机改为linux连接:192.168.134.100,用户名:root,暗码:root
测试连接不上,linux中查看防火墙:systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
8月 12 07:32:47 rich systemd: Starting firewalld - dynamic firewall daemon…
8月 12 07:32:47 rich systemd: Started firewalld - dynamic firewall daemon.
8月 12 07:32:47 rich firewalld: WARNING: ICMP type ‘beyond-scope’ is not supported by the kernel for ipv6.
8月 12 07:32:47 rich firewalld: WARNING: beyond-scope: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time.
8月 12 07:32:47 rich firewalld: WARNING: ICMP type ‘failed-policy’ is not supported by the kernel for ipv6.
8月 12 07:32:47 rich firewalld: WARNING: failed-policy: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time.
8月 12 07:32:47 rich firewalld: WARNING: ICMP type ‘reject-route’ is not supported by the kernel for ipv6.
8月 12 07:32:47 rich firewalld: WARNING: reject-route: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time.
8月 12 09:30:57 rich systemd: Stopping firewalld - dynamic firewall daemon…
8月 12 09:30:59 rich systemd: Stopped firewalld - dynamic firewall daemon.
防火墙关了,没问题,应该是mysql授权问题
登录mysql:mysql -u root -p
查看数据库:show databases;
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到如今。
深知大多数Linux运维工程师,想要提升技能,每每是本身摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。本身不成体系的自学效果低效又漫长,而且极易遇到天花板技术停滞不前!
因此收集整理了一份《2024年Linux运维全套学习资料》,初志也很简单,就是希望能够资助到想自学提升又不知道该从何学起的朋侪,同时减轻各人的负担。
https://img-blog.csdnimg.cn/img_convert/9016a682d16db7b8eeaf18e5ff306388.png
https://img-blog.csdnimg.cn/img_convert/cfe44708040fccb49da1bba5b3d222be.png
https://img-blog.csdnimg.cn/img_convert/2a6e8d2e50b2f5b177c493490c2232ff.png
https://img-blog.csdnimg.cn/img_convert/6467029ea18964fa3d95dbcc05f59399.png
https://img-blog.csdnimg.cn/img_convert/eb8bb1496b290928f7d7c7a9ee292eff.png
既有适合小白学习的零基础资料,也有适合3年以上履历的小伙伴深入学习提升的进阶课程,根本涵盖了95%以上Linux运维知识点,真正体系化!
由于文件比较大,这里只是将部门目录大纲截图出来,每个节点内里都包含大厂面经、学习笔记、源码讲义、实战项目、解说视频,而且后续会连续更新
假如你以为这些内容对你有资助,可以添加VX:vip1024b (备注Linux运维获取)
https://img-blog.csdnimg.cn/img_convert/136615e2af8a0ccc3488a6b54c0655a8.jpeg
https://img-blog.csdnimg.cn/img_convert/9a8cb5f8c0ec69e6499adead0da6e95b.png
最全的Linux教程,Linux从入门到精通
======================

[*] linux从入门到精通(第2版)
[*] Linux体系移植
[*] Linux驱动开发入门与实战
[*] LINUX 体系移植 第2版
[*] Linux开源网络全栈详解 从DPDK到OpenFlow
https://img-blog.csdnimg.cn/img_convert/59742364bb1338737fe2d315a9e2ec54.png
第一份《Linux从入门到精通》466页
====================
内容简介
====
本书是获得了很多读者好评的Linux经典脱销书**《Linux从入门到精通》的第2版**。本书第1版出书后曾经多次印刷,并被51CTO读书频道评为“最受读者喜好的原创IT技术图书奖”。本书第﹖版以最新的Ubuntu 12.04为版本,循规蹈矩地向读者介绍了Linux 的基础应用、体系管理、网络应用、娱乐和办公、步伐开发、服务器配置、体系安全等。本书附带1张光盘,内容为本书配套多媒体教学视频。另外,本书还为读者提供了大量的Linux学习资料和Ubuntu安装镜像文件,供读者免费下载。
https://img-blog.csdnimg.cn/img_convert/9d4aefb6a92edea27b825e59aa1f2c54.png
本书适合广大Linux初中级用户、开源软件爱好者和大专院校的学生阅读,同时也非常适合准备从事Linux平台开发的各类职员。
   需要《Linux入门到精通》、《linux体系移植》、《Linux驱动开发入门实战》、《Linux开源网络全栈》电子书籍及教程的工程师朋侪们劳烦您转发+批评
一个人可以走的很快,但一群人才气走的更远。不论你是正从事IT行业的老鸟或是对IT行业感爱好的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、口试辅导),让我们一起学习成长!
https://img-blog.csdnimg.cn/img_convert/1b27214cb29539f1c690ee1e0820e1b4.jpeg
   需要《Linux入门到精通》、《linux体系移植》、《Linux驱动开发入门实战》、《Linux开源网络全栈》电子书籍及教程的工程师朋侪们劳烦您转发+批评
一个人可以走的很快,但一群人才气走的更远。不论你是正从事IT行业的老鸟或是对IT行业感爱好的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、口试辅导),让我们一起学习成长!
[外链图片转存中…(img-63DG6xiB-1712685273853)]

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: Linux体系:第十章:服务器环境搭建,2024年最新正式加入字节跳动