- Centos7安装(安装顺序自上而下)
- Centos7 安装jdk
- Centos7安装tomcat
- Centos 7安装mysql(初始化时要设置不区分大小写,后续再设置无效…)
- mysql为不同账户设置权限
- 重新设置MySQL密码时,报 You must reset your password using ALTER USER statement before executing thi,输入命令:
- https://blog.csdn.net/tr1912/article/details/77462256(解决链接)">设置远程访问时,需要将’’改为”” https://blog.csdn.net/tr1912/article/details/77462256(解决链接)
- https://www.codeleading.com/article/80252827729/(解决连接)">修改不区分大小写,重启服务报错https://www.codeleading.com/article/80252827729/(解决连接)
- mysql首次启动报错:
- windows MySQL设置任意网段可以连接,springboot中原来只能localhost可以连接,ip不可以,修改了
- https://blog.csdn.net/hjf161105/article/details/78850658">mysql安装待解决https://blog.csdn.net/hjf161105/article/details/78850658
- mysql命令行执行sql脚本
- linux 安装maven
Centos7安装(安装顺序自上而下)
https://blog.csdn.net/qq_44714603/article/details/88829423
centos7 用yum命令安装wget无法安装
CentOS系统:yum install wget -yDebian/Ubuntu系统,需要执行以下命令apt-get install -y wget
如果上面命令执行失败,查看连接
https://www.jianshu.com/p/01a12e8e204c
centos 配置yum命令
https://www.cnblogs.com/crowsong/p/9371216.html
centos更换为阿里的景象
https://www.cnblogs.com/qa-freeroad/p/13888980.html
阿里云镜像使用时报错bash: /usr/bin/yum: No such file or directory的解决方案
https://blog.csdn.net/m0_43393325/article/details/118371009
centos按照ifconfig环境
https://jingyan.baidu.com/article/eb9f7b6d42636d869364e8c9.html
vmware复制Linux
https://blog.csdn.net/qq_42774325/article/details/81189033
ubuntu 系统输入命令:sudo apt-get install vim-gtkcentos 系统输入命令:yum -y install vim*
linux配置ip
https://blog.csdn.net/qq_38138069/article/details/80982527?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-2.essearch_pc_relevant&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-2.essearch_pc_relevant
Linux安装vim
https://blog.csdn.net/sunnyzyq/article/details/87089614
ubuntu 系统输入命令:sudo apt-get install vim-gtkcentos 系统输入命令:yum -y install vim*
centos关闭防火墙
#开启防火墙(重启restart,关闭stop)service firewalld start#永久关闭防火墙systemctl disable firewalld.servic#查看防火墙状态systemctl status firewalld.service或者chkconfig iptables off
Centos7 安装jdk
https://blog.csdn.net/u010590120/article/details/94736800(查系统本身有没有安装jdk)
#解压后,修改使生效vim /etc/profileJAVA_HOME=/usr/local/jdk1.8.0_211PATH=/usr/local/jdk1.8.0_211/bin:$PATHexport JAVA_HOME PATH#生效source /etc/profile#java -version
Centos7安装tomcat
linux:https://blog.csdn.net/iiiiiilikangshuai/article/details/91894258?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_default&utm_relevant_index=2
服务器:https://blog.csdn.net/u014141461/article/details/104423468
在Linux中启动Tomcat权限不够问题解决
1、先进入bin目录,执行chmod u+x *.sh
2、在bin命令行重启应用服务: ./startup.sh
3、问题解决
https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
Centos 7安装mysql(初始化时要设置不区分大小写,后续再设置无效…)
官网下载包地址:https://downloads.mysql.com/archives/community/
tar包安装:https://www.jianshu.com/p/333e9bd09d9c
yum命令安装mysql:
https://blog.csdn.net/qq_38591756/article/details/82958333?ops_request_misc=&request_id=&biz_id=102&utm_term=centos7%E5%AE%89%E8%A3%85mysql8.0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-5-.first_rank_v2_pc_rank_v29&spm=1018.2226.3001.4187
mysql8:https://blog.csdn.net/qq_37040886/article/details/107298679?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163975763516780255245813%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=163975763516780255245813&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-1-107298679.pc_search_es_clickV2&utm_term=linux+%E5%AE%89%E8%A3%85mysql8.0&spm=1018.2226.3001.4187
mysql为不同账户设置权限
https://blog.csdn.net/baidu_25986059/article/details/104042858
#某个数据库的某个表on *.*%代表通配所有host地址权限(可远程访问)localhost为本地权限(不可远程访问)指定特殊Ip访问权限 如10.138.106.102grant usage,select,insert,update,delete,create temporary tables,execute on lxxqdddd.* to 'nora'@'%';grant all on tuling.* to 'nora'@'%';#修改密码ALTER USER 'nora'@'%' IDENTIFIED WITH mysql_native_password BY 'Yxq718!';flush privileges;service mysql restrat
重新设置MySQL密码时,报 You must reset your password using ALTER USER statement before executing thi,输入命令:
https://blog.csdn.net/qq_38366063/article/details/100736999
//root是密码alter user user() identified by "root";
设置远程访问时,需要将’’改为”” https://blog.csdn.net/tr1912/article/details/77462256(解决链接)
update user set host=”%” where user=”root”;
修改不区分大小写,重启服务报错https://www.codeleading.com/article/80252827729/(解决连接)
Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details.
查看mysqld.log,文件find / -name mysqld.log,错误日志
Linux中MySQL8之后,不区分大小写只有在初始化的时候才生效,后来的都是报错…..(https://zhuanlan.zhihu.com/p/258037272)
mysql首次启动报错:
安装包以root用户启动的,需要在etc/my.inf中增加user=root再启动
https://blog.csdn.net/miss1181248983/article/details/82426283
windows MySQL设置任意网段可以连接,springboot中原来只能localhost可以连接,ip不可以,修改了
https://www.cnblogs.com/stronger-xsw/p/12779385.html
mysql安装待解决https://blog.csdn.net/hjf161105/article/details/78850658
mysql命令行执行sql脚本
1,将要导入的.sql文件移至bin文件下,这样的路径比较方便2,同上面导出的第1步3,进入MySQL:mysql -u 用户名 -p如我输入的命令行:mysql -u root -p (输入同样后会让你输入ySQL的密码)4,在MySQL-Front中新建你要建的数据库,这时是空数据库,如新建一个名为blog的目标数据库(mysql>create database blog;)5,输入:mysql>use 目标数据库名如我输入的命令行:mysql>use blog;6,导入文件:mysql>source 导入的文件名;如我输入的命令行:mysql>source blog.sql;
linux 安装maven
yum -y install wgetwget http://mirrors.cnnic.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gztar -zxvf apache-maven-3.5.4-bin.tar.gz#修改环境变量vim /etc/profile#(这个目录换成你的 maven 解压后的文件所在目录)export MAVEN_HOME=/usr/local/mavenexport PATH=$MAVEN_HOME/bin:$PATHsource /etc/profile#查看版本mvn -version或者mvn -v
linux 应用注册为service服务(以nacos为例)
添加nacos.service文件
vim /lib/systemd/system/nacos.service
[Unit]Description=nacosAfter=network.target[Service]Type=forkingExecStart=/application/server/nacos/bin/startup.sh -m standaloneExecReload=/application/server/nacos/bin/shutdown.shExecStop=/application/server/nacos/bin/shutdown.shPrivateTmp=true[Install]WantedBy=multi-user.target
加入nacos服务
systemctl daemon-reload
Linux开机启动服务
systemctl enable nacos.service
启动/停止
systemctl start nacos.servicesystemctl stop nacos.service
linux安装nacos 服务启动报错
报错信息:Please set the JAVA_HOME variable in your environment
https://blog.csdn.net/weixin_43818327/article/details/121233402?spm=1001.2101.3001.6650.15&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-15.pc_relevant_paycolumn_v3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-15.pc_relevant_paycolumn_v3&utm_relevant_index=17
linux 安装redis哨兵集群
https://blog.csdn.net/xch_yang/article/details/104019552
Linux修改yum源为阿里镜像源
https://blog.csdn.net/a15231115232/article/details/83089367
Linux安装rabbitmq
https://www.cnblogs.com/jimlau/p/12029985.html
linux 搭建fastdfs
对应版本:libfastcommon-1.0.7 fastdfs-5.05 nginx-1.12.1
https://blog.csdn.net/qq_36120342/article/details/104763889?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165020974316782089386747%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=165020974316782089386747&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-3-104763889.142^v9^pc_search_result_control_group,157^v4^control&utm_term=linux%E6%90%AD%E5%BB%BAfastdfs&spm=1018.2226.3001.4187
安装过程中nginx报错,nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed
https://blog.csdn.net/dizhi67544/article/details/101761991
执行代码解决(等于添加了nginx.pid,logs目录在ll可以查到)
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
Linux安装git
https://blog.csdn.net/weixin_49343190/article/details/123529976
