2024年1月
Linux常用命令
防火墙状态 service iptables status
永久关闭防火墙 chkconfig iptables off
启用systemctl systemctl disenable auto-proxy.service
停用systemctl systemctl enable auto-proxy.service
查看systemctl所有运行服务 systemctl list-units --type=service --state=running
数据库备份mysqldump -u root -p -A > xx.xql
数据库还原 mysql -uroot -p < xx.xql
查看端口服务监听状态 netstat -nlp |grep LISTEN
查看socat进程个数 ps -ef | grep socat | wc -l
lnmp下开启thinkphp路由 cd到/usr/local/php/etc/php.ini 修改cgi.fix_pathinfo = 1 [修改后——如果没有,自行添加]