2020-12-19 myluzh
系统运维
systemctl is-enabled servicename.service #查询服务是否开机启动
systemctl enable *.service #开机运行服务
systemctl disable *.service #取消开机运行
systemctl start *.service #启动服务
systemctl stop *.service #停止服务
systemctl restart *.service #重启服务
systemctl reload *.service #重新加载服务配置文件
systemctl status *.service #查询服务运行状态
阅读全文>>
标签: centos linux ubuntu systemctl
评论(0)
(531)
2020-12-18 myluzh
系统运维
文件位置:/etc/apt/sources.list
#添加阿里源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors...
阅读全文>>
标签: ubuntu
评论(0)
(487)
2020-12-18 myluzh
系统运维
0x01安装Nginx
安装Nginx
sudo apt-get install nginx
启动Nginx服务
sudo /etc/init.d/nginx start
停止Nginx服务
sudo /etc/init.d/nginx stop
加载最新配置
sudo /etc/init.d/nginx reload
默认配置文件位置简单配置
/etc/nginx/sites-enabled/default
server {
listen 80;
server_name localhost;
root /var/www/html;
location / {
index index.php index.html;
#autoindex off;
}
#开启php
location ~ \.php(.*)$ {
#"netstat -npl | grep php"可...
阅读全文>>
标签: ubuntu lnmp
评论(0)
(358)