操作系统-02-Ubuntu 常用命令等汇总

Ubuntu

Ubuntu是一个开源软件平台,可以在从智能手机、平板电脑和个人电脑到服务器和云端等各种设备上运行。

ubuntu

Title: Desktop Ubuntu desktop->command: Ctrl+Alt+F2~F6 command->desktop: Ctrl+Alt+F7

Login

  • Change to root user
$ sudu su
  • Login to aliyun
houbinbindeMacBook-Pro:~ houbinbin$ ssh root@139.196.28.125
The authenticity of host '139.196.28.125 (139.196.28.125)' can't be established.
ECDSA key fingerprint is SHA256:TuvleHE4/wRMGxcPesBBf2+cNqQZWYGgidKLcrNme0c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '139.196.28.125' (ECDSA) to the list of known hosts.
root@139.196.28.125's password:
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-86-generic x86_64)* Documentation:  https://help.ubuntu.com/
New release '16.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.Welcome to aliyun Elastic Compute Service!

这个阿里云的Ubuntu是14.04.4, 而如果是真正的Ubuntu 系统,可能会16.04.4及其以后 ,内置php为7.0。可能会导致很不顺利。

Install php5 in Ubuntu

zhihu

sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php5.6 libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xmlrpc
sudo a2dismod php7.0.8
sudo a2enmod php5.6
sudo systemctl restart apache2

install components

git

  • install
