Linux(Ubuntu)搭建阿里云服务所遇到问题笔记
apt-get install 安装包(yum无法使用)
mysql修改配置文件-(开放端口以及修改文件存储地址)
vi /etc/mysql/mariadb.conf.d/
redis服务开启后需重新打开窗口使用
杀死多个进程
ps -ef |grep 进程名 |awk '{print $2}'|xargs kill -9
定时crontab
crontab -e
例:10 00 * * * python3 /mnt/python_code/fwq_comic/aiqiyi_detail_web.py >> /mnt/python_code/log/code_log.txt
#查看所有服务器状态
service --status-all
#如果Python 中mysql127.0.0.1 或hostlocal无法连接,在mysql user表中添加root对应地址
ERROR 1524 (HY000): Plugin 'msyql_native_password' is not loaded(Ubuntu)错误
https://blog.csdn.net/nageaixiaodenanhai/article/details/89319444
启动定时任务cron(ubuntu)
sudo service cron start
#crontab日志
/var/log/cron.log
ubuntu下重置crontab编辑器
[root@wang ~]# select-editor
Select an editor. To change later, run 'select-editor'.
1. /bin/ed
2. /bin/nano <---- easiest
3. /usr/bin/vim.basic
4. /usr/bin/vim.tiny
Choose 1-4 [2]: 3 //选择3即可!
再次编辑crontab,就会进入vim编辑模式了。
本文章仅供学习参考,如有版权侵犯,请联系作者修改,转载请注明出处!
浙公网安备 33010602011771号