chmod -R 755 授权文件夹权限
https://blog.csdn.net/coolcoffee168/article/details/89373902?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-7.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-7.control 参考链接
firewall
-
cmd
-
-
state 查看防火墙
reboot 重启
poweroff 关闭系统
weget 下载网络文件
ps 查看系统进程
top 动态监视进程活动与系统负载信息
pidof tomcat 查看tomcat的PID的值
kill tomcat 终止tomcat的PID的进程
killall 指定的服务名称的服务对应的所有进程
系统状态检测命令
ifconfig 查看网卡配置信息
uname 查看内核与系统版本 例:uname -a
free 查看内存
who 查看当前登陆人的主机
同步网络时间
yum -y install ntp 安装ntp服务
ntpdate time.nist.gov 手动同步到网络时间
hwclock --systohc 写入硬件时间
date 查看服务器时间,自己对比北京时间,一致说明ok
unzip -O cp936 xxx.zip 解压文件用这个,就不会乱码
https://www.cnblogs.com/zhengchunyuan/p/11540258.html 参考地址
例如linux.zip.001, linux.zip.002, linux.zip.003 1、 cat linux.zip* > linux.zip #合并为一个zip包。 2、 unzip linux.zip #解压zip包。 管道命令可以实现 ls |grep csv |while read line;do zip $line.zip $line;done 如果多个文件压缩成一个压缩包可以如下命令
rpm -ivh xxx.rpm 将下载好的xxx.rpm包进行安装
账号维护
userdel -r wangx 删除wangxy用户名
passwd 修改用户密码
useradd xxx 添加xxx用户
yum install net-tools ifconfig 查看ip(最小化安装ifconfig无法使用,输入ifconfig提示 commond not found,则需安装net-tools)
https://blog.csdn.net/sunnyfg/article/details/52612764 安装php5.5
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh 宝塔面板一键安装脚本
https://www.cheshirex.com/2573.html 取消注册(可能会存在缓存,用另外一个浏览器试下)
sed -i "s|if (bind_user == 'True') {|if (bind_user == 'REMOVED') {|g" /www/server/panel/BTPanel/static/js/index.js ssh输入
du -h --max-depth=1 * 查看文件夹大小
scp -P22 -rp /tmp/oldboy oldboy@10.0.0.143:/tmp 拷贝文件