Linux - 安装 SSH服务 Linux
一、开启SSH服务。使用命令 sudo /etc/init.d/ssh start 来开启服务
显示:sudo /etc/init.d/ssh:找不到命令 说明没安装 SSH服务
二、安装 SSH服务,
1、更新源:sudo apt-get update 更新安装源
2、安装SSH服务:sudo apt-get install open...
Linux - Apache服务常见配置文件 Linux
文件名称
作用
/etc/httpd
服务目录
/etc/httpd/conf/httpd.conf
主配置文件
/var/www/html
网站数据目录
/var/log/httpd/access_log
网站数据目录
/var/log/httpd/error_log
错误日志
/etc/httpd/conf.d
附加模块...
设置vim 永久显示行号
syntax on
"syntax enable
filetype plugin indent on
set clipboard=unnamed,unnamedplus
set smarttab
set autoindent
set number
set title
set noswapfile
"set lazyredraw
set ttyfast
" s...
Apache
vhost.conf 配置
访问 http 时跳转到 https
Listen 80
NameVirtualHost *:80
<VirtualHost *:80>
#DocumentRoot /var/www/html
ServerName t.apios.ltd
ServerAlias t.apios.ltd
RewriteEngine o...
Linux 常用命令 - ping命令详解 Linux
1、每隔0.6秒ping一次,一共ping 5次:
ping -c 5 -i 0.6 apios.ltd
2、指定次数后停止ping:
ping -c 3 qq.com
3、访问网址:
curl https://apios.ltd
composer 卸载扩展或删除扩展包
查看当前所有安装的扩展包
composer show -i
卸载扩展包,使用 composer remove
composer remove topthink/think-image
phpstorm调试XDebug 超时问题
phpstorm+xdebug+apache 调试代码时,一分钟就超时处理:
修改配置文件:
1.php.ini 设置xdebug, 增加
xdebug.remote_cookie_expire_time = 3600
max_execution_time=3600
max_input_time=3600
default_socket_timeout = 3...
Linux 压缩/解压 Linux
tar格式压缩和解压
(1)打包归档格式:
tar -cvf examples.tar files|dir
说明:
-c, --create create a new archive 创建一个归档文件
-v, --verbose verbosely list files processed 显示创建归档文件的进程
-f, --file=ARCHIVE u...
1 2