发布时间:2018-12-12 19:32:28
在创建表时发生Column 'gender' has duplicated value '?' in ENUM的错误......【阅读全文】
发布时间:2018-11-29 10:27:44
[root@localhost ~]# python test.py请输入qwerTraceback (most recent call last): File "test.py", line 3, in <module> a = input('请输入') File "<string>", line 1, in <module>NameError: name 'qwer' is not definedtest.py文件内容如下[root@localhost ~]# cat test.py.........【阅读全文】
发布时间:2018-11-28 22:50:54
[root@server testpython]# python server.py File "server.py", line 8SyntaxError: Non-ASCII character '\xe7' in file server.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details报错原因:因为Python在默认状态下不支持源文件中的编码所致解决办法:#!/us.........【阅读全文】
发布时间:2018-11-23 11:33:20
centos7中编辑python脚本时,导入了psutil模块,在执行时出错[root@server ~]# ./hello.pyTraceback (most recent call last): File "./hello.py", line 2, in import psutilModuleNotFoundError: No module named 'psutil'......【阅读全文】
发布时间:2018-11-22 13:55:41
centos 7 (1)ifconfig 没有主机ip地址(2)systemctl status network 报错 systemctl start network报错 Failed to start LSB: Bring up/down networking(3)试着执行systemctl stop NetworkManager(4)ifconfig 得到主机的ip,恢复正常.........【阅读全文】
发布时间:2018-11-20 19:21:20
一发现问题(1)crontab -e*/1 * * * * student date >> /tmp/date(2)cat /tmp/date 发现并没有内容 tail -f /var/log/cron 发现计划任务在执行,(3) crontab -e*/1 * * * * student date &>>/tmp/date(4)cat /tmp/date 发现文件里面有如下错.........【阅读全文】
发布时间:2018-11-19 22:32:27
在执行命令setfacl-m u:natasha:rw /var/tmp/fstab时报错 setfacl: Option -m: Invalid argument near character 3 原因:natasha这个用户不存在,useradd natasha 问题解决......【阅读全文】
发布时间:2018-11-15 21:38:10
Can't locate Mail/Sender.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /home/disk_sendmail.pl line 2.BEGIN failed--compilation aborted at /home/disk_sendmail.pl line 2.出现.........【阅读全文】