Tag Archives: )

Modify the script execution permission of PowerShell, and solve the problem of error reporting of commands executed by built-in terminals such as vscode (XX cannot recognize the name of cmdlets, functions, script files or runnable programs)

Several permissions for running PowerShell scripts

1. Restricted: by default, no script is allowed to run

2. Allsigned: only scripts signed by digital certificates can be run

3. Remotesigned: running a local script does not require a digital signature, but running a script downloaded from the network must have a digital signature

4. Unrestricted: all scripts are allowed to run, but you will be prompted whether to operate before running

5. Bypass: allow all scripts to run without any prompts and warnings.

View current permissions


Modify permissions

set-ExecutionPolicy RemoteSigned


Super detail: command not found: the scratch solution (add the scratch environment variable to Zsh under MAC)

Background: originally, I planned to create a crawler project with scratch, but it showed Zsh: command not found: scratch . After reading many blogs, I solved the problem and decided to record it.

Main reference Blogs:



Problem analysis:

When I reinstall the script, I show:

WARNING: The script scrapy is installed in 
'/Library/Frameworks/Python.framework/Versions/3.9/bin' which is not on PATH.
  Consider adding this directory to PATH 
  or, if you prefer to suppress this warning, use --no-warn-script-location.

Note /library/frameworks/python.framework/versions/3.9/bin is not in the path. We need to add this path to the environment variable (consumer adding this directory to path).

terms of settlement:

Step 1: add source ~ /. Bash at the end of the. Zshrc file_ profile

    Open the finder, press Command + Shift + G, enter. Zshrc, open the. Zshrc file, and then write source ~ /. Bash at the end of the file_ profile

    Press Command + s to save

    Open the terminal, enter source ~ /. Zshrc , and execute the file.

Step 2: in. Bash_ Add environment variables to the profile file

    Open the finder, press Command + Shift + G at the same time, and enter. Bash_ Profile, open. Bash_ Profile file.

    Write on the last line:

    export PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:$PATH"

    be careful ⚠️: The number after versions is the python version number. It should be modified according to your own Python version. If the version is 2.7, it should be changed to:

    export PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH"

    Press Command + s to save.

    Open the terminal and enter source ~ /. Bash_ Profile , execute the file.

    Finally, you can enter echo $path on the terminal to see if the environment variable is added.

    You can see that /library/frameworks/python.framework/versions/2.7/bin has been added ( and many ).

    Finally, enter scapy and you can finally use it!!!

Unknownhostexception: XXX, an error is reported when using the Nacos remote call service (load balancing)

Remember, this kind of error occurs in the future because @ loadbalanced is not added to the getresttemplate () method in the configuration file of the consumer side to enable the load balancing function, so Nacos reports the error of “no host found”!

The front-end request error page is as follows:


Cause analysis:

1. First of all, Nacos has its own load balancing function. Why?Please see the figure below:


2. Because Nacos integrates ribbon, you can use resttemplate to remotely call the service for load balancing, and then successfully find the service under the Nacos registration service center. You just don’t know what algorithm to use to select the service provider, so an error is reported – no host exception is found.



Add “@ loadbalanced” above the method to get resttemplate in the configuration file to enable the load balancing function.


Install the specified version of tensorflow (I reported an error)

The installation commands are as follows:

pip install tensorflow-gpu==1.10.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

Use it with caution. Anyway, I made a mistake and haven’t found an effective solution

The specified module could not be found

Oserror: [winerror 126] the specified module could not be found


On September 9, 2019, the problem has been solved and will be updated when possible

Maven does not have a servlet (an error is reported after the servlet is created)

 Maven cannot create a servlet


Scheme I

Specify the root directory in the IML of the project

        <root url="file://$MODULE_DIR$/src/main/java" />

Scheme II

Successfully solved

Error when Maven creates Servlet


Add in pom.xml (add dependencies under dependencies)

<!-- JSTL -->
    <!-- Servlet -->
    <!--JSP -->

Successfully resolved


Authentication for user Weblogic denied when Weblogic starts managed server

How did “people you might know” find you on social software>>>

Weblogic starts the managed server to report an error authentication for user Weblogic denied

Reference article:

(1) Authentication for user Weblogic denied when Weblogic starts managed server

(2) https://www.cnblogs.com/shelly01-zhou/p/6210736.html

Let’s make a note.

/lib64/libstdc++.so.6: version `CXXABI’1.3.8′ not found `36733;

Explain the function of static keyword and final keyword in Java in detail>>>

original address : https://blog.csdn.net/EI__ Nino/article/details/100086157

the ultimate war

Death Strike

1 ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8’ not found

Libstdc + +. So. 6 is too low, which leads to
see if your libstdc + +. So. 6 contains cxxabi_ 1.3.8

 1 # strings /usr/lib64/libstdc++.so.6 | grep CXXABI
 2 CXXABI_1.3
 3 CXXABI_1.3.1
 4 CXXABI_1.3.2
 5 CXXABI_1.3.3
 6 CXXABI_1.3.4
 7 CXXABI_1.3.5
 8 CXXABI_1.3.6
 9 CXXABI_1.3.7

