Skip to content

Commit 40fef69

Browse files
authored
tiup: give a more clear recommendation about SELinux (#20068) (#20315)
1 parent 7c72b55 commit 40fef69

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.github/workflows/link-fail-fast.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ jobs:
1717
CHANGED_FILES=$(git diff-tree --name-only --diff-filter 'AM' -r HEAD^1 HEAD -- "*.md" | sed -z "s/\n$//;s/\n/' '/g")
1818
echo "all_changed_files=${CHANGED_FILES}" >> $GITHUB_OUTPUT
1919
20-
- name: Download Exclude Path
21-
run: |
22-
curl https://raw.githubusercontent.com/pingcap/docs/master/.lycheeignore -O
23-
2420
- name: Link Checker
2521
if: ${{ steps.changed-files.outputs.all_changed_files }}
2622
uses: lycheeverse/lychee-action@v1.6.1

.lycheeignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ file://.*?http:/\$%7BPD_IP%7D:\$%7BPD_PORT%7D/dashboard.*
1414
http://\{grafana-ip\}:3000
1515
http://\{pd-ip\}:2379/dashboard
1616
http://localhost:\d+/
17-
https://github\.com/\$user/(docs|docs-cn)
17+
https://github\.com/\$user/(docs|docs-cn)
18+
https://linux.die.net/man.*

check-before-deployment.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,4 +789,8 @@ sudo yum -y install numactl
789789
790790
## Disable SELinux
791791
792-
Use the [getenforce(8)](https://linux.die.net/man/8/getenforce) utility to check if SELinux is disabled or set to permissive. SELinux in enforcing mode can cause deployment failures. For instructions on disabling SELinux, refer to your operating system's documentation.
792+
SELinux must be disabled or set to permissive mode. To check the current status, use the [getenforce(8)](https://linux.die.net/man/8/getenforce) utility.
793+
794+
If SELinux is not disabled, open the `/etc/selinux/config` file, locate the line starting with `SELINUX=`, and change it to `SELINUX=disabled`. After making this change, you need to reboot the system because switching from `enforcing` or `permissive` to `disabled` does not take effect without a reboot.
795+
796+
On some systems (such as Ubuntu), the `/etc/selinux/config` file might not exist, and the getenforce utility might not be installed. In that case, you can skip this step.

tiup/tiup-component-cluster-check.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ Check the limit values in the `/etc/security/limits.conf` file:
6666

6767
### SELinux
6868

69-
Check whether SELinux is enabled. It is required to disable SELinux.
69+
SELinux must be disabled or set to permissive mode. To check the current status, use the [getenforce(8)](https://linux.die.net/man/8/getenforce) utility.
70+
71+
If SELinux is not disabled, open the `/etc/selinux/config` file, locate the line starting with `SELINUX=`, and change it to `SELINUX=disabled`. After making this change, you need to reboot the system because switching from `enforcing` or `permissive` to `disabled` does not take effect without a reboot.
72+
73+
On some systems (such as Ubuntu), the `/etc/selinux/config` file might not exist, and the getenforce utility might not be installed. In that case, you can skip this step.
7074

7175
### Firewall
7276

0 commit comments

Comments
 (0)