随笔分类 -  linux常用命令

linux操作语句
摘要:1.查看端口号是否被占用: netstat -anp | grep 9501 2.删除对应进程号解放端口: kill -9 26958 阅读全文
posted @ 2020-10-22 16:58 离岸少年 阅读(932) 评论(0) 推荐(0) 编辑
摘要:一般使用TP框架,都要设置默认读取index.php,直接在nginx配置文件中加入以下代码就好: if (!-e $request_filename) { rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^(.*)$ /index.ph 阅读全文
posted @ 2020-09-24 11:37 离岸少年 阅读(728) 评论(0) 推荐(0) 编辑
摘要:在某一文件夹下创建shell文件: vi /var/spool/cron/mysqlbak.sh 复制如下内容: #!/bin/bash # Name:name.sh backupdir=/www/mysqlbak time=` date +%Y%m%d%H ` /usr/bin/mysqldump 阅读全文
posted @ 2019-12-25 14:27 离岸少年 阅读(1334) 评论(0) 推荐(0) 编辑
摘要:Apache: .htaccess文件配置 Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ i 阅读全文
posted @ 2019-11-19 16:18 离岸少年 阅读(1043) 评论(0) 推荐(0) 编辑
摘要:1.重启httpd:service httpd restart2.查找目录下带有某个字符串的文件名: grep -r 'yicefin.com ' /www/vhost3.find / -name httpd.conf 全局 查找文件whereis 目录 4.查看 crontab -l编辑 cron 阅读全文
posted @ 2019-11-18 16:54 离岸少年 阅读(173) 评论(0) 推荐(0) 编辑
摘要:安装:https://getcomposer.org/download/ { "require":{ // "厂商/类库":"版本号", "smarty/smarty":"3.1.31", } } 新增:composer install修改:composer update卸载:composer re 阅读全文
posted @ 2019-11-18 16:49 离岸少年 阅读(237) 评论(0) 推荐(0) 编辑

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示