摘要:vi /etc/sysconfig/network-scripts/ifcfg-enps03 重启network服务
阅读全文
随笔分类 - Linux笔记
Linux各种细节记录。
摘要:vi /etc/sysconfig/network-scripts/ifcfg-enps03 重启network服务
阅读全文
摘要:1.查看mysql安装 rpm -qa|grep -i mysql 2.卸载前关闭mysql服务 rpm -ev --nodeps mysql-community-release-el7-5.noarchrpm -ev --nodeps mysql-community-common-5.6.38-2
阅读全文
摘要:cd /etc/yum.repos.d/ mv CentOS-Base.repo CentOS-Base.repo.bak wget -O CentOs-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #yum源更新命令 yum clean all yum makecache yum update
阅读全文
摘要:visudo增加配制xxx ALL=(root) /usr/sbin/iftop 使用方法:sudo iftop
阅读全文
摘要:脚本内容: 配制定时程序: crontab -e 0 0 * * * /usr/local/nginx/logs/nginx-log-rotate.sh
阅读全文
摘要:创建软链:ln -s /var/data link/var/data:为实际的数据目录link:为引用目录 正确的删除方式(删除软链接,但不删除实际数据)rm -rf ./test_chk_ln (没有/) 错误的删除方式rm -rf ./test_chk_ln/ (这样就会把原来test_chk下
阅读全文
摘要:useradd uuu; 增加新用户uuu useradd -g ggg uuu; 增加用户uuu时指定分组ggg passwd uuu; 给用户uuu设置密码 groupadd ggg; 增加分组ggg usermod -G ggg uuu; 添加一个用户uuu到指定的组ggg,但是以前添加的组就
阅读全文
摘要:查找所有/usr/local/x目录test.txt文件find /usr/local/x -name "test.txt" -print | xargs ls -l 替换所有找到的test.txt文件find /usr/local/x -name "test.txt" -print | xargs
阅读全文
|