【无标题】

nginx

1、查看nginx状态(未启动前)
    systemctl status nginx.service     
2、启动、停止、重载命令
    systemctl start nginx.service
    systemctl stop nginx.service
    systemctl reload nginx.service
   
   3. ps aux | grep nginx(查看nginx进程运行状态)or ps aux | grep :80 | grep -v grep(过虑grep本身)
   
    6、杀掉进程命令
    a)相关nginx进行全部杀掉:killall -9 nginx  
    b)把PID两个进程杀掉:kill -9 pid1 and kill -9 pid1 
    
    
    7、查看版本
   命令:nginx -V
   
   
mysql

 1.启动 systemctl start mysql.service
 2.关闭 systemctl stop mysql.service
 2.查看启动状态 service mysql status 
 3.查看文件安装路径 whereis mysql
 mysql: /usr/bin/mysql /usr/local/mysql /usr/share/man/man1/mysql.1.gz
 查询运行文件所在路径(文件夹地址) 
 which mysql 
 4.设置开机启动服务
 systemctl enable mariadb
 systemctl disable mariadb #停止服务
 
 
 systemctl start mariadb #启动服务
systemctl restart mariadb #重新启动
systemctl status mariadb #查看下状态
systemctl stop mariadb.service #停止MariaDB

[root@localhost mysql]# systemctl  disable   mariadb.service
Removed /etc/systemd/system/multi-user.target.wants/mariadb.service.
Removed /etc/systemd/system/mysql.service.
Removed /etc/systemd/system/mysqld.service.

 
 3.防火墙
service iptables status
 
 
查看实时日志
tail -f /路径/xx.log

more 路径   
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值