When you install eclipse on Linux today, the following error occurs:
Cannot restore segment prot after reloc: Permission denied
* ***. So (this is a file under a path)
Solution
Edit/etc/SELinux/config and find the following link:
# This file controls the state of SELinux on the system.
# SELinux = can take one of these three values:
# Enforcing-SELinux security policy is enforced.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-SELinux is fully disabled.
SELinux = enforcing
Comment out SELinux = enforcing: # SELinux = enforcing, and add a new line:
SELinux = disabled
Save and close.
......
Edit/etc/sysconfig/SELinux and find:
# This file controls the state of SELinux on the system.
# SELinux = can take one of these three values:
# Enforcing-SELinux security policy is enforced.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-SELinux is fully disabled.
SELinux = enforcing
If SELinux is already set to SELinux = disabled, you do not need to change it. Otherwise, comment out SELinux = enforcing and add a new line:
SELinux = disabled
Save and exit.
If you encounter other similar prompts:
Cannot restore segment prot after reloc: Permission denied
This should be a problem with SELinux. You can disable it.
Bytes -------------------------------------------------------------------------------------
Sadly, I disabled SELinux but it still didn't work. So I went to Google to search and found this useful.
After you ensure that SELinux is disable, execute
Chcon-T texrel_shlib_t ******. So
For example, chcon-T texrel_shlib_t/path/name. So (this file depends on the specific execution file .)
The above two steps have solved many server problems.