This error occurs when running some Linux script files:
/Bin/sh ^ m:Damaged Interpreter: No such file or directory
Cause: the script file has been edited in windows. In Windows, the end of each line is/n/R, while in LinuxLowerThe end of the file is/n.When the next line is opened, one more line ends.Characters/R. If you open the file with gedit, you cannot see this ^ m. You can use VI to open it. Each row ends with a ^ m
Solution: Install unix2dos
# Date: 20140806
Sleeptime = 30
While true
Do
Lastb-N 500 | grep-V "^ $" | grep-V "btmp" | awk '{print $3}' | sort | uniq-c | grep-V "172.16.1.51 "| sort-Nr> attack. log # Read the attack IP address and sort it by the number of attacks (filter the Administrator IP address)
While read line
Do
IP = 'echo $ Line | awk' {print $2 }''
Time = 'echo $ Line | awk' {print $1 }''
If ["$ time"-GT 5]; then
Grep "$ IP"/etc/hosts. Deny >/dev/null
If ["$? "-Ne" 0 "]; then
Echo "sshd: $ IP">/etc/hosts. Deny
The installation uses the nginx-0.8.54 stable edition. At the beginning, the compilation parameters are specified as follows:
. /Configure-user = www-group = www-Prefix =/usr/local/nginx-with-http_ssl_module-with-http_sub_module-with-http_gzip_static_module-with-http_stub_status_module-add-module =/usr/local/src/nginx_upstream_jvm_route /-with-http_realip_module-with-PCRE =/usr/local/PCRE
When the make stage is reached, an error is reported:
[Root @ test01 nginx-0.8.54] # MakeMake-F objs/ma
}" for jar in $lib _path/*.jardoif ["$CLASSPATH" = ""];Thenclasspath= $jarelseCLASSPATH = $CLASSPATH: $jarfidoneexport classpath= $CLASSPATHecho "java ${main_class} \" [Email Protected]\ ""4. Right-click Project-debug as-maven assembly:assemblyThe output log is packaged successfully.Four. Testing1. Unzip the zip file, the folder structure is as follows, all files are present:2. Enter the bin and run the Start.bat (the JRE environment needs to be installed in the running environment)3. The result
Under Windows, after using nodepad++ to write the shell script, upload the shell script to the Linux system, execute the shell script on Linux, report the error message, and cannot execute the shell script, the error message is as follows:
-bash:./solrcloud-shutdown.sh:/bin/sh^m:bad interpreter:no such file or directoryThis problem arises because of the coding format of the shell script file, which, under Windows, uses nodepad++ to write the file e
Under Ubuntu Server 14, install the Redis issue:
Issue one: CC Adlist.o/bin/sh:1:cc:not found
Cause of the problem: this is because the system does not have a GCC environment installed, so the above prompt will appear at compile time, and the above error will disappear when GCC is installed and then compiled.
Specific solutions:
1) First install gcc: switch to root user, run sudo apt-get install gcc
2) Reset make install
Question two: Redis jemallo/
Tags: error python based on span BSP done variable ash get#!/bin/bash#1 Read the file and displayCat State.txt | whileRead Linedo echo $linedone#2 Read the file and displayCat State.txt | whileread line, do echo $line;#3 read a file contents into a variableVar=$ (cat state.txt) echo $var#4 Interpreting according to the variablesif[$var = =0]; Then Echo"No Run"elif[$var ==1 ]; Then Echo"Run"ElseEcho"Error"fiWhen running Python, the program PID is written to the file to facilitate the kill program
. py file on the desktop 111.py, double-click or text to open, because there is no running permissions to do? A final step. Use chmod u+x xx.s or chmod u+x xx.py command to run permissions on the script. The next thing you can see is the effect shown in figure one.It is impossible to do without this step.This article by @the_third_wave (blog address: http://blog.csdn.net/zhanh1218) original. What is not covered will be updated on a regular basis. Please correct me for any errors.If you see this
1. If you want to use a Linux crontab (similar to Java quartz), you need to start crontab. The way to start, shut down, restart, and reload the configuration for crontab is as follows:/sbin/service Crond Start//Startup service/sbin/service Crond
The following is my understanding of the Code in my thesis and the analysis of these experts. However, it is not long since I have been involved in image processing and machine vision. In addition, my programming skills are weak, therefore, there
The following is my understanding of the Code in my thesis and the analysis of these experts. However, it is not long since I have been involved in image processing and machine vision. In addition, my programming skills are weak, therefore, there
TLDAlgorithmThe first task was to select a feature. I found the answer in one of the documents.
The author just made a comparison, the method used is a stupid method. How can I find an optimization? This can be used as a good idea. I am mainly
The debugging process of C ++ is as follows:
Remove header files from each other. Pay attention to the top-level header files and delete unnecessary header files.
Perform forced type conversion for some functions to conform to the function usage.
Li Wu:Good study and thinking, honouring teachers save Thanksgiving. Leaf See root three return to one, rivers the same oneness.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercise strong body and mind,
The following is their own in the study of the paper and the analysis of these Daniel, some understanding of the code, but because of their exposure to image processing and machine vision not long, in addition to their own programming ability is
#include #include #include #include #include #include #include #include #include using namespace CV; Move the mouse to select a rectangular box void Mouseclickcallback (int event, int x, int y, int flags, void* UserData) {//Rectangle data
It may be because the JSP2.0 version is used, and the standby version of The JSTL core library (RT Library) is not used. There are two solutions:
1. modify web. xml.
Changed to Version 2.3
2. Use the JSTL core RT Library
The JSTL core library
This article from http://blog.sina.com.cn/s/blog_80e381d101015fza.html1 Overview
This article shows that the performance of the second-class classifier can be achieved through unlabeled dataStructuredTo improve the processing process, that is, if
Xmlns= "HTTP://JAVA.SUN.COM/XML/NS/J2EE"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
Xsi:schemalocation= "Http://java.sun.com/xml/ns/j2ee
Web-jsptaglibrary_2_0.xsd "verson=" 2.0 ">
1.0
1.1//if missing, can cause the above error.
my
my
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.