root@iZuf60ahcky4k4nfv470juZ:~# apt-get install gitReading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:linux-image-extra-3.13.0-32-generic
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:git-man liberror-perl
Suggested packages:git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitkgitweb git-arch git-bzr git-cvs git-mediawiki git-svn
The following NEW packages will be installed:git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,306 kB of archives.
After this operation, 21.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.aliyun.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB]
Get:2 http://mirrors.aliyun.com/ubuntu/ trusty-security/main git-man all 1:1.9.1-1ubuntu0.3 [699 kB]
Get:3 http://mirrors.aliyun.com/ubuntu/ trusty-security/main git amd64 1:1.9.1-1ubuntu0.3 [2,586 kB]
Fetched 3,306 kB in 2s (1,227 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 121809 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a1.9.1-1ubuntu0.3_all.deb ...
Unpacking git-man (1:1.9.1-1ubuntu0.3) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a1.9.1-1ubuntu0.3_amd64.deb ...
Unpacking git (1:1.9.1-1ubuntu0.3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:1.9.1-1ubuntu0.3) ...
Setting up git (1:1.9.1-1ubuntu0.3) ...
  • test
root@iZuf60ahcky4k4nfv470juZ:~# git --version
git version 1.9.1

jdk

command

  • download jdk1.8
root@iZuf60ahcky4k4nfv470juZ:~/tools# wget http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.tar.gz--2016-09-24 13:18:09--  http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 206.160.170.51, 206.160.170.9
Connecting to download.oracle.com (download.oracle.com)|206.160.170.51|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.tar.gz [following]
--2016-09-24 13:18:10--  https://edelivery.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.9.199.85
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.9.199.85|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2016-09-24 13:18:11--  http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|206.160.170.51|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: ‘jdk-8u101-linux-x64.tar.gz’100%[===============================================================================================================================================================>] 5,307       --.-K/s   in 0s2016-09-24 13:18:12 (712 MB/s) - ‘jdk-8u101-linux-x64.tar.gz’ saved [5307/5307]root@iZuf60ahcky4k4nfv470juZ:~/tools# ls
jdk  jdk-8u101-linux-x64.tar.gz
  • unzip
jdk-8u101-linux-x64.tar.gz: HTML document, ASCII text, with very long lines, with CRLF line terminators
root@iZuf60ahcky4k4nfv470juZ:~/tools/jdk# tar -zxvf jdk-8u101-linux-x64.tar.gzgzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

the mean of optional:

bz2 format  j
gz format    z
c   create
x   unzip
v   detail info
f   file
  • why
root@iZuf60ahcky4k4nfv470juZ:~/tools/jdk# file jdk-8u101-linux-x64.tar.gz
jdk-8u101-linux-x64.tar.gz: HTML document, ASCII text, with very long lines, with CRLF line terminators

Well, we download the jdk into local, and then upload it to the Ubuntu server.

$   scp jdk-8u102-linux-x64.tar.gz root@139.196.28.125:/root/tools/jdk
$   tar -zxvf jdk-8u101-linux-x64.tar.gzroot@iZuf60ahcky4k4nfv470juZ:~/tools/jdk# ls
jdk1.8.0_102  jdk-8u102-linux-x64.tar.gz
root@iZuf60ahcky4k4nfv470juZ:~/tools/jdk# mv jdk1.8.0_102 jdk1.8
root@iZuf60ahcky4k4nfv470juZ:~/tools/jdk# ls
jdk1.8  jdk-8u102-linux-x64.tar.gz
  • config jdk env path

1、edit .bashrc

$   vi ~/.bashrc

You can copy the file if necessary cp .bashrc .bash_original

2、add these at the end of file

export JAVA_HOME=/root/tools/jdk/jdk1.8
export CLASSPATH=${JAVA_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH

3、make it work at once

$   source ~/.bashrc

4、test jdk

$   java -versionjava version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

maven

Before this, you need install the jdkfirst.

  • download
$   wget http://apache.fayea.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz--2016-09-24 14:55:08--  http://apache.fayea.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
Resolving apache.fayea.com (apache.fayea.com)... 119.6.242.164, 119.6.242.165
Connecting to apache.fayea.com (apache.fayea.com)|119.6.242.164|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8491533 (8.1M) [application/x-gzip]
Saving to: ‘apache-maven-3.3.9-bin.tar.gz’100%[===============================================================================================================================================================>] 8,491,533   5.54MB/s   in 1.5s2016-09-24 14:55:10 (5.54 MB/s) - ‘apache-maven-3.3.9-bin.tar.gz’ saved [8491533/8491533]root@iZuf60ahcky4k4nfv470juZ:~/tools/maven# ls
apache-maven-3.3.9-bin.tar.gz
  • unzip
$   tar -zxvf apache-maven-3.3.9-bin.tar.gzroot@iZuf60ahcky4k4nfv470juZ:~/tools/maven# ls
apache-maven-3.3.9  apache-maven-3.3.9-bin.tar.gz
  • config maven

1、edit .bashrc

$   vi ~/.bashrc

2、append these lines at the file end

# set maven environment
export M2_HOME=/root/tools/maven/apache-maven-3.3.9
export PATH=$M2_HOME/bin:$PATH

3、work at once

$   source ~/.bashrc

4、 test maven

$ mvn --versionApache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /root/tools/maven/apache-maven-3.3.9
Java version: 1.8.0_102, vendor: Oracle Corporation
Java home: /root/tools/jdk/jdk1.8/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-86-generic", arch: "amd64", family: "unix"

mysql

install mysql

  • install mysql-server
$   apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:linux-image-extra-3.13.0-32-generic
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server-5.5mysql-server-core-5.5
Suggested packages:libclone-perl libmldbm-perl libnet-daemon-perl libplrpc-perllibsql-statement-perl libipc-sharedcache-perl tinyca mailx
The following NEW packages will be installed:libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-servermysql-server-5.5 mysql-server-core-5.5
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,927 kB/8,971 kB of archives.
After this operation, 96.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main mysql-common all 5.5.49-0ubuntu0.14.04.1404  Not Found [IP: 112.124.140.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libmysqlclient18 amd64 5.5.49-0ubuntu0.14.04.1404  Not Found [IP: 112.124.140.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main mysql-client-core-5.5 amd64 5.5.49-0ubuntu0.14.04.1404  Not Found [IP: 112.124.140.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main mysql-client-5.5 amd64 5.5.49-0ubuntu0.14.04.1404  Not Found [IP: 112.124.140.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main mysql-server-core-5.5 amd64 5.5.49-0ubuntu0.14.04.1404  Not Found [IP: 112.124.140.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main mysql-server-5.5 amd64 5.5.49-0ubuntu0.14.04.1404  Not Found [IP: 112.124.140.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main mysql-server all 5.5.49-0ubuntu0.14.04.1404  Not Found [IP: 112.124.140.210 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/main/m/mysql-5.5/mysql-common_5.5.49-0ubuntu0.14.04.1_all.deb  404  Not Found [IP: 112.124.140.210 80]E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.49-0ubuntu0.14.04.1_amd64.deb  404  Not Found [IP: 112.124.140.210 80]E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-core-5.5_5.5.49-0ubuntu0.14.04.1_amd64.deb  404  Not Found [IP: 112.124.140.210 80]E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-5.5_5.5.49-0ubuntu0.14.04.1_amd64.deb  404  Not Found [IP: 112.124.140.210 80]E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-core-5.5_5.5.49-0ubuntu0.14.04.1_amd64.deb  404  Not Found [IP: 112.124.140.210 80]E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-5.5_5.5.49-0ubuntu0.14.04.1_amd64.deb  404  Not Found [IP: 112.124.140.210 80]E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/main/m/mysql-5.5/mysql-server_5.5.49-0ubuntu0.14.04.1_all.deb  404  Not Found [IP: 112.124.140.210 80]E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  • update
$   apt-get update...
  • re-install
$  apt-get install mysql-server...
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.aliyun.com/ubuntu/ trusty-security/main mysql-common all 5.5.52-0ubuntu0.14.04.1 [12.9 kB]
Get:2 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libmysqlclient18 amd64 5.5.52-0ubuntu0.14.04.1 [596 kB]
Get:3 http://mirrors.aliyun.com/ubuntu/ trusty-security/main mysql-client-core-5.5 amd64 5.5.52-0ubuntu0.14.04.1 [705 kB]
Get:4 http://mirrors.aliyun.com/ubuntu/ trusty-security/main mysql-client-5.5 amd64 5.5.52-0ubuntu0.14.04.1 [1,468 kB]
Get:5 http://mirrors.aliyun.com/ubuntu/ trusty-security/main mysql-server-core-5.5 amd64 5.5.52-0ubuntu0.14.04.1 [3,282 kB]
Get:6 http://mirrors.aliyun.com/ubuntu/ trusty-security/main mysql-server-5.5 amd64 5.5.52-0ubuntu0.14.04.1 [1,845 kB]
Get:7 http://mirrors.aliyun.com/ubuntu/ trusty-security/main mysql-server all 5.5.52-0ubuntu0.14.04.1 [11.3 kB]
  • install mysql-client
$   apt-get install mysql-clientReading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:linux-image-extra-3.13.0-32-generic
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:mysql-client
0 upgraded, 1 newly installed, 0 to remove and 89 not upgraded.
Need to get 11.1 kB of archives.
After this operation, 130 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/ubuntu/ trusty-security/main mysql-client all 5.5.52-0ubuntu0.14.04.1 [11.1 kB]
Fetched 11.1 kB in 0s (970 kB/s)
Selecting previously unselected package mysql-client.
(Reading database ... 123003 files and directories currently installed.)
Preparing to unpack .../mysql-client_5.5.52-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-client (5.5.52-0ubuntu0.14.04.1) ...
Setting up mysql-client (5.5.52-0ubuntu0.14.04.1) ...
  • install libmysqlclient-dev
$   apt-get install libmysqlclient-dev
  • test mysql
$   netstat -tap | grep mysqltcp        0      0 localhost:mysql         *:*                     LISTEN      7506/mysqld
  • login mysql
$   mysql -u root -pWelcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 42
Server version: 5.5.52-0ubuntu0.14.04.1 (Ubuntu)Copyright (c) 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.$   show databases;+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)
  • attention

Table name in ubuntu is case sensitive, so. If you want it works like in windows. Just:

add the content under [mysqld], and restart it.

vi /etc/mysql/my.cnflower_case_table_names = 1

and then use show variables like 'lower_%'test it:

+------------------------+-------+
| Variable_name          | Value |
+------------------------+-------+
| lower_case_file_system | OFF   |
| lower_case_table_names | 1     |
+------------------------+-------+

1、Start MySQL

service mysql startor /etc/inint.d/mysql start

2、Stop MySQL

service mysql stopor /etc/inint.d/mysql stop

3、Restart MySQL

service mysql restartor /etc/inint.d/mysql restart

  • Uninstall mysql
service mysql stop
sudo apt-get autoremove --purge mysql-server-5.0
sudo apt-get remove mysql-server
sudo apt-get autoremove mysql-server
sudo apt-get remove mysql-common

tomcat

  • download
$   wget http://mirrors.cnnic.cn/apache/tomcat/tomcat-9/v9.0.0.M10/bin/apache-tomcat-9.0.0.M10.tar.gz
  • unzip
$   ls
apache-tomcat-9.0.0.M10.tar.gz$   tar -zxvf apache-tomcat-9.0.0.M10.tar.gz
$   ls
apache-tomcat-9.0.0.M10  apache-tomcat-9.0.0.M10.tar.gz$   mv apache-tomcat-9.0.0.M10 apache-tomcat9
  • set utf8

add URIEncoding="UTF-8"in conf/server.xmlat:

<Connector port="8080" protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443" />

Visit Web

W3m

  • install
sudo apt-get install w3m w3m-img -y
  • zh_CN
sudo apt-get install zhcon -y

Useful command

  • restart
$   reboot
  • get all run threads
$   ps -ef
  • get version
$   apt-get install mysql-server-

use double tabto get the version list.

方向键错乱

ubuntu下 vi输入方向键会变成ABCD,这是ubuntu预装的是vim tiny版本,安装vim full版本即可解决。

先卸载vim-tiny:

$ sudo apt-get remove vim-common

再安装vim full:

$ sudo apt-get install vim

22 port

Ubuntu 默认22端口是没有开启的。

ssh: connect to host 192.168.1.105 port 22: Connection refused
lost connection
  • check
ps -e|grep ssh

啥都没

  • install
$   sudo apt-get install openssh-server

纯命令行启动

此方法应该只适用于14-*.

blog zh_CN

$ sudo vi /etc/default/grub

修改如下:

  1. 注释 GRUB_CMDLINE_LINUX_DEFAULT
  2. GRUB_CMDLINE_LINUX=“” 改成 GRUB_CMDLINE_LINUX=“text”
  3. GRUB_TERMINAL=console 注释去除
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="text"# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console

重新生成配置文件

$   sudo update-grub

保持电源关机后仍然运行

修改 Login Manager的配置文件。 打开终端:

$   sudo vi /etc/systemd/logind.conf

然后将其中的:

#HandleLidSwitch=suspend 改成: HandleLidSwitch=ignore

然后重启服务:

$   sudo restart systemd-logind

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/671160.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

AI嵌入式K210项目(27)-条形码识别

文章目录 前言一、什么是条形码&#xff1f;二、实验准备三、实验过程四、API接口总结 前言 本章介绍基于机器视觉实现条形码识别&#xff0c;主要包含两个过程&#xff0c;首先检测图像中是否有条形码&#xff0c;如果有则框出并打印条形码信息&#xff1b; 一、什么是条形码…

ShardingSphere实现openGauss分布式架构

本文档采用openGauss结合ShardingSphere中间件的架构&#xff0c;实现openGauss数据库分布式OLAP场景的环境部署。 术语说明&#xff1a; 开源数据库引擎&#xff1a;openGauss shardingsphere Proxy&#xff1a;定位为透明化的数据库代理端&#xff0c;提供封装了数据库二进…

示波器的电压怎么和测量的电压不一样,空比增加以后 示波器显示的电压反而降低了?

这两天在调电机&#xff0c;发现我用pwm信号&#xff0c;发送给示波器&#xff0c;但是示波器测量的电压和万用表测量的完全不一样&#xff0c;而有奇怪的现象&#xff0c;空比增加以后 示波器显示的电压反而降低了。 最后发现是通道没有设置&#xff0c;要设置成直流模式 点ch…

docker之程序镜像的制作

目录 一、每种资源的预安装&#xff08;基础&#xff09; 安装 nginx安装 redis 二、dockerfile文件制作&#xff08;基础&#xff09; 打包 redis 镜像 创建镜像制作空间制作dockerfile 打包 nginx 镜像 三、创建组合镜像&#xff08;方式一&#xff09; 生成centos容器并…

补题:leetcode第382场周赛 3022. 给定操作次数内使剩余元素的或值最小

3022. 给定操作次数内使剩余元素的或值最小 - 力扣&#xff08;LeetCode&#xff09; 拆位 n个数进行或运算的结果最小&#xff0c;每次操作可以对相邻的两个数进行与运算&#xff0c;至多进行k次操作 n个数进行或运算&#xff0c;可以对每个数进行拆解&#xff0c;拆解成最小…

分享springboot框架的一个开源的本地开发部署教程(若依开源项目开发部署过程分享持续更新二开宝藏项目PostgresSQL数据库版)

1首先介绍下若依项目&#xff1a; 若依是一个基于Spring Boot和Spring Cloud技术栈开发的多租户权限管理系统。该开源项目提供了一套完整的权限管理解决方案&#xff0c;包括用户管理、角色管理、菜单管理、部门管理、岗位管理等功能。 若依项目采用前后端分离的架构&#xf…

使用代理IP有风险吗?如何安全使用代理IP?

代理IP用途无处不在。它们允许您隐藏真实IP地址&#xff0c;从而实现匿名性和隐私保护。这对于保护个人信息、绕过地理受限的内容或访问特定网站都至关重要。 然而&#xff0c;正如任何技术工具一样&#xff0c;代理IP地址也伴随着潜在的风险和威胁。不法分子可能会滥用代理IP…

ue5 蓝图内修改组件附加的插槽

Target是目标,Parent是要加到哪个骨骼上,socketName是骨骼对应的插槽

基于Springboot的考编论坛网站的设计与实现(有报告)。Javaee项目,springboot项目。

演示视频&#xff1a; 基于Springboot的考编论坛网站的设计与实现&#xff08;有报告&#xff09;。Javaee项目&#xff0c;springboot项目。 项目介绍&#xff1a; 采用M&#xff08;model&#xff09;V&#xff08;view&#xff09;C&#xff08;controller&#xff09;三层…

【华为云】云上两地三中心实践实操

写在前面 应用上云之后&#xff0c;如何进行数据可靠性以及业务连续性的保障是非常关键的&#xff0c;通过华为云云上两地三中心方案了解相关方案认证地址&#xff1a;https://connect.huaweicloud.com/courses/learn/course-v1:HuaweiXCBUCNXI057Self-paced/about当前内容为华…

vulnhub中Beelzebub靶机

渗透思路 一.信息收集1.网段探测2.端口探测3.常见漏洞扫描4.目录扫描5.web页面分析 二.渗透继续目录扫描ssh连接提权提权&#xff0c;flag 一.信息收集 1.网段探测 ┌──(root㉿kali)-[~] └─# nmap -Pn 192.168.0.0/24 --min-rate 10000 Starting …

awd总结

总结&#xff1a; 由于是第一次参加AWD比赛&#xff0c;各方面经验都不足&#xff0c;在参赛的前几天也是疯狂搜集各种脚本、框架、工具等&#xff0c;同时也参考b站的视频进行学习&#xff0c;我发现就是还是实操才能更快的学习 我觉得就是我前期的准备工作不足&#xff0c;…

【sentinel流量卫兵配置持久化到Nacos】

sentinel流量卫兵配置持久化到Nacos 概述&#xff1a; 一、添加配置二、配置说明限流规则配置&#xff1a;降级规则配置&#xff1a;热点规则配置&#xff1a;授权规则配置&#xff1a;系统规则配置&#xff1a; 三、服务整合 概述&#xff1a; 控制台配置的参数&#xff0c;默…

STM32WLE5JC

Sub-GHz 无线电介绍 sub-GHz无线电是一种超低功耗sub-GHz无线电&#xff0c;工作在150-960MHz ISM频段。 在发送和接收中采用LoRa和&#xff08;G&#xff09;FSK调制&#xff0c;仅在发送中采用BPSK/(G)MSK调制&#xff0c;可以在距离、数据速率和功耗之间实现最佳权衡。 这…

Maven的安装以及配置(超级详细版)

前言 至于什么是Maven&#xff0c;大家可以理解为之前的Vue一样&#xff0c;也是通过操控对象映射来使用的 他内部还有很多的插件用于实现对应的功能&#xff0c;例如打包插件&#xff0c;或是测试 maven下载 Maven – Download Apache Maven apache下的开源项目&#xff0c…

Java Character源码剖析

Character类除了封装了一个char外&#xff0c;还封装了Unicode字符级别的各种操作&#xff0c;是Java文本处理的基础。下面结合源码分析Character的贡献。 Unicode 也许你没听过Unicode&#xff0c;但应该见过UTF-8。UTF-8&#xff08;8-bit Unicode Transformation Format&a…

Linux的进程信号

注意&#xff1a;首先需要提醒一个事情&#xff0c;本节提及的进程信号和下节的信号量没有任何关系&#xff0c;请您区分对待。 1.信号概念 1.1.生活中的信号 我们在生活中通过体验现实&#xff0c;记忆了一些信号和对应的处理动作&#xff0c;这意味着信号有以下相关的特点&…

ROS笔记二:launch

目录 launch node标签 参数 参数服务器 节点分组 launch launch文件是一种可以可实现多节点启动和参数配置的xml文件,launch文件用于启动和配置ROS节点、参数和其他相关组件。launch文件通常使用XML格式编写&#xff0c;其主要目的是方便地启动ROS节点和设置节点之间的连…

Kuberntes权威指南

一、目录 二、Kubernetes入门 三、Kubernetes核心原理 四、Kubernetes开发指南 五、Kubernetes运维指南 六、Kubernetes高级案例进阶 七、Kubernetes源码导读

20240206三次握手四次挥手

TCP和UDP异同点 相同点&#xff1a;同属于传输层的协议 不同点&#xff1a; TCP ----> 稳定 1> 提供面向连接的&#xff0c;可靠的数据传输服务 2> 传输过程中&#xff0c;数据无误、数据无丢失、数据无失序、数据无重复 1、TCP会给每个数据包编上编号&#xff…