Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x-ui
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
x-ui
Commits
a454e0a6
Commit
a454e0a6
authored
Jun 28, 2024
by
Ahmad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
95227bca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
run.sh
run.sh
+44
-0
No files found.
run.sh
0 → 100644
View file @
a454e0a6
#!/bin/bash
# Update package index
sudo
apt update
# Install curl if not installed
sudo
apt
install
-y
curl
# Add NodeSource repository for Node.js LTS
curl
-fsSL
https://deb.nodesource.com/setup_lts.x |
sudo
-E
bash -
# Install Node.js
sudo
apt-get
install
-y
nodejs
# Install pm2 globally
sudo
npm
install
-g
pm2
# Verify installation
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
"
# Change directory to /usr/local/
cd
/usr/local/
# Clone the git project
sudo
git clone https://git.vpsl.xyz/root/x-ui.git
# Change directory to the cloned project
cd
x-ui
# Install project dependencies
sudo
npm
install
sudo
pm2 startup
sudo
pm2 start app.json
sudo
pm2 save
echo
"Project dependencies installed successfully."
# End of script
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