前端技术
HTML
CSS
Javascript
前端框架和UI库
VUE
ReactJS
AngularJS
JQuery
NodeJS
JSON
Element-UI
Bootstrap
Material UI
服务端和客户端
Java
Python
PHP
Golang
Scala
Kotlin
Groovy
Ruby
Lua
.net
c#
c++
后端WEB和工程框架
SpringBoot
SpringCloud
Struts2
MyBatis
Hibernate
Tornado
Beego
Go-Spring
Go Gin
Go Iris
Dubbo
HessianRPC
Maven
Gradle
数据库
MySQL
Oracle
Mongo
中间件与web容器
Redis
MemCache
Etcd
Cassandra
Kafka
RabbitMQ
RocketMQ
ActiveMQ
Nacos
Consul
Tomcat
Nginx
Netty
大数据技术
Hive
Impala
ClickHouse
DorisDB
Greenplum
PostgreSQL
HBase
Kylin
Hadoop
Apache Pig
ZooKeeper
SeaTunnel
Sqoop
Datax
Flink
Spark
Mahout
数据搜索与日志
ElasticSearch
Apache Lucene
Apache Solr
Kibana
Logstash
数据可视化与OLAP
Apache Atlas
Superset
Saiku
Tesseract
系统与容器
Linux
Shell
Docker
Kubernetes
[ bin]的搜索结果
这里是文章列表。热门标签的颜色随机变换,标签颜色没有特殊含义。
点击某个标签可搜索标签相关的文章。
点击某个标签可搜索标签相关的文章。
转载文章
...荐用ip位数log-bin= mysql-bin 二进制日志,后面指定存放位置。如果只是指定名字,默认存放在/var/lib/mysql下lower_case_table_names=1 不区分大小写binlog-format=ROW 二进制日志文件格式log-slave-updates=True slave更新是否记入日志sync-master-info=1 值为1确保信息不会丢失slave-parallel-threads=3 同时启动多少个复制线程,最多与要复制的数据库数量相等即可binlog-checksum=CRC32 效验码master-verify-checksum=1 启动主服务器效验slave-sql-verify-checksum=1 启动从服务器效验[galera][embedded][mariadb][mariadb-10.6][root@mster-k8s mysql] 11.2 修改从库配置 [mysqld]character-set-server=utf8collation-server=utf8_general_ciserver_id=14log-bin= mysql-bin log-bin是二进制文件relay_log = relay-bin 中继日志, 后面指定存放位置。如果只是指定名字,默认存放在/var/lib/mysql下lower_case_table_names=1 11.3 重启主库和从库服务 systemctl restart mariad 11.4 master节点配置 MariaDB [huawei]> grant replication slave, replication client on . to 'liu'@'%' identified by '123456';Query OK, 0 rows affected (0.001 sec)MariaDB [huawei]> show master status;+------------------+----------+--------------+------------------+| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |+------------------+----------+--------------+------------------+| mysql-bin.000001 | 4990 | | |+------------------+----------+--------------+------------------+1 row in set (0.000 sec)MariaDB [huawei]> select binlog_gtid_pos('mysql-bin.000001', 4990 );+-------------------------------------------+| binlog_gtid_pos('mysql-bin.000001', 4990) |+-------------------------------------------+| 0-13-80 |+-------------------------------------------+1 row in set (0.000 sec)MariaDB [huawei]> flush privileges; 11.5 slave节点配置 MariaDB [(none)]> set global gtid_slave_pos='0-13-80';Query OK, 0 rows affected (0.004 sec)MariaDB [(none)]> change master to master_host='101.34.141.216',master_user='liu',master_password='123456',master_use_gtid=slave_pos;Query OK, 0 rows affected (0.008 sec)MariaDB [(none)]> start slave;Query OK, 0 rows affected (0.005 sec)MariaDB [(none)]> 11.6 验证salve状态 MariaDB [(none)]> show slave status\G 1. row Slave_IO_State: Waiting for master to send eventMaster_Host: 101.34.141.216Master_User: liuMaster_Port: 3306Connect_Retry: 60Master_Log_File: mysql-bin.000001Read_Master_Log_Pos: 13260Relay_Log_File: relay-bin.000002Relay_Log_Pos: 10246Relay_Master_Log_File: mysql-bin.000001Slave_IO_Running: YesSlave_SQL_Running: YesReplicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0Last_Error: Skip_Counter: 0Exec_Master_Log_Pos: 13260Relay_Log_Space: 10549Until_Condition: NoneUntil_Log_File: Until_Log_Pos: 0Master_SSL_Allowed: NoMaster_SSL_CA_File: 本篇文章为转载内容。原文链接:https://blog.csdn.net/l363130002/article/details/126121255。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-07-12 10:11:01
310
转载
转载文章
...、zh_cn.lm.bin命名为language-model.lm.bin、zh_cn.dic中dic改为dict格式。即与en-US文件夹中命名一样。 参考:https://blog.csdn.net/qq_32643313/article/details/99936268 致以感谢 后序 浅显的学习语音识别,不足之处甚多,深究后,将更新文章。 感谢跟随老师的代码在未知领域里探索,希望我能走的更高更远 本篇文章为转载内容。原文链接:https://blog.csdn.net/qq_46092061/article/details/113945654。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-01-27 19:34:15
277
转载
Linux
...s libvirt-bin 如果显示错误信息,则可能存在软件故障 3. 配置文件问题 虚拟机配置文件可能存在问题,导致虚拟机无法正确启动。 例如: $ cat /etc/libvirt/qemu.conf 检查配置文件中的虚拟机设置是否正确 4. 系统环境问题 可能是系统的环境变量设置有问题,影响了虚拟机的启动。 例如: $ export LIBVIRT_DEFAULT_URI=qemu:///system 设置虚拟机默认URI 三、解决方法 1. 更新硬件驱动程序 确保你的硬件驱动程序是最新的,这可以提高虚拟机的性能并避免一些常见问题。 2. 重新安装虚拟机软件 如果怀疑是软件的问题,可以尝试卸载并重新安装虚拟机软件。 3. 修改配置文件 根据提示检查并修改虚拟机配置文件,确保其中的各项设置都是正确的。 4. 检查环境变量 确认虚拟机默认URI的设置是正确的,以及其他的环境变量设置是否影响了虚拟机的启动。 四、结论 “虚拟机无法启动”是一个常见的问题,需要我们从多个角度去分析和解决。通过本文的学习,相信你已经对这个问题有了更深入的理解。在实际动手解决问题的时候,咱们要有胆量去尝试各种各样的方法,不断摸索,直到找到那个和自己最对味儿、最适合的解决方案为止。毕竟,就像老话说的,“问题就是机会”,每次我们面对和解决一个问题,其实就是在迎接一个学习新知识、提升自我的好时机,每一次挑战都是一次难得的成长锻炼。 五、后记 在使用Linux的过程中,我们总会遇到各种各样的问题。面对这些问题,我们不能退缩,也不能盲目地寻找答案。我们需要有耐心,有毅力,有一颗探索的心。只有这样,我们才能在这个满是挑战的大千世界里持续地往前冲,不断突破自己的极限,一次又一次地超越自我。
2023-09-18 22:36:32
153
素颜如水_t
转载文章
...sr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sharescm/jdk1.6/bin: No such file or directory 我将rarlinux解压缩在/opt目录下 然后执行:ln -s /opt/rar/unrar /usr/bin/unrar 可以当我运行 iFile:/bin unrar -bash: /bin/unrar: No such file or directory 当执行:ln -s /opt/rar/unrar /bin/unrar时则可以正常运行 请详细的解释一下path和/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin这几个目录有什么区别 | 请详细的解释一下path和/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin这几个目录有什么区别 -------------------------- 没必然关系 PATH(非path,linux下严格区分大小写)是环境变量 当你输入一个命令是 回去PATH变量的那些路径下去找该命令 既然说了PATH是一个变量 你为什么要执行$PATH?! 从你的内容里可以看出你的PATH的值是/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sharescm/jdk1.6/bin 当你输入一个命令时 就会默认去这些目录下找 -bash: /bin/unrar: No such file or directory -------- 没有/bin/unrar 你执行 当然会报No such file or directory 这句英语的意思很明显了吧 你ln -s /opt/rar/unrar /bin/unrar时则可以正常运行 已经创建了一个链接/bin/unrar 那么/bin/unrar就是存在的了 当然可以执行 | 学linux 看鸟哥http://linux.vbird.org/ | 用这么多目录是为了满足不同用户的,另外PATH本身就是为了不同程序的使用而存在的 本篇文章为转载内容。原文链接:https://blog.csdn.net/weixin_39886172/article/details/116808425。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-02-05 18:58:56
39
转载
转载文章
...2.0alpha2-bin.zip这个包,在build目录下有barcode4j.jar,在lib目录下有avalon-framework-4.2.0.jar, 将barcode4j.jar和avalon-framework-4.2.0.jar添加到项目的lib中,刷新工程,然后在项目配置中将这两个jar包添加到classpath里面去。 4.在web项目中添加barcode4j.jar和avalon-framework-4.2.0.jar文件。(同3) 5.配置web.xml文件 <servlet> <servlet-name>BarcodeServlet</servlet-name> <servlet-class>com.yourname.BarcodeServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>BarcodeServlet</servlet-name> <url-pattern>/barcode</url-pattern> </servlet-mapping> 6.在页面使用<img>标签显示条形码图片<img src="<%=request.getContextPath() %>/barcode?msg=12345678"/> 注:参数说明(BarcodeServlet源代码中可以查看参数): msg:条形码文字; fmt:图片格式,默认svg,可以设置fmt = jpeg/png;type = code128/code39; hrp:条形码文字位置:hrp = top,默认为bottom hrsize:条形码文字大小 以mm为单位 <img src="<%=request.getContextPath() %>/barcode?msg=12345678&fmt=jpeg&hrp=top"/> 本篇文章为转载内容。原文链接:https://blog.csdn.net/kinmet2010/article/details/6921438。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-12-31 23:00:52
93
转载
Golang
...largefile.bin")) if err != nil { select { case <-ctx.Done(): fmt.Println("Read operation timed out.") default: panic(err) } } 4. 并发操作 同步与互斥 Go的并发特性使得同时对多个文件进行操作变得轻而易举,但同时也需要注意同步问题。在日常使用中,比如大家伙都在同一个文件夹里操作文件的时候,咱们得聪明点,巧妙运用像sync.Mutex这样的同步工具,来避免出现资源争夺的情况哈。就像是大家一起玩一个游戏,要轮流来,不能抢,这样才能保证每个人的操作都能顺利完成,不乱套。 go import ( "os" "sync" ) var mutex = &sync.Mutex{} func writeFile(filename string, content string) { mutex.Lock() defer mutex.Unlock() file, err := os.Create(filename) if err != nil { panic(err) } defer file.Close() _, err = file.WriteString(content) if err != nil { panic(err) } } // 在多个goroutine中调用writeFile函数,此时它们会按照顺序依次执行 总之,熟练掌握Go语言进行文件系统操作的关键在于理解并正确应用相关API,严谨对待错误处理,充分利用Go的并发特性并妥善解决由此带来的同步问题。希望以上的探讨和实例代码能实实在在帮到你,让你更溜地掌握Go语言在操作文件系统方面的绝活儿,这样一来,你的程序设计不仅效率更高,还更稳更靠谱!
2024-02-24 11:43:21
428
雪落无痕
Maven
...ven-X.X.X-bin.tar.gz(X.X.X为版本号)。将此目录添加至系统的PATH环境变量即可全局使用。 bash Linux/Mac tar -xzf apache-maven-X.X.X-bin.tar.gz export MVN_HOME=路径/to/maven_home export PATH=$MVN_HOME/bin:$PATH powershell Windows $env:Path += ";$env:mvn_home\bin" 2. 配置本地仓库与远程仓库 Maven在构建过程中会首先检查本地仓库是否有所需依赖,如果没有则从远程仓库下载。配置这两个仓库需要在settings.xml文件中进行: xml path/to/local/repo central https://repo1.maven.org/maven2/ 四、自定义下载Maven引入报错分析 当我们自定义下载Maven并正确配置后,常见的引入报错主要有以下几种: 1. 标签错误 如果我们在pom.xml文件中的标签内书写依赖声明不规范,如缺少groupId、artifactId、version等属性,Maven会在编译阶段抛出异常。 示例: xml example-dependency 正确写法: xml com.example example-dependency 1.0.0 2. 依赖版本冲突 当两个或多个模块引用了同一个依赖的不同版本,导致版本冲突时,Maven无法确定使用哪个版本,从而引发依赖冲突。 示例: xml ... org.slf4j slf4j-api 1.7.30 ... org.slf4j slf4j-api 2.0.0 解决方案:统一各模块对同一依赖使用的版本,或者利用Maven的dependencyManagement或dependencyResolutionProblemAggregator插件来处理。 五、总结与反思 面对自定义下载Maven引入报错问题,我们需要仔细排查并理解依赖声明、配置设置、版本管理等方面可能存在的问题。有时候,这不仅仅是在考验我们的编程功夫,更是实实在在地磨炼我们搞定问题、排解代码bug的硬实力。想要真正地玩转Maven,让这个家伙在项目构建这条道路上为你效力到极致,那就必须不断动手实践、积极摸索,没别的捷径可走。所以,请勇敢地面对报错,学会从中吸取教训,相信每一个Maven新手最终都能成为真正的专家!
2024-02-05 11:45:22
90
心灵驿站_t
转载文章
...p在msql文件夹+bin+mysqldump.exe中,相当于一个小软件.执行的话是在dos命令窗操作的. 其实就是导出数据库数据,在navacat中可以如下图导出 (2)数据还原: 若是从navacat中就是把外部的.sql文件数据导入到数据库中去.如下图 本篇文章为转载内容。原文链接:https://blog.csdn.net/qq_42847571/article/details/102686087。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-04-26 19:09:16
83
转载
转载文章
...time=10 Binary Logging. 二进制日志。 log-bin Error Logging. 错误日志记录。 log-error="DESKTOP-NF9QETB.err" Server Id. server-id=1 Indicates how table and database names are stored on disk and used in MySQL. 指示表名和数据库名如何存储在磁盘上并在MySQL中使用。 Value = 0: Table and database names are stored on disk using the lettercase specified in the CREATE TABLE or CREATE DATABASE statement. Name comparisons are case sensitive. You should not set this variable to 0 if you are running MySQL on a system that has case-insensitive file names (such as Windows or macOS). Value = 0:表名和数据库名使用CREATE Table或CREATE database语句中指定的lettercase存储在磁盘上。名称比较区分大小写。如果您在一个具有不区分大小写文件名(如Windows或macOS)的系统上运行MySQL,则不应将该变量设置为0。 Value = 1: Table names are stored in lowercase on disk and name comparisons are not case-sensitive. MySQL converts all table names to lowercase on storage and lookup. This behavior also applies to database names and table aliases. 表名以小写存储在磁盘上,并且名称比较不区分大小写。MySQL在存储和查找时将所有表名转换为小写。此行为也适用于数据库名称和表别名。 Value = 3, Table and database names are stored on disk using the lettercase specified in the CREATE TABLE or CREATE DATABASE statement, but MySQL converts them to lowercase on lookup. Name comparisons are not case sensitive. This works only on file systems that are not case-sensitive! InnoDB table names and view names are stored in lowercase, as for Value = 1.表名和数据库名使用CREATE Table或CREATE database语句中指定的lettercase存储在磁盘上,但是MySQL在查找时将它们转换为小写。名称比较不区分大小写。这只适用于不区分大小写的文件系统!InnoDB表名和视图名以小写存储,Value = 1。 NOTE: lower_case_table_names can only be configured when initializing the server. Changing the lower_case_table_names setting after the server is initialized is prohibited. lower_case_table_names=1 Secure File Priv. 权限安全文件 secure-file-priv="C:/ProgramData/MySQL/MySQL Server 8.0/Uploads" The maximum amount of concurrent sessions the MySQL server will allow. One of these connections will be reserved for a user with SUPER privileges to allow the administrator to login even if the connection limit has been reached. MySQL服务器允许的最大并发会话量。这些连接中的一个将保留给具有超级特权的用户,以便允许管理员登录,即使已经达到连接限制。 max_connections=151 The number of open tables for all threads. Increasing this value increases the number of file descriptors that mysqld requires. Therefore you have to make sure to set the amount of open files allowed to at least 4096 in the variable "open-files-limit" in 为所有线程打开的表的数量。增加这个值会增加mysqld需要的文件描述符的数量。因此,您必须确保在[mysqld_safe]节中的变量“open-files-limit”中将允许打开的文件数量至少设置为4096 section [mysqld_safe] table_open_cache=2000 Maximum size for internal (in-memory) temporary tables. If a table grows larger than this value, it is automatically converted to disk based table This limitation is for a single table. There can be many of them. 内部(内存)临时表的最大大小。如果一个表比这个值大,那么它将自动转换为基于磁盘的表。可以有很多。 tmp_table_size=94M How many threads we should keep in a cache for reuse. When a client disconnects, the client's threads are put in the cache if there aren't more than thread_cache_size threads from before. This greatly reduces the amount of thread creations needed if you have a lot of new connections. (Normally this doesn't give a notable performance improvement if you have a good thread implementation.) 我们应该在缓存中保留多少线程以供重用。当客户机断开连接时,如果之前的线程数不超过thread_cache_size,则将客户机的线程放入缓存。如果您有很多新连接,这将大大减少所需的线程创建量(通常,如果您有一个良好的线程实现,这不会带来显著的性能改进)。 thread_cache_size=10 MyISAM Specific options The maximum size of the temporary file MySQL is allowed to use while recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE. If the file-size would be bigger than this, the index will be created through the key cache (which is slower). MySQL允许在重新创建索引时(在修复、修改表或加载数据时)使用临时文件的最大大小。如果文件大小大于这个值,那么索引将通过键缓存创建(这比较慢)。 myisam_max_sort_file_size=100G If the temporary file used for fast index creation would be bigger than using the key cache by the amount specified here, then prefer the key cache method. This is mainly used to force long character keys in large tables to use the slower key cache method to create the index. myisam_sort_buffer_size=179M Size of the Key Buffer, used to cache index blocks for MyISAM tables. Do not set it larger than 30% of your available memory, as some memory is also required by the OS to cache rows. Even if you're not using MyISAM tables, you should still set it to 8-64M as it will also be used for internal temporary disk tables. 如果用于快速创建索引的临时文件比这里指定的使用键缓存的文件大,则首选键缓存方法。这主要用于强制大型表中的长字符键使用较慢的键缓存方法来创建索引。 key_buffer_size=8M Size of the buffer used for doing full table scans of MyISAM tables. Allocated per thread, if a full scan is needed. 用于对MyISAM表执行全表扫描的缓冲区的大小。如果需要完整的扫描,则为每个线程分配。 read_buffer_size=256K read_rnd_buffer_size=512K INNODB Specific options INNODB特定选项 innodb_data_home_dir= Use this option if you have a MySQL server with InnoDB support enabled but you do not plan to use it. This will save memory and disk space and speed up some things. 如果您启用了一个支持InnoDB的MySQL服务器,但是您不打算使用它,那么可以使用这个选项。这将节省内存和磁盘空间,并加快一些事情。skip-innodb skip-innodb If set to 1, InnoDB will flush (fsync) the transaction logs to the disk at each commit, which offers full ACID behavior. If you are willing to compromise this safety, and you are running small transactions, you may set this to 0 or 2 to reduce disk I/O to the logs. Value 0 means that the log is only written to the log file and the log file flushed to disk approximately once per second. Value 2 means the log is written to the log file at each commit, but the log file is only flushed to disk approximately once per second. 如果设置为1,InnoDB将在每次提交时将事务日志刷新(fsync)到磁盘,这将提供完整的ACID行为。如果您愿意牺牲这种安全性,并且正在运行小型事务,您可以将其设置为0或2,以将磁盘I/O减少到日志。值0表示日志仅写入日志文件,日志文件大约每秒刷新一次磁盘。值2表示日志在每次提交时写入日志文件,但是日志文件大约每秒只刷新一次磁盘。 innodb_flush_log_at_trx_commit=1 The size of the buffer InnoDB uses for buffering log data. As soon as it is full, InnoDB will have to flush it to disk. As it is flushed once per second anyway, it does not make sense to have it very large (even with long transactions).InnoDB用于缓冲日志数据的缓冲区大小。一旦它满了,InnoDB就必须将它刷新到磁盘。由于它无论如何每秒刷新一次,所以将它设置为非常大的值是没有意义的(即使是长事务)。 innodb_log_buffer_size=5M InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and row data. The bigger you set this the less disk I/O is needed to access data in tables. On a dedicated database server you may set this parameter up to 80% of the machine physical memory size. Do not set it too large, though, because competition of the physical memory may cause paging in the operating system. Note that on 32bit systems you might be limited to 2-3.5G of user level memory per process, so do not set it too high. 与MyISAM不同,InnoDB使用缓冲池来缓存索引和行数据。设置的值越大,访问表中的数据所需的磁盘I/O就越少。在专用数据库服务器上,可以将该参数设置为机器物理内存大小的80%。但是,不要将它设置得太大,因为物理内存的竞争可能会导致操作系统中的分页。注意,在32位系统上,每个进程的用户级内存可能被限制在2-3.5G,所以不要设置得太高。 innodb_buffer_pool_size=20M Size of each log file in a log group. You should set the combined size of log files to about 25%-100% of your buffer pool size to avoid unneeded buffer pool flush activity on log file overwrite. However, note that a larger logfile size will increase the time needed for the recovery process. 日志组中每个日志文件的大小。您应该将日志文件的合并大小设置为缓冲池大小的25%-100%,以避免在覆盖日志文件时出现不必要的缓冲池刷新活动。但是,请注意,较大的日志文件大小将增加恢复过程所需的时间。 innodb_log_file_size=48M Number of threads allowed inside the InnoDB kernel. The optimal value depends highly on the application, hardware as well as the OS scheduler properties. A too high value may lead to thread thrashing. InnoDB内核中允许的线程数。最优值在很大程度上取决于应用程序、硬件以及OS调度程序属性。过高的值可能导致线程抖动。 innodb_thread_concurrency=9 The increment size (in MB) for extending the size of an auto-extend InnoDB system tablespace file when it becomes full. 增量大小(以MB为单位),用于在表空间满时扩展自动扩展的InnoDB系统表空间文件的大小。 innodb_autoextend_increment=128 The number of regions that the InnoDB buffer pool is divided into. For systems with buffer pools in the multi-gigabyte range, dividing the buffer pool into separate instances can improve concurrency, by reducing contention as different threads read and write to cached pages. InnoDB缓冲池划分的区域数。对于具有多gb缓冲池的系统,将缓冲池划分为单独的实例可以提高并发性,因为不同的线程对缓存页面的读写会减少争用。 innodb_buffer_pool_instances=8 Determines the number of threads that can enter InnoDB concurrently. 确定可以同时进入InnoDB的线程数 innodb_concurrency_tickets=5000 Specifies how long in milliseconds (ms) a block inserted into the old sublist must stay there after its first access before it can be moved to the new sublist. 指定插入到旧子列表中的块必须在第一次访问之后停留多长时间(毫秒),然后才能移动到新子列表。 innodb_old_blocks_time=1000 It specifies the maximum number of .ibd files that MySQL can keep open at one time. The minimum value is 10. 它指定MySQL一次可以打开的.ibd文件的最大数量。最小值是10。 innodb_open_files=300 When this variable is enabled, InnoDB updates statistics during metadata statements. 当启用此变量时,InnoDB会在元数据语句期间更新统计信息。 innodb_stats_on_metadata=0 When innodb_file_per_table is enabled (the default in 5.6.6 and higher), InnoDB stores the data and indexes for each newly created table in a separate .ibd file, rather than in the system tablespace. 当启用innodb_file_per_table(5.6.6或更高版本的默认值)时,InnoDB将每个新创建的表的数据和索引存储在单独的.ibd文件中,而不是系统表空间中。 innodb_file_per_table=1 Use the following list of values: 0 for crc32, 1 for strict_crc32, 2 for innodb, 3 for strict_innodb, 4 for none, 5 for strict_none. 使用以下值列表:0表示crc32, 1表示strict_crc32, 2表示innodb, 3表示strict_innodb, 4表示none, 5表示strict_none。 innodb_checksum_algorithm=0 The number of outstanding connection requests MySQL can have. This option is useful when the main MySQL thread gets many connection requests in a very short time. It then takes some time (although very little) for the main thread to check the connection and start a new thread. The back_log value indicates how many requests can be stacked during this short time before MySQL momentarily stops answering new requests. You need to increase this only if you expect a large number of connections in a short period of time. MySQL可以有多少未完成连接请求。当MySQL主线程在很短的时间内收到许多连接请求时,这个选项非常有用。然后,主线程需要一些时间(尽管很少)来检查连接并启动一个新线程。back_log值表示在MySQL暂时停止响应新请求之前的短时间内可以堆多少个请求。只有当您预期在短时间内会有大量连接时,才需要增加这个值。 back_log=80 If this is set to a nonzero value, all tables are closed every flush_time seconds to free up resources and synchronize unflushed data to disk. This option is best used only on systems with minimal resources. 如果将该值设置为非零值,则每隔flush_time秒关闭所有表,以释放资源并将未刷新的数据同步到磁盘。这个选项最好只在资源最少的系统上使用。 flush_time=0 The minimum size of the buffer that is used for plain index scans, range index scans, and joins that do not use 用于普通索引扫描、范围索引扫描和不使用索引执行全表扫描的连接的缓冲区的最小大小。 indexes and thus perform full table scans. join_buffer_size=200M The maximum size of one packet or any generated or intermediate string, or any parameter sent by the mysql_stmt_send_long_data() C API function. 由mysql_stmt_send_long_data() C API函数发送的一个包或任何生成的或中间字符串或任何参数的最大大小 max_allowed_packet=500M If more than this many successive connection requests from a host are interrupted without a successful connection, the server blocks that host from performing further connections. 如果在没有成功连接的情况下中断了来自主机的多个连续连接请求,则服务器将阻止主机执行进一步的连接。 max_connect_errors=100 Changes the number of file descriptors available to mysqld. You should try increasing the value of this option if mysqld gives you the error "Too many open files". 更改mysqld可用的文件描述符的数量。如果mysqld给您的错误是“打开的文件太多”,您应该尝试增加这个选项的值。 open_files_limit=4161 If you see many sort_merge_passes per second in SHOW GLOBAL STATUS output, you can consider increasing the sort_buffer_size value to speed up ORDER BY or GROUP BY operations that cannot be improved with query optimization or improved indexing. 如果在SHOW GLOBAL STATUS输出中每秒看到许多sort_merge_passes,可以考虑增加sort_buffer_size值,以加快ORDER BY或GROUP BY操作的速度,这些操作无法通过查询优化或改进索引来改进。 sort_buffer_size=1M The number of table definitions (from .frm files) that can be stored in the definition cache. If you use a large number of tables, you can create a large table definition cache to speed up opening of tables. The table definition cache takes less space and does not use file descriptors, unlike the normal table cache. The minimum and default values are both 400. 可以存储在定义缓存中的表定义的数量(来自.frm文件)。如果使用大量表,可以创建一个大型表定义缓存来加速表的打开。与普通的表缓存不同,表定义缓存占用更少的空间,并且不使用文件描述符。最小值和默认值都是400。 table_definition_cache=1400 Specify the maximum size of a row-based binary log event, in bytes. Rows are grouped into events smaller than this size if possible. The value should be a multiple of 256. 指定基于行的二进制日志事件的最大大小,单位为字节。如果可能,将行分组为小于此大小的事件。这个值应该是256的倍数。 binlog_row_event_max_size=8K If the value of this variable is greater than 0, a replication slave synchronizes its master.info file to disk. (using fdatasync()) after every sync_master_info events. 如果该变量的值大于0,则复制奴隶将其主.info文件同步到磁盘。(在每个sync_master_info事件之后使用fdatasync())。 sync_master_info=10000 If the value of this variable is greater than 0, the MySQL server synchronizes its relay log to disk. (using fdatasync()) after every sync_relay_log writes to the relay log. 如果这个变量的值大于0,MySQL服务器将其中继日志同步到磁盘。(在每个sync_relay_log写入到中继日志之后使用fdatasync())。 sync_relay_log=10000 If the value of this variable is greater than 0, a replication slave synchronizes its relay-log.info file to disk. (using fdatasync()) after every sync_relay_log_info transactions. 如果该变量的值大于0,则复制奴隶将其中继日志.info文件同步到磁盘。(在每个sync_relay_log_info事务之后使用fdatasync())。 sync_relay_log_info=10000 Load mysql plugins at start."plugin_x ; plugin_y". 开始时加载mysql插件。“plugin_x;plugin_y” plugin_load The TCP/IP Port the MySQL Server X Protocol will listen on. MySQL服务器X协议将监听TCP/IP端口。 loose_mysqlx_port=33060 本篇文章为转载内容。原文链接:https://blog.csdn.net/mywpython/article/details/89499852。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-10-08 09:56:02
129
转载
Docker
... myimage /bin/bash --rm选项表示容器在退出后应自动删除。在容器启动后,我们可以通过执行以下命令来检查myfolder目录是否已成功移动到容器中: $ ls / 如果您看到myfolder目录出现在列表中,那么您已经成功将目录放入了Docker容器中。
2023-11-22 11:10:48
520
键盘勇士
MySQL
...端,进入MySQL的bin文件夹 cd /d C:\Program Files\MySQL\MySQL Server 8.0\bin 2. 执行以下指令来开启MySQL服务端 mysqld --console 3. 等候MySQL服务端开启结束,可以看到类似以下显示信息 2022-01-03T02:11:00.880724Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.29) starting as process 908 4. 开启新的指令行终端,进入MySQL的bin文件夹 cd /d C:\Program Files\MySQL\MySQL Server 8.0\bin 5. 执行以下指令来连接到MySQL服务端 mysql -u root -p 6. 输入MySQL的root用户密码,进入MySQL指令行界面 Enter password: 7. 成功连接到MySQL服务端后,可以执行各种MySQL指令来管理数据库了 通过以上流程,就可以在Windows操作OS下成功地开启MySQL数据库,并进入MySQL指令行界面来管理数据库了。
2023-12-12 11:10:15
135
数据库专家
Docker
...d alpine /bin/sh hwclock -s 上述命令将登录 Alpine 容器,并使用 hwclock 命令将内部时钟与主机时钟同步化。在其它容器中,您可以使用相同的方法处理时钟不同步化的问题。 另外,如果您需要在容器中执行数据库或其它需要精确时间的应用程序时,您可以考虑使用特定的 Docker 镜像来处理时钟同步化问题,例如: docker run --rm -it --privileged centos /bin/sh yum -y install ntp ntpdate pool.ntp.org 上述命令将在 CentOS 容器中安装 NTP 服务,并使用 ntpdate 命令从 pool.ntp.org 同步化时钟。在其它镜像中,您也可以使用类似的方法来处理时钟同步化问题。 总而言之,时钟不正确是 Docker 容器中常见的问题,但是我们可以使用 Docker 提供的命令行工具或者特定镜像来手动同步化时钟,从而处理这个问题。
2023-10-26 12:53:07
467
程序媛
MySQL
... 在配置文件中查找 bind-address 即可看到 MySQL 的安装路径 bind-address = /var/run/mysqld/mysqld.sock 上面的配置文件中的示例路径/var/run/mysqld/mysqld.sock就是 MySQL 的安装路径。除此之外,还可以通过以下命令来查看 MySQL 的安装路径: 切换到 MySQL 目录下 cd /usr/bin 查看当前目录下包含 mysqld 的文件,然后找到 mysqld 程序的绝对路径 find ./ -name mysqld 执行上述命令会返回 MySQL 的安装路径,如/usr/bin/mysqld。 总之,通过配置文件或 find 命令,可以很容易地找到 MySQL 在 Linux 上的安装路径。
2023-12-31 14:25:35
112
软件工程师
MySQL
...erver 8.0\bin 其中,C:\Program Files\MySQL\MySQL Server 8.0\bin 是 MySQL 安装位置下 bin 目录的路径,可按照实际需求进行更改。 2. 键入以下命令以利用管理员权限开启 MySQL 服务: mysqld --initialize-insecure --user=mysql --initialize-insecure 表示初次设置数据库时不利用密码,--user=mysql 表示以 mysql 用户运行服务。 3. 接着,键入以下命令以开启 MySQL 服务: mysqld --console --console 表示以控制台模式开启服务,可以实时查看服务的运行情况。 4. 最后,在终端窗口中键入以下命令以进入 MySQL 命令行模式: mysql -u root -p -u root 表示利用 root 用户登录,-p 表示需要键入密码。默认不设置密码,可直接按回车键进入。 到此,已经成功开启了已有的 MySQL 目录,并通过命令行管理数据库。
2023-11-16 22:43:19
84
键盘勇士
MySQL
...cal/mysql/bin/ //2.以root用户登录mysql mysql -u root -p //3.创建新用户,并授权 create user 'yourusername'@'localhost' identified by 'yourpassword'; grant all privileges on . to 'yourusername'@'localhost'; //4.退出mysql exit 在以上代码中,你需要根据自己的实际情况修改'yourusername'和'yourpassword',并授权给你的新用户所有权限。 如果需要进行更多的数据库操作,你可以接着使用以下命令操作: //1.进入到mysql文件夹下 cd /usr/local/mysql/bin/ //2.以新用户登录mysql mysql -u yourusername -p //3.创建新的数据库和数据表 create database yourdatabasename; use yourdatabasename; create table tablename (column1 datatype, column2 datatype, column3 datatype); //4.退出mysql exit 以上代码中,你需要将'yourdatabasename'和'tablename'替换为你需要创建的数据库名和表名,同时根据实际情况定义相应的表字段。 批处理注册MySQL服务器并不复杂,只需按照以上步骤进行操作即可。如果你对SQL语句不熟悉,也可以使用可视化工具对数据库进行操作。
2024-05-08 15:31:53
111
程序媛
Docker
...;容器ID>/bin/bash // 以命令行交互模式方式登陆容器 docker top<容器ID>// 显示容器内运行的进程 docker logs<容器ID>// 查看容器的日志 docker stats<容器ID>// 查看容器的资源占用情况 如果以上命令无法解决问题,可以考虑删除容器重新构建并运行: docker stop<容器ID>// 停止当前崩溃的容器 docker rm<容器ID>// 删除容器 docker images // 查看所有镜像 docker rmi<镜像ID>// 删除相关的镜像 docker build -t<新容器名称>. // 构建新容器 docker run -d<新容器名称>// 运行新容器 重启Docker容器的方法有许多,需要依据具体问题具体分析,选择最佳方案进行重启。
2023-12-29 23:51:06
593
电脑达人
MySQL
...SQL位于/usr/bin/mysql,则展示: /usr/bin/mysql 3. 检查MySQL版本 我们还可以通过以下命令检查MySQL的版本: $ mysql -V 如果你的电脑上已经已安装MySQL,这个命令会展示MySQL的版本信息。比如,如果你的MySQL版本是5.7.12,则展示: mysql Ver 14.14 Distrib 5.7.12, for osx10.11 (x86_64) using EditLine wrapper 4. 安装MySQL 如果你的电脑上没有安装MySQL,你可以按照以下的步骤进行安装: (1)访问MySQL官方网站: https://dev.mysql.com/downloads/mysql 。 (2)下载MySQL Community Server。 (3)按照安装向导进行安装。 以上就是如何检查电脑上是否已安装MySQL的方式。如果你的电脑上没有安装MySQL,可以按照上述步骤进行安装。MySQL的安装过程比较简单,但对于初学者来说可能还是有些困难,因此还可参考MySQL官方网站上的安装教程。
2023-09-19 12:58:09
133
算法侠
转载文章
...X中修改文件路径为 bin/idea.vmoptions ,添加如下内容,如果无效修改http为https试试看 -Djava.net.preferIPv4Stack=true-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml-Didea.patches.url=http://dl.google.com/android/studio/patches/ 如果仍然无效,可以修改http为https试试看,然后重启点击check update 转载于:https://www.cnblogs.com/niray/p/4251301.html 本篇文章为转载内容。原文链接:https://blog.csdn.net/weixin_30784141/article/details/98424685。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-02-08 20:46:33
126
转载
转载文章
...ermod -s /bin/bash user 我们要把user用户家目录修改为/home/new 并迁移旧数据。 usermod -m -d /home/new user 本篇文章为转载内容。原文链接:https://blog.csdn.net/qq_33468857/article/details/127909483。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-10-12 23:41:45
52
转载
转载文章
...g/related/binaries.html)。 在Linux环境下,可安装OPENSSL工具包(以ubuntu为例,执行sudo apt-get install openssl)。 在Windows环境下,打开OPENSSL安装目录bin文件下面的openssl.exe。在Linux环境下,直接在终端中运行openssl。 1)生成RSA私钥: genrsa -out rsa_private_key.pem 1024 该命令会生成1024位的私钥,生成成功的界面如下: 此时我们就可以在当前路径下看到rsa_private_key.pem文件了。 2)把RSA私钥转换成PKCS8格式 输入命令pkcs8 -topk8 -inform PEM -in rsa_private_key.pem -outform PEM –nocrypt,并回车 得到生成功的结果,这个结果就是PKCS8格式的私钥,如下图: 3) 生成RSA公钥 输入命令rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem,并回车, 得到生成成功的结果,如下图: 此时,我们可以看到一个文件名为rsa_public_key.pem的文件,打开它,可以看到-----BEGIN PUBLIC KEY-----开头, -----END PUBLIC KEY-----结尾的没有换行的字符串,这个就是公钥。 本篇文章为转载内容。原文链接:https://blog.csdn.net/weixin_33915554/article/details/85830576。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2024-01-18 17:04:03
89
转载
Apache Solr
...SOLR_HOME/bin/bootstrap.jar:$SOLR_HOME/bin/solr.jar export CATALINA_OPTS="-server -Xms4g -Xmx8g" 2. 调整垃圾收集器的参数 垃圾收集器是负责回收Java程序中不再使用的内存的部分。在Solr中,可以通过修改solr.in.sh文件中的-XX:+UseConcMarkSweepGC参数来启用并发标记清除算法,这种算法可以在不影响程序运行的情况下,高效地回收无用内存。 bash solr.in.sh export JAVA_HOME=/path/to/java export SOLR_HOME=/path/to/solr export CLASSPATH=$SOLR_HOME/bin/bootstrap.jar:$SOLR_HOME/bin/solr.jar export CATALINA_OPTS="-server -XX:+UseConcMarkSweepGC" 3. 调整线程池的参数 线程池是Java程序中用于管理和调度线程的工具。在使用Solr的时候,如果你想要提升垃圾回收的效率,有个小窍门可以试试。你只需打开solr.in.sh这个配置文件,找到其中关于-XX:ParallelGCThreads的参数,然后对它进行修改,就可以调整并行垃圾收集线程的数量了。这样一来,Solr就能调动更多的“小工”同时进行垃圾清理工作,从而让你的系统运行更加流畅、高效。 bash solr.in.sh export JAVA_HOME=/path/to/java export SOLR_HOME=/path/to/solr export CLASSPATH=$SOLR_HOME/bin/bootstrap.jar:$SOLR_HOME/bin/solr.jar export CATALINA_OPTS="-server -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=4" 4. 配置JVM的其他参数 除了上述参数外,还可以通过其他一些JVM参数来进一步优化Solr的性能。比如说,我们可以调整一个叫-XX:MaxTenuringThreshold的参数,这个参数就像个开关一样,能控制对象从年轻代晋升到老年代的“毕业标准”。这样一来,就能有效降低垃圾回收的频率,让程序运行更加流畅。 bash solr.in.sh export JAVA_HOME=/path/to/java export SOLR_HOME=/path/to/solr export CLASSPATH=$SOLR_HOME/bin/bootstrap.jar:$SOLR_HOME/bin/solr.jar export CATALINA_OPTS="-server -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=8" 五、结论 通过以上的JVM调优技巧,我们可以有效地降低Solr的内存占用,从而提高其运行效率和性能。不过要注意,不同的使用场景可能需要咱们采取不同的优化招数。所以,在实际操作时,我们得像变戏法一样,根据实际情况灵活调整策略,才能把事情做得更漂亮。
2023-01-02 12:22:14
468
飞鸟与鱼-t
转载文章
...原型的键值。 !/bin/bash设置数组item为需要得到的所有监控项键值数据,变量itemnum为数据的个数item=netstat -ntlp|awk '{print $7}'|sed '1,2d'itemnum=netstat -ntlp|awk '{print $7}'|sed '1,2d'|wc -l输出json格式数据num=0echo "{"\"data\"":["for name in ${item[@]}dolet num=num+1if [ "$num" -eq "$itemnum" ]thenecho "{"\"{PROCESS}\"":"\"${name}\""}"elseecho "{"\"{PROCESS}\"":"\"${name}\""},"fidoneecho "]}" 3.自定义自动发现规则的监控指标 4.在zabbix前端添加自动发现规则 5.设置监控项原型,需要监控的指标 例子中为每个进程的端口号 6.自定义监控项原型所要监控的最终监控项 双"$$"符是zabbix用来引用系统的"$"符号时和这里传递的位置参数"[]"做区分,egrep -w "$1$"是用正则以及精确匹配出以键值参数[]中的第一个参数"$1"结尾的那一行,使每个监控项得到对应自己的那一个值。 例如: 7.重启agent服务然后大功告成 本篇文章为转载内容。原文链接:https://blog.csdn.net/qq_55723966/article/details/117706262。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-07-16 17:10:56
86
转载
站内搜索
用于搜索本网站内部文章,支持栏目切换。
知识学习
实践的时候请根据实际情况谨慎操作。
随机学习一条linux命令:
history | grep keyword
- 搜索包含关键词的历史命令。
推荐内容
推荐本栏目内的其它文章,看看还有哪些文章让你感兴趣。
2023-04-28
2023-08-09
2023-06-18
2023-04-14
2023-02-18
2023-04-17
2024-01-11
2023-10-03
2023-09-09
2023-06-13
2023-08-07
2023-03-11
历史内容
快速导航到对应月份的历史文章列表。
随便看看
拉到页底了吧,随便看看还有哪些文章你可能感兴趣。
时光飞逝
"流光容易把人抛,红了樱桃,绿了芭蕉。"