Author Archives: Robins

-bash: cannot create temp file for here-document: No space left on device

Phenomenon of 1.
[Bug MC-108686] – CD to a directory with TAB key

-bash: cannot create temp file for here-document: No space left on device

Reason 2.
Cannot create temporary file document, there is no space left on device (tells us disk space is full)
3. Clean up your files
df-h

du -sh /*

du -sh /root/*


3.4 Find the maximum file
(1) If the largest file is a log file or a backup file, this file can be cleared; (2) If you want to keep this maximum file, you have to expand the disk space.

class.getResource () and ClassLoader.getResource How to fill in the parameters in ()

Class.getResource(String Name) : Find the resource under the same path as the current calling Class
For example, my current Class below the impl package, then the Class. The getResource () is located in path:/D:/learnSpringboot/basicJava/out/production/basicJava impl /
1. If the query resources are the same as the current classpath, they are all under the impl package
Class.getResource(” XXX. XXX “)
Class.getResource(” /impl/ xxx.xxx “)
ClassLoader.getResource(String Name) : Find the resource file in the root directory, i.e. “/” or the classpath directory
2. If the query resource is not at the same level as the current class
For example, my current class below the impl package, so this. GetResource () is located in path:/D:/learnSpringboot/basicJava/out/production/basicJava /,
I have to use the relative path notation
This getResource (” XXX/XXX. XXX “)
 
Reference blog: https://blog.csdn.net/qq_33591903/article/details/91444342
https://blog.csdn.net/zhangshk_/article/details/82704010

Datatable plug-in error: uncaught typeerror: cannot read property ‘style’ of undefined

DataTable plug-in: Uncaught TypeError: Cannot read property ‘style’ of undefined
DataTable plug-in: Uncaught TypeError: Cannot read property ‘style’ of undefined
The number of columns defined in the table does not match the number of entries in the aoColumns table
Page presentation (7 columns)

Return data (6 columns)

The difference between single equal sign and double equal sign EQ in shell script

The single and double equal signs are arithmetic operators. “-eq” is a relational operator
Single and double equals
Equivalence in the conditional expression “[]” can be used to compare strings to strings or to compare integers to integers.
In the arithmetic expression “(())”, the single equal sign is the assignment arithmetic operator, and the double equal sign is the equality arithmetic operator.
“-eq”
The equality operator ‘-eq’ cannot be used in the arithmetic expression ‘(())’. It can only be used for equality comparisons of integer Integers.

Linux Tomcat accessing files on the server

 
It took a long time for the IT novice to figure IT out, especially the first one, which he tried unsuccessfully for a long time, was to restart the Tomcat server
 
The first method is to modify the server.xml file in the conf directory
In & lt; Host> I’m going to add in the tag

< Context path=”/upload2″ reloadable=”true” docBase=”/test/t2″/>
Path is the path you type in the browser and DocBase is the actual path to your server folder
After the change, you need to cut back to the bin directory and restart Tomcat:
To shut down Tomcat./shutdown. Sh
Open the Tomcat./startup. Sh
 
FTP then forwards an image to the server’s /test/t2/ directory
In the browser through the URL access, preceded by the server public network IP or domain name

 
The second method: create a new configuration file in conf/Catalina/localhost (recommended)
In the/usr/local/tomcat/conf/Catalina/localhost (if the directory does not exist, create) to create a file ` upload. XML ‘
& lt; ?The XML version = “1.0” encoding = “utf-8”?>
< Context path=”/upload” reloadable=”true” docBase=”/home/admin”/>

br> N>
The fil>e and path values must be the same
This approach does not require a restart of the Tomcat server