Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,605 members, 7,801,750 topics. Date: Thursday, 18 April 2024 at 09:56 PM

How To Management Your VPS Server - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How To Management Your VPS Server (511 Views)

Having Issues With Your Vps? / Fully Managed Semi VPS Server for High Traffic Sites - WordPress, e-Commerce etc / Vps Server Hosting Fully Managed Servers (2) (3) (4)

(1) (Reply)

How To Management Your VPS Server by edisonvpb(m): 7:23am On Jun 27, 2016
Basic command of SSH from PUTTY
VBP hosting company provide best VPS server with you.Here is link https://www.vpb.com/cloud.php/?fuid=284
Directory Operations:
rm -rf mydir / * mydir directory to delete * /
mkdir dirname / * * Create a directory named dirname /
cd mydir / * mydir into the directory * /
cd - / * Back to the parent directory * /
cd .. / * back to the parent directory with a space * /
cd ~ / * Back to the root directory * /
mv tools tool / * the tools directory renamed tool * /
ln -s tool bac / * tool to create a directory called bac symbolic links, should be the most familiar with FTP, www link to the public_html directory * /
cp -a tool / home / vpser / www / * Copy the next tool catalog all files to www directory * /
File operations:
rm go.tar / * Remove go.tar file * /
find mt.cgi / * Find the file named mt.cgi * /
df -h / * Check the remaining disk space, this did not seem necessary, unless you too that * /
unzip:
tar xvf wordpress.tar / * extract the tar file format * /
tar -tvf myfile.tar / * View file tar contained in the file * /
tar cf toole.tar tool / * the directory tool packaged as toole.tar file * /
tar cfz vpser.tar.gz similar tool / * the directory tool packaged and compressed into vpser.tar.gz file, because almost no .tar file compressed, MT unzip the .tar.gz file into a .tar files 10MB * /
tar jcvf /var/bak/www.tar.bz2 / var / www / / * create a .tar.bz2 file compression rate * /
tar xjf www.tar.bz2 / * unpack tar.bz2 format * /
gzip -d ge.tar.gz / * .tar.gz file to extract the .tar file * /
unzip phpbb.zip / * extract the zip file under windows to compress a .tar.gz file format is still somewhat cumbersome * /
download:
wget http://soft.vpser.net/web/nginx/nginx-0.8.0.tar.gz
/ * Download a file from a remote server to your server, and even upload are saved, the server is not 100M 1000M bandwidth to download a megabyte MT 2-3 tens of seconds is not something * /
wget -c http://soft.vpser.net/web/nginx/nginx-0.8.0.tar.gz
/ * Not continue downloading the last downloaded file * /
Please indicate the source: VPS detective http://www.vpser.net
Process Management:
ps -aux / * ps process status query command * /
Meaning ps command output fields:
[List]
[*] USER, the user name of the process owner.
[*] PID, process ID, uniquely identifies the process.
[*] Percentage% CPU, the process since the last refresh of the CPU time and the total time.
[*]% MEM, the percentage of memory used by the process.
[*] Virtual memory size VSZ, the process used in K.
[*] RSS, the process takes the total amount of physical memory, in K.
[*] TTY, terminal name related to the process.
[*] STAT, process state, with (R-- running or ready to run; S-- sleep state; I-- idle; Z-- freeze; D-- uninterrupted sleep; W- process is not resident pages; T stop or track.) these letters.
[*] START, the process starts running time.
[*] TIME, the total CPU time used by the process.
[*] COMMAND, is the command line to be executed.
[/ List]
ps -aux | grep nginx / * in all processes, find nginx process * /
kill 1234 / * 1234 is the process ID, namely ps -aux the PID * /
killall nginx / * killall name of the program through direct killing all processes, nginx for the process name * /
Vim operation:
Mobile class:
h / j / k / l: Left / Lower / Upper / Right Move one space
w: word backwards movement (preceded by the number of digital mobile word)
b: word moving forward (digital mobile number preceded by words)
e: Move back end of the word
ge: to move forward at the end of the word
$ <End>: end of the line
0 <Home>: the line
tx: Finding the right bank of the x and moved there (capitalized to the left)
33G: Move the file on line 33
: the first line of the file
G: End of File Line
33%: 33% of the file
H / M / L: the screen first / middle / end of line
zt / zz / zb: The current row to the screen first / middle / bottom
Jump:
": Go back to the place
CTRL-O: Jump to a 'older' place
CTRL-I <Tab>: jumps to a "newer" place
Find:
/: Look down (after adding keywords)
?: Find upward (after adding keywords)
n: the next matching record
edit:
i: switch to insert mode
x: delete the current character
: Repeat the last modification operations (with PS Lane ctrl f to Filter)
u: Undo
CTRL-R: Redo
p: deletes the character into the current position (put)
Exit Saving:
: Q: quit
: Q:! To exit without saving
ZZ: save and exit
: E:! Discard the changes to re-edit
system
# Uname -a # View kernel / operating system / CPU Information
# Head -n 1 / etc / issue # check the OS version
# Cat / proc / cpuinfo # View CPU information
Check the computer name # hostname #
# Lspci -tv # List all PCI devices
# Lsusb -tv # lists all USB devices
# Lsmod # listed loaded kernel modules
View the environment variables # env #
Resources
# Free -m # See the amount of memory usage and swap
# Df -h # See the district use
# Du -sh <directory name> # see the size of the specified directory
# Grep MemTotal / proc / meminfo # Check the amount of memory
# Grep MemFree / proc / meminfo # Check the amount of free memory
# Uptime # Show system uptime, the number of users, load
# Cat / proc / loadavg # View system load
Disk and partition
# Mount | column -t # Show mounted partition status
# Fdisk -l # See all partitions
# Swapon -s # See all swap partitions
# Hdparm -i / dev / hda # View disk parameters (for IDE devices)
# Dmesg | grep IDE # view when you start the IDE device detection status
The internet
# Ifconfig # view the properties of all network interfaces
# Iptables -L # View firewall settings
# Route -n # View the routing table
# Netstat -lntp # See all listening ports
# Netstat -antp # view all established connections
# Netstat -s # View network statistics
process
# Ps -ef # view all processes
# Top # display real-time process status
user
# W # Show active users
# Id <user name> # Display user information
# Last # Show user login log
# Cut -d: -f1 / etc / passwd # View all system users
# Cut -d: -f1 / etc / group # View all system groups
# Crontab -l # to view the current user's scheduled tasks
service
# Chkconfig --list # lists all system services
# Chkconfig --list | grep on # start lists all system services
program
# Rpm -qa # view all installed packages

(1) (Reply)

Heyi Just Published A Tutorial On How You Can Get Gtbank Dollar Mastercard / 6 Ways To Make Real Money With Your Ebook / Top 20 Website To Share Your Blog For Traffic

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 25
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.