摘要: 去掉# [root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl restarthttpd not running, trying to start[root@lizhipenglinux01 ~]# /usr/local/apach 阅读全文
posted @ 2018-02-28 22:26 sisul 阅读(113) 评论(0) 推荐(0) 编辑
摘要: [root@lizhipenglinux01 src]# cd php-5.6.30/[root@lizhipenglinux01 php-5.6.30]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2.4/b 阅读全文
posted @ 2018-02-25 21:46 sisul 阅读(108) 评论(0) 推荐(0) 编辑
摘要: [root@lizhipenglinux01 mariadb]# cp support-files/my-small.cnf /usr/local/mariadb/my.conf 配置文件[root@lizhipenglinux01 mariadb]# cp support-files/mysql. 阅读全文
posted @ 2018-02-25 17:50 sisul 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 下载完成之后进行解压 tar zxvf mysql-5.6.36-linux-glibc2.5-x86_64.tar.gz 挪目录并且改名字 [root@lizhipenglinux01 mysql]# ./scripts/mysql_install_db --user=mysql --datadi 阅读全文
posted @ 2018-02-25 09:20 sisul 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 题目: 请定义一个函数 ’quadratic(a,b,c)‘,接收三个参数,返回一元二次方程: ax² + bx + c = 0 的两个解。(提示:计算平方根可以调用math.sqrt()函数) 阅读全文
posted @ 2018-02-02 22:39 sisul 阅读(8663) 评论(1) 推荐(0) 编辑
摘要: [root@lizhipenglinux01 ~]# mkdir /tmp/rsync[root@lizhipenglinux01 ~]# chmod 777 /tmp/rsync 第二个机器 [root@lizhipeng02 ~]# rsync -avP /tmp/lizhipeng.txt 1 阅读全文
posted @ 2018-01-30 23:24 sisul 阅读(252) 评论(0) 推荐(0) 编辑
摘要: [root@lizhipenglinux01 ~]# rsync -av /etc/passwd /tmp/1.txtsending incremental file listpasswd sent 1318 bytes received 31 bytes 2698.00 bytes/sectota 阅读全文
posted @ 2018-01-28 17:13 sisul 阅读(222) 评论(0) 推荐(0) 编辑
摘要: [root@lizhipenglinux01 ~]# crontab -e 编写任务计划no crontab for root - using an empty one 20 11 29 01 1 echo "OK" > /root/cron.log 表示在1月29日(星期一)的11点20分执行:e 阅读全文
posted @ 2018-01-28 14:12 sisul 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: [root@lizhipenglinux01 ~]# cat /tmp/ipt.txt# Generated by iptables-save v1.4.21 on Fri Jan 26 05:40:28 2018*nat:PREROUTING ACCEPT [3:984]:INPUT ACCEPT 阅读全文
posted @ 2018-01-26 23:46 sisul 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 需求:只针对filter表,预设策略表INPUT链DROP,其他两个链ACCEPT,然后针对192.168.5.0/24开通22端口,对所有网段开放80端口,对所有网段开放21端口 恢复到默认状态 [root@lizhipenglinux01 ~]# iptables -I INPUT -p icm 阅读全文
posted @ 2018-01-25 20:19 sisul 阅读(148) 评论(0) 推荐(0) 编辑