-
详解IPTABLES
所属栏目:[Linux] 日期:2021-01-23 热度:199
h1 id="详解iptables"详解IPTABLES Iptables 是Linux 内核集成的 IP 信息包过滤系统。如果Linux 系统连接到因特网或 LAN、服务器或连接 LAN 和因特网的代理服务器, 则该系统有利于在 Linux 系统上更好地控制 IP 信息包过滤和防火墙配置。 防火墙在做信息包[详细]
-
批量执行工具PSSH详解
所属栏目:[Linux] 日期:2021-01-23 热度:63
h1 id="批量执行工具pssh详解"批量执行工具PSSH详解 pssh是一个python编写可以在多台服务器上执行命令的工具,同时支持拷贝文件,是同类工具中很出色的,使用必须在各个服务器上配置好密钥认证访问。 yum install pssh -y # 安装setuptools包,如果安装了跳[详细]
-
Linux性能评估工具
所属栏目:[Linux] 日期:2021-01-23 热度:87
div class="toc" p class="toc-title"目录 div class="toc-list" 检测服务器当前的性能,主要检查的项目如下: 负载:uptime 内核信息: dmesg 内存:vmstat、free CPU:top、mpstat、 I/O:iostat 网络:sar 有些命令需要安装sysstat包 $ uptime 22:37:31 u[详细]
-
VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法
所属栏目:[Linux] 日期:2021-01-23 热度:105
VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法 ?[详细]
-
linux查看主机端口进程命令
所属栏目:[Linux] 日期:2021-01-23 热度:97
div id="blog_content" class="blog_content" 1、查看主机信息 # more /etc/hosts # Do not remove the following line,or various programs # that require network functionality will fail. 127.0.0.1?????? xyn-redhat????? localhost.localdomain?? loc[详细]
-
ubuntu安装配置jdk tomcat mysql ...
所属栏目:[Linux] 日期:2021-01-23 热度:198
安装之前大家一定要检查好各个版本问题 以免造成不兼容。 ? (一)下载所需安装包: ?jdk-7u76-linux-x64.tar.gz ?apache-tomcat-7.0.63.tar.gz ?MySQL-server-5.1.73-1.glibc23.x86_64.rpm ?MySQL-client-5.1.73-1.glibc23.x86_64.rpm (二).安装jdk: 1.[详细]
-
Linux环境下实现生产者消费者问题
所属栏目:[Linux] 日期:2021-01-23 热度:80
div class="cnblogs_code" include stdio.hspan style="color: #000000;" include semaphore.hspan style="color: #000000;" include stdlib.hspan style="color: #000000;" include pthread.hspan style="color: #000000;" include unistd.h span style="co[详细]
-
Linux环境下实现管道通信-问题
所属栏目:[Linux] 日期:2021-01-23 热度:148
div class="cnblogs_code[详细]
-
Linux环境下实现哲学家就餐问题
所属栏目:[Linux] 日期:2021-01-23 热度:147
div class="cnblogs_code" #include pthread_mutex_t chopstick[ ] ; *eat_think( * phi = *( *)arg; left,right; = = = = = = = = = = /spanspan style="color: #0000ff;"gt;int/spanspan style="color: #000000;"gt; i;/spanspan style="color: #0000ff;"g[详细]
-
mount 需要同时设置 noatime 和 nodiratime 吗?
所属栏目:[Linux] 日期:2021-01-23 热度:77
div class="entry" 相信对性能、优化这些关键字有兴趣的朋友都知道在 Linux 下面挂载文件系统的时候设置 noatime 可以显著提高文件系统的性能。默认情况下,Linux ext2/ext3 文件系统在文件被访问、创建、修改等的时候记录下了文件的一些时间戳,比如:文件[详细]
-
xfsdump命令使用
所属栏目:[Linux] 日期:2021-01-23 热度:106
div id="article_content" class="article_content" 一:使用xfsdump备份和恢复xfs文件系统 首先了解一下xfsdump的备份级别有以下两种,默认为0(即完全备份) 0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?完全备份 1 ? ? 1.创建xfs文件系统并挂载到/data目录下 -[详细]
-
在另一个目录中运行(python)脚本
所属栏目:[Linux] 日期:2021-01-20 热度:59
参见英文答案 Temporarily change current working directory in bash to run a command 3个 我有一个生成文件的python脚本.我想要的是强制它写入特定文件夹中的文件.现在我必须做3个步骤: cdfoopython../awesome_script.pycd.. 有没有什么好的解决方案,我[详细]
-
c – CLion IDE:在Windows上使用ssh作为环境工具链而不是MinG
所属栏目:[Linux] 日期:2021-01-20 热度:86
我目前正在使用CLion 2016.2,我会在Windows上使用ssh作为环境工具链而不是MinGW / Cygwin.例如,Pycharm已经支持环境using a ssh location(或使用docker容器)的远程位置,并且它运行良好.我想知道这个功能是否可以用于CLion或者更高版本? 到目前为止,我发现尝[详细]
-
SBCL错误:在Linux机器上运行Maxima时“绑定堆栈耗
所属栏目:[Linux] 日期:2021-01-20 热度:80
我知道有很多地方可以问这个问题,但我想我会在这里试试.我已经看起来已经从Maxima的好人那里得到了尽可能多的帮助. 我用SBCL运行Maxima并且一直出错; INFO: Binding stack guard page unprotectedBinding stack guard page temporarily disabled: proceed wi[详细]
-
linux – 如何在shell脚本中操作数组
所属栏目:[Linux] 日期:2021-01-20 热度:111
我希望我的脚本定义一个空数组.如果预定义条件为真,则应添加数组值.为此,我所做的就是 declare -a FILESfile_count=0if [ "$file_ext" != "$SUPPORTED_FILE_TYPE" ] ; then echo "$file_ext is not supported for this task."else $FILES[$file_count] = $fi[详细]
-
如何将linux可执行文件(二进制)转换为Windows exe文件?
所属栏目:[Linux] 日期:2021-01-20 热度:117
有没有办法将Linux二进制文件转换为Windows exe文件?例如,如果在Linux中创建一个非常简单的二进制文件,如下所示: echo "main(){int i; i=i+1;}" main.cgcc main.c -o main 有没有办法将主二进制文件转换为Windows exe文件? 最佳答案 您无法将linux可执行[详细]
-
如何在Linux机器上编写Flash Action Scripts?
所属栏目:[Linux] 日期:2021-01-20 热度:134
我想知道如何在Linux中开发Flash应用程序? 是否可能,那么哪些是应用程序? 最佳答案 您有几种编译Flash应用程序的选项: Flex SDK,可从Adobe网站免费下载. haXe,一种类似Actionscript的语言,可以编译为SWF(以及Javascript和PHP). MTASC,Actionscript 2的编[详细]
-
c – 这是g中的优化错误吗?
所属栏目:[Linux] 日期:2021-01-20 热度:94
我不确定我是否在g(4.4.1-4ubuntu9)中发现了一个错误,或者我是否正在做 有问题.我相信我所看到的是启用引入的错误 使用g -O2进行优化.我试图将代码提炼到只有 相关部分. 启用优化后,我有一个失败的ASSERT.什么时候 优化被禁用,相同的ASSERT不会失败.我想我已[详细]
-
解决两台centos虚拟机Telnet服务无法联机的问题
所属栏目:[Linux] 日期:2021-01-20 热度:108
关闭防火墙 [root@localhost ~]# service iptables stopiptables: Flushing firewall rules:???????????????????????? [? OK? ]iptables: Setting chains to policy ACCEPT: filter????????? [? OK? ]iptables: Unloading modules:?????????????????????????[详细]
-
linux主机间复制文件
所属栏目:[Linux] 日期:2021-01-20 热度:182
命令基本格式: 1、从 本地 复制到 远程? ? * 复制文件:? ? ? ? ? * 命令格式:? ? ? ? ? ? ? ? ? scp local_file remote_username@remote_ip:remote_folder? ? ? ? ? ? ? ? ? 或者? ? ? ? ? ? ? ? ? scp local_file remote_username@remote_ip:remote_file[详细]
-
RPM安装命令总结--转载
所属栏目:[Linux] 日期:2021-01-20 热度:120
div id="cnblogs_post_body" 安装、卸载、升级、查询和验证 。 #rpm - #rpm - #rpm -ivh example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息及安装进度 # rpm -e example # rpm -Uvh example.rpm saving /etc/example.conf as /etc/examp[详细]
-
How can I exclude directories from grep -R?
所属栏目:[Linux] 日期:2021-01-20 热度:54
‘--exclude-dir=dir’ Exclude directories matching the pattern dir from recursive directory searches. = ) provide: ‘--exclude-dir=dir’ Exclude directories matching the pattern dir from recursive directory searches. So you can do: grep[详细]
-
主机访问虚拟机中linux上的web服务
所属栏目:[Linux] 日期:2021-01-20 热度:159
环境:主机windows xp 虚拟机centos 6.4 [root@localhost /]# iptables -I INPUT -p tcp --dport 80 -j ACCEPT[root@localhost /]# /etc/rc.d/init.d/iptables saveiptables: Saving firewall rules to /etc/sysconfig/iptables:[? OK? ] [root@localhost /][详细]
-
CentOS下安装JDK7 转载
所属栏目:[Linux] 日期:2021-01-20 热度:51
转载地址:http://www.cnblogs.com/rilley/archive/2012/02/02/2335395.html 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html 1. 安装JDK1.7.0下载完成后在取得root权限后执行: [root@sea sea] 执[详细]
-
用于软件包管理的21个Linux YUM命令 转载
所属栏目:[Linux] 日期:2021-01-20 热度:174
http://flycars001.iteye.com/blog/1949085 ol class="dp-xml" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 1px !important; margin-left: 55px; padding: 5px 0px; color: #5c5c5c; border: none; background-color:[详细]