CentOS文件、文件夹的搜索、数据库打包、FTP检查等操作

常用教程1 4,364阅读模式

查找文件

find / -name 'filename'文章源自原紫番博客-https://www.yuanzifan.com/54440.html

2、查找目录文章源自原紫番博客-https://www.yuanzifan.com/54440.html

find / -name 'path' -type d文章源自原紫番博客-https://www.yuanzifan.com/54440.html

3、查找内容文章源自原紫番博客-https://www.yuanzifan.com/54440.html

find . | xargs grep -ri 'content'
//find . | xargs grep -ril 'content' 只显示文件名称文章源自原紫番博客-https://www.yuanzifan.com/54440.html

在CentOS 7x下,最后要加上分号,才能执行完成。文章源自原紫番博客-https://www.yuanzifan.com/54440.html

检查PHP版本:文章源自原紫番博客-https://www.yuanzifan.com/54440.html

php -v

检查是否安装Apache文章源自原紫番博客-https://www.yuanzifan.com/54440.html

httpd -v

查看是否安装默认的vsftp文章源自原紫番博客-https://www.yuanzifan.com/54440.html

vsftp -v

打包备份数据库:文章源自原紫番博客-https://www.yuanzifan.com/54440.html

 

 
    • 今日新闻 2

      文章非常好超喜欢

    发表评论

    匿名网友
    :?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
    确定

    取消

    拖动滑块以完成验证