Sure enough, No
note that the GCC version is not necessarily too low. Use SCL (about SCL) https://linux.cn/article-6776-1.html )It’s useless to upgrade GCC. We can’t upgrade libstdc + +. So. 6 at all
so we need to upgrade libstdc + +. So. 6 and upgrade GCC by the way. If you only upgrade GCC (through SCL), it is invalid, because the version of GCC is higher, but its libstdc + + is the original libstdc + +. So. 6 of require

If you don’t believe it, look

1 # cat /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++.so
3 /* GNU ld script
4 Use the shared library, but some functions are only in
5 the static library, so try that secondarily. */
6 OUTPUT_FORMAT(elf64-x86-64)
7 INPUT ( /usr/lib64/libstdc++.so.6 -lstdc++_nonshared )

So does the egg hurt

The only solution is to recompile GCC

compile GCC

Install dependency library Yum install – y GMP devel mpfr devel libmpc devel

Download source code package ftp://ftp.gnu.org/gnu/gcc/gcc-9.2.0/



(note that this is very time-consuming. Adding – J4 means 4-thread compilation. If you have 4 cores, it will be full, leading to CPU full and service alarm. So it depends on the situation. I’m direct nohup make & amp; Then go home to sleep)

The orders are as follows

1 sudo yum install gmp-devel mpfr-devel libmpc-devel -y
2 cd download
3 wget ftp://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz
4 xz -d gcc-9.2.0.tar.xz
5 tar -xf gcc-9.2.0.tar
6 cd gcc-9.2.0
7 ./configure --disable-multilib --enable-languages=c,c++ --prefix=$HOME/local
8 make -j4
9 make -j install

After installation, add the newly installed path to the environment variable

1 export LD_LIBRARY_PATH=$HOME/local/lib64

It can be found in ~ /. Bash_ Add path = $home/local/bin in the profile: $path
put the local in the front, in case there are bin with the same name at the same time, you can call the local bin file
to save LD_ LIBRARY_ Path = $home/local/lib64 is also added to. Base_ Profile, which can be used in the future

Unable to open thread: http request failed! (4 pesos, PHP 4)

After chopping hands, the fraud call came before the express delivery was received. How to improve the privacy and security of e-commerce>>>

When using PHP5’s own file_ get_ When the contents method is used to get remote files, sometimes the file will appear_ get_ contents(): failed to open stream: HTTP request failed! This is a warning message

Google or Baidu, a lot of such problems, the solution is to modify PHP. Ini, allow_ url_ Fopen is enabled and changed to allow_ url_ fopen = On

This can solve some people’s problems. Some people say that in php.ini, there are two options: allow_ url_ Fopen = on (indicates that the remote file can be opened through URL), user_ Agent = “PHP” (indicates which script is used to access the network. By default, there is a “;” Remove it.) Restart the server

However, some of them still have this warning message. If you want to solve it perfectly, you still need to set the user in php.ini_ Agent, PHP’s default user_ The agent is PHP, we changed it to Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) to simulate the browser

user_ agent=”Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)”

In the work of this problem, after the perfect solution, so share with you


But the best way is to use curl to grab it. It seems that curl is more powerful

Original address:

Failed to open stream: http request failed( file_ get_ (caused by contents)



file_ get_ contents


Intelligent recommendation

php Only variables can be passed by reference

ntpdate[16603]: the NTP socket is in use

How to view the source code of Google Chrome plug-in

Learn more about PHP opcode caching

[No.5 ionic] modify the application name, icon and start interface

Solution to the problem of bash: gulp: command not found after installing gulp in Windows system

Why are there a series of technical challenges behind “OMG buy it”>>>

When using the gulp server command, bash: gulp: command not found appears
first of all, when I saw this command, I doubted that my gulp was not installed properly. I executed it again NPM install - G gulp , but the command ran smoothly, and the result still appeared: bash: gulp: command not found
then I found the following article on the Internet
I feel that the direction to solve the problem is right. The command of gulp is invalid. It should be the configuration problem. Then I go to the global directory (C: program files/nodejsnode)_ modules/npm/node_ Modules) to see if my gulp package is installed, and it is not! My bag succeeded, but it was in the wrong place

1. Use the command to check: NPM config get prefix , and the following figure is obtained

looking at the location, it seems that it is the address that I configured when I used the lower version of node.. But now NPM has been integrated into node. I can’t find the configuration address myself. Anyway, there is absolutely no environment variable. Now I just want to correct the address and go to the new path I follow C:// program files/nodejs/node_ modules\npm

2. Use the command to modify the configuration

npm config set prefix C:\Program Files\nodejs\node_ As we all know, the file name of the program files in the middle is very hollow, which causes the command to be interrupted in this way. So I went to the configuration file to modify it manually (this is a simple and direct way). The file location is here C:// users/administrator (see the figure below)

3. Check the configuration of NPM again

as can be seen from the above figure, the configuration address now points to NPM in node, and then install gulp to see
running commands: NPM install - G gulp and gulp - V