Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aws
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
aws
Commits
cd985f42
Commit
cd985f42
authored
Jan 02, 2026
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
f4ba1cce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
run2.sh
run2.sh
+56
-0
No files found.
run2.sh
0 → 100644
View file @
cd985f42
#!/bin/bash
set
-e
############################################
# PART 1 — BASIC SERVER + NODE + X-UI SETUP
############################################
echo
"==> Setting root password..."
echo
"root:Moqol2424!!"
| chpasswd
echo
"==> Updating package index..."
apt update
echo
"==> Installing base packages..."
apt
install
-y
curl git vnstat
echo
"==> Installing Node.js LTS..."
curl
-fsSL
https://deb.nodesource.com/setup_lts.x | bash -
apt-get
install
-y
nodejs
echo
"==> Installing pm2 globally..."
npm
install
-g
pm2
echo
"==> Verifying Node / npm / pm2 versions..."
node_version
=
$(
node
-v
)
npm_version
=
$(
npm
-v
)
pm2_version
=
$(
pm2
-v
)
echo
"Node.js version:
$node_version
"
echo
"npm version:
$npm_version
"
echo
"pm2 version:
$pm2_version
"
echo
"==> Cloning x-ui project..."
cd
/usr/local/
if
[
!
-d
"x-ui"
]
;
then
git clone http://git.fcfglobal.co/root/x-ui.git
else
echo
"x-ui already exists, skipping clone."
fi
cd
x-ui
echo
"==> Setting permissions..."
chmod
777 xray
echo
"==> Installing project dependencies..."
npm
install
echo
"==> Starting project with pm2..."
pm2 startup
pm2 start app.json
pm2 save
echo
"==> x-ui setup completed successfully."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment