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