├── files
│ ├── install.sh
│ ├── nginx-1.20.1.tar.gz
│ └── nginx.service.j2
└── install.sls
1 directory, 4 files
[root@master nginx]# cat install.sls
nginc-dev-package:
pkg.installed:
-
pkgs:
-
pcre-devel
-
openssl
-
openssl-devel
-
gd-devel
-
gcc
-
gcc-c++
-
make
-
wget
nginx:
user.present:
-
shell: /sbin/nologin
-
createhome: false
-
system: true
/usr/src/nginx-1.20.1.tar.gz:
file.managed:
- source: salt://modules/web/nginx/files/nginx-1.20.1.tar.gz
nginx-installsh:
cmd.script:
-
name: salt://modules/web/nginx/files/install.sh
-
unless: test -d {{ pillar[‘nginx_install_dir’] }}/nginx/
/usr/lib/systemd/system/nginx.service:
file.managed:
-
source: salt://modules/web/nginx/files/nginx.service.j2
-
user: root
-
group: root
-
mode: ‘0644’
-
template: jinja
nginx编译脚本
[root@master nginx]# cat files/install.sh
#!/bin/bash
cd /usr/src
rm -rf nginx-1.20.1
tar xf nginx-1.20.1.tar.gz
cd nginx-1.20.1
./configure \
–prefix=“{{ pillar[‘nginx_install_dir’] }}”/nginx \
–user=nginx \
–group=nginx \
–with-debug \
–with-http_ssl_module \
–with-http_realip_module \
–with-http_image_filter_module \
–with-http_gunzip_module \
–with-http_gzip_static_module \
–with-http_stub_status_module \
–http-log-path=/var/log/nginx/access.log \
–error-log-path=/var/log/nginx/error.log && make && make install
启动文件nginx.service
[root@master nginx]# cat files/nginx.service.j2
[Unit]
Description=nginx server daemon
After=network.target
[Service]
Type=forking
ExecStart={{ pillar[‘nginx_install_dir’] }}/nginx/sbin/nginx
ExecStop={{ pillar[‘nginx_install_dir’] }}/nginx/sbin/nginx -s stop
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
//项目结构
[root@master mysql]# tree
.
├── files
│ ├── install.sh
│ ├── mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz
│ ├── mysqld.service.j2
│ └── mysql.server
└── install.sls
1 directory, 5 files
[root@master mysql]# cat install.sls
ncurses-compat-libs:
pkg.installed
create-mysql-user:
user.present:
-
name: mysql
-
createhome: false
-
system: true
-
shell: /sbin/nologin
create-datadir:
file.directory:
-
name: /opt/data
-
user: mysql
-
group: mysql
-
mode: ‘0755’
-
makedirs: true
/usr/src/mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz:
file.managed:
-
source: salt://modules/database/mysql/files/mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz
-
user: root
-
group: root
-
mode: ‘0644’
mysql-installsh:
cmd.script:
-
name: salt://modules/database/mysql/files/install.sh
-
unless: test -d {{ pillar[‘mysql_installdir’] }}/mysql
{{ pillar[‘mysql_installdir’] }}/mysql/support-files/mysql.server:
file.managed:
- source: salt://modules/database/mysql/files/mysql.server
/usr/lib/systemd/system/mysqld.service:
file.managed:
-
source: salt://modules/database/mysql/files/mysqld.service.j2
-
template: jinja
mysql解压
[root@master mysql]# cat files/install.sh
cd /usr/src
tar xf mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz -C /usr/local
ln -s mysql-5.7.34-linux-glibc2.12-x86_64 /usr/local/mysql
chown -R mysql.mysql /usr/local/mysql*
/usr/local/mysql/bin/mysqld --initialize-insecure --user=mysql --datadir=/opt/data/
echo “export PATH=/usr/local/mysql/bin:$PATH” > /etc/profile.d/mysqld.sh
启动文件mysql.service
[root@master mysql]# cat files/mysqld.service.j2
[Unit]
Description=Mysql server daemon
After=network.target
[Service]
Type=forking
ExecStart={{ pillar[‘mysql_installdir’] }}/mysql/support-files/mysql.server start
ExecStop={{ pillar[‘mysql_installdir’] }}/mysql/support-files/mysql.server stop
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
//项目结构
[root@master php]# tree
.
├── files
│ ├── install.sh
│ ├── oniguruma-devel-6.8.2-2.el8.x86_64.rpm
│ ├── php-7.4.24.tar.gz
│ ├── php-fpm
│ ├── php-fpm.conf
│ ├── php-fpm.service
│ ├── php.ini
│ └── www.conf
└── install.sls
1 directory, 9 files
[root@master php]# cat install.sls
/usr/src/oniguruma-devel-6.8.2-2.el8.x86_64.rpm:
file.managed:
-
source: salt://modules/application/php/files/oniguruma-devel-6.8.2-2.el8.x86_64.rpm
-
user: root
-
group: root
-
mode: ‘0644’
cmd.run:
-
name: yum -y install /usr/src/oniguruma-devel-6.8.2-2.el8.x86_64.rpm
-
unless: yum -y provides oniguruma-devel
dnf -y install epel-release:
cmd.run
dep-pkckages-install:
pkg.installed:
-
pkgs:
-
sqlite-devel
-
libzip-devel
-
libxml2
-
libxml2-devel
-
openssl
-
openssl-devel
-
bzip2
-
bzip2-devel
-
libcurl
-
libcurl-devel
-
libicu-devel
-
libjpeg-turbo
-
libjpeg-turbo-devel
-
libpng
-
libpng-devel
-
openldap-devel
-
pcre-devel
-
freetype
-
freetype-devel
-
gmp
-
gmp-devel
-
libmcrypt
-
libmcrypt-devel
-
readline
-
readline-devel
-
libxslt
-
libxslt-devel
-
mhash
-
mhash-devel
/usr/src/php-7.4.24.tar.gz:
file.managed:
-
source: salt://modules/application/php/files/php-7.4.24.tar.gz
-
user: root
-
group: root
-
mode: ‘0644’
php-installsh:
cmd.script:
-
name: salt://modules/application/php/files/install.sh
-
unless: test -d {{ pillar[‘php_installdir’] }}/php7
copy-php:
file.managed:
-
names:
-
/etc/init.d/php-fpm:
-
source: salt://modules/application/php/files/php-fpm
-
user: root
-
group: root
-
mode: ‘0755’
-
/usr/local/php7/etc/php-fpm.conf:
-
source: salt://modules/application/php/files/php-fpm.conf
-
/usr/local/php7/etc/php-fpm.d/www.conf:
-
source: salt://modules/application/php/files/www.conf
-
/etc/php.ini:
-
source: salt://modules/application/php/files/php.ini
/usr/lib/systemd/system/php-fpm.service:
file.managed:
-
source: salt://modules/application/php/files/php-fpm.service.j2
-
template: jinja
php-fpm.service:
service.running:
-
enable: true
-
reload: true
-
require:
-
cmd: php-installsh
-
file: copy-php
php编译
[root@master php]# cat files/install.sh
#!/bin/bash
cd /usr/src
rm -rf php-7.4.24
tar xf php-7.4.24.tar.gz -C /usr/local
cd /usr/local/php-7.4.24
./configure --prefix=/usr/local/php7 \
–with-config-file-path=/etc \
–enable-fpm \
–disable-debug \
–disable-rpath \
–enable-shared \
–enable-soap \
–with-openssl \
–enable-bcmath \
–with-iconv \
–with-bz2 \
–enable-calendar \
–with-curl \
–enable-exif \
–enable-ftp \
–enable-gd \
–with-jpeg \
–with-zlib-dir \
–with-freetype \
–with-gettext \
–enable-mbstring \
–enable-pdo \
–with-mysqli=mysqlnd \
–with-pdo-mysql=mysqlnd \
–with-readline \
–enable-shmop \
–enable-simplexml \
–enable-sockets \
–with-zip \
–enable-mysqlnd-compression-support \
–with-pear \
–enable-pcntl \
–enable-posix && make && make install
启动文件php-fpm.service
[root@master php]# cat files/php-fpm.service.j2
[Unit]
Description=php-fpm server daemon
After=network.target
[Service]
Type=forking
ExecStart={{ pillar[‘php_start’] }}/php-fpm start
ExecStop={{ pillar[‘php_start’] }}/php-fpm stop
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数Java工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Java开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Java开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!
如果你觉得这些内容对你有帮助,可以扫码获取!!(备注Java获取)
![img](https://i-blog.csdnimg.cn/blog_migrate/671108ada492c285c186265d6ece65af.jpeg)
最后
既已说到spring cloud alibaba,那对于整个微服务架构,如果想要进一步地向上提升自己,到底应该掌握哪些核心技能呢?
就个人而言,对于整个微服务架构,像RPC、Dubbo、Spring Boot、Spring Cloud Alibaba、Docker、kubernetes、Spring Cloud Netflix、Service Mesh等这些都是最最核心的知识,架构师必经之路!下图,是自绘的微服务架构路线体系大纲,如果有还不知道自己该掌握些啥技术的朋友,可根据小编手绘的大纲进行一个参考。
如果觉得图片不够清晰,也可来找小编分享原件的xmind文档!
且除此份微服务体系大纲外,我也有整理与其每个专题核心知识点对应的最强学习笔记:
-
出神入化——SpringCloudAlibaba.pdf
-
SpringCloud微服务架构笔记(一).pdf
-
SpringCloud微服务架构笔记(二).pdf
-
SpringCloud微服务架构笔记(三).pdf
-
SpringCloud微服务架构笔记(四).pdf
-
Dubbo框架RPC实现原理.pdf
-
Dubbo最新全面深度解读.pdf
-
Spring Boot学习教程.pdf
-
SpringBoo核心宝典.pdf
-
第一本Docker书-完整版.pdf
-
使用SpringCloud和Docker实战微服务.pdf
-
K8S(kubernetes)学习指南.pdf
另外,如果不知道从何下手开始学习呢,小编这边也有对每个微服务的核心知识点手绘了其对应的知识架构体系大纲,不过全是导出的xmind文件,全部的源文件也都在此!
《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取!
链图片转存中…(img-LT0aUIJt-1713381422004)]
如果觉得图片不够清晰,也可来找小编分享原件的xmind文档!
且除此份微服务体系大纲外,我也有整理与其每个专题核心知识点对应的最强学习笔记:
-
出神入化——SpringCloudAlibaba.pdf
-
SpringCloud微服务架构笔记(一).pdf
-
SpringCloud微服务架构笔记(二).pdf
-
SpringCloud微服务架构笔记(三).pdf
-
SpringCloud微服务架构笔记(四).pdf
-
Dubbo框架RPC实现原理.pdf
-
Dubbo最新全面深度解读.pdf
-
Spring Boot学习教程.pdf
-
SpringBoo核心宝典.pdf
-
第一本Docker书-完整版.pdf
-
使用SpringCloud和Docker实战微服务.pdf
-
K8S(kubernetes)学习指南.pdf
[外链图片转存中…(img-BMwXzt8y-1713381422005)]
另外,如果不知道从何下手开始学习呢,小编这边也有对每个微服务的核心知识点手绘了其对应的知识架构体系大纲,不过全是导出的xmind文件,全部的源文件也都在此!
[外链图片转存中…(img-R3ylxSov-1713381422005)]
《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取!