经过Mariadb数次异常停摆后,查出来内存溢出错误。为啥以前就没有出过这个问题。free指令一看,我怎么没有swap分区!整理了一下Lin
安装依赖环境: yum install -y openssl-devel openssl-static zlib-devel lzma tk-devel xz-devel bzip2-devel ncurses-devel gdbm-devel readline-devel sqlite-devel gcc libffi-devel 下载Python3.7.0 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz 将解压后文件夹迁移至/usr/local mv Python-3.7.0 /usr/local 进入Python目
以下用一个python脚本为例,创建一个系统服务。python运行指令: /usr/bin/python /home/snail/autorun.py 创建服务描述文件 sudo vim /lib/systemd/system/autorun.service 写入如下内容: [Unit] Description=Test Service After=multi-user.target [Service] Type=idle ExecStart=/usr/bin/python /home/snail/autorun.py [Install] WantedBy=multi-user.target 上面定义