Update Quili.sh
This commit is contained in:
parent
ea99b6471b
commit
bf502d466c
6
Quili.sh
6
Quili.sh
@ -32,12 +32,6 @@ function check_and_set_alias() {
|
|||||||
function install_node() {
|
function install_node() {
|
||||||
|
|
||||||
|
|
||||||
# 检查是否以root用户执行脚本
|
|
||||||
if [ "$(id -u)" != "0" ]; then
|
|
||||||
echo "该脚本必须以root权限运行" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 增加swap空间
|
# 增加swap空间
|
||||||
sudo mkdir /swap
|
sudo mkdir /swap
|
||||||
sudo fallocate -l 24G /swap/swapfile
|
sudo fallocate -l 24G /swap/swapfile
|
||||||
|
Loading…
Reference in New Issue
Block a user