查看服务器情况
df -h
free -h
lsblk
服务器登陆
ssh root@206.190.232.205 -p 26838 -i /Users/eddieho/hx_for_hob/ssa/bwg_jp
sudo -i
安装相关依赖
yum -y install wget
yum update -y && yum install curl -y
常用 vm 测试
wget -qO- bench.sh | bash
查看 ip
curl -s http://tnx.nl/ip
ifconfig -a
文件夹操作
mv mynginx/ myblog/
mkdir myblog
rm myblog
rm -rf blog
处理防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
service iptables stop
chkconfig iptables off
环境变量
export PATH=$PATH:/opt/au1200_rm/build_tools/bin
vi /etc/profile
export PATH="$PATH:/opt/au1200_rm/build_tools/bin"
source /etc/profile
vi /root/.bashrc
export PATH="$PATH:/opt/au1200_rm/build_tools/bin"
vi ~/.bashrc
alias v2ray=/usr/local/sbin/v2ray
日期&&时间
date
- Tue 14 Nov 2023 04:13:21 PM UTC
timedatectl
- Local time: Tue 2023-11-14 16:14:00 UTC
Universal time: Tue 2023-11-14 16:14:00 UTC
RTC time: Tue 2023-11-14 16:14:01
Time zone: Etc/UTC (UTC, +0000)
- System clock synchronized: yes
NTP service: active
RTC in local TZ: no
timedatectl set-timezone Asia/Shanghai