Ubuntu

Linux版本

妖精的绣舞 提交于 2020-11-28 08:41:31
![] 1.RedHat家族 主要包括RedHat企业版,CentO S版本,Fedara RedHat企业版:这个需要授权费,主要用在高要求的服务器商用系统,在版本上注重了性能和稳定性以及对硬件的支持。由于企业版系统的开发周期较长,注重性能、稳定性和服务端软件支持,因此版本更新较慢。 CentOS:全名”社区企业操作系统“,它对最终用户免费提供。CentOS社区将RedHat的网站上的所有源代码下载下来,进行重新编译。因此,必须将所有RedHat的Logo和标识改成CentOS标识。 Fedara:被红帽公司定位为新技术的实验场地,去多新的技术都会在FC中检验,如果稳定会加入RedHat中;一般在服务器不推荐采用Fedara。 2、Debian Debian运行起来极其稳定,在服务器和桌面领域都有着广泛的应用。Debian是一个纯开源计划并着重在一个关键点上,稳定性。Debian这款操作系统派生出了多个Linux发行版。它同时也提供了最大的和完整的软件仓库给用户。 主要基于 Debian的版本如下: Debian Ubuntu Linux Mint Knoppix MEPIS sidux CrunchBang Linux Chromium OS Google Chrome OS 重点推荐:Ubuntu是Debian的一款衍生版,也是当今最受欢迎的免费操作系统

gcc generate .o file instead of executable

不想你离开。 提交于 2020-11-28 02:57:26
问题 I'm trying to debug claws-mail notification plugin, I have code like this: #include "notification_indicator.h" #include "notification_prefs.h" #include "notification_core.h" #include "folder.h" #include "common/utils.h" #include <messaging-menu.h> #include <unity.h> #define CLAWS_DESKTOP_FILE "claws-mail.desktop" #include <stdio.h> void main(void) { GList *cur_mb; gint total_message_count; total_message_count = 0; /* check accounts for new/unread counts */ for(cur_mb = folder_get_list(); cur

gcc generate .o file instead of executable

只愿长相守 提交于 2020-11-28 02:55:06
问题 I'm trying to debug claws-mail notification plugin, I have code like this: #include "notification_indicator.h" #include "notification_prefs.h" #include "notification_core.h" #include "folder.h" #include "common/utils.h" #include <messaging-menu.h> #include <unity.h> #define CLAWS_DESKTOP_FILE "claws-mail.desktop" #include <stdio.h> void main(void) { GList *cur_mb; gint total_message_count; total_message_count = 0; /* check accounts for new/unread counts */ for(cur_mb = folder_get_list(); cur

gcc generate .o file instead of executable

心不动则不痛 提交于 2020-11-28 02:51:27
问题 I'm trying to debug claws-mail notification plugin, I have code like this: #include "notification_indicator.h" #include "notification_prefs.h" #include "notification_core.h" #include "folder.h" #include "common/utils.h" #include <messaging-menu.h> #include <unity.h> #define CLAWS_DESKTOP_FILE "claws-mail.desktop" #include <stdio.h> void main(void) { GList *cur_mb; gint total_message_count; total_message_count = 0; /* check accounts for new/unread counts */ for(cur_mb = folder_get_list(); cur

Ubuntu安装docker环境

自古美人都是妖i 提交于 2020-11-27 12:37:43
安装 docker # step 1: 安装必要的一些系统工具 sudo apt-get update sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common # step 2: 安装GPG证书 curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - # Step 3: 写入软件源信息 sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" # Step 4: 更新并安装Docker-CE sudo apt-get -y update sudo apt-get -y install docker-ce docker-compose # 安装指定版本的Docker-CE: # Step 1: 查找Docker-CE的版本: # apt-cache madison docker-ce # docker-ce | 17.03.1~ce-0~ubuntu-xenial |

pycharm连接不上mysql数据库的解决办法

戏子无情 提交于 2020-11-27 06:31:58
问题描述 环境:ubuntu18.04,mysql5.7 今天在ubuntu下使用pycharm连接mysql,发现连接不上 这不是缺少驱动吗?下载之! 下好之后点进去 连接 点击test connection 这是什么鬼??? 网上找各种博客都说是权限问题,然而我试了之后发现并不是,授予root用户所有权限之后仍然连接不上,我突然想到可能是驱动版本的问题,目前mysql的最新版本是8.0,而驱动的版本也正好是8.0,这之间是不是有什么关联呢。 <br> ## 解决办法 点开驱动下载页 点击右边+号 依次选择-privided driver--->mysql connector 因为我用的是mysql5.7版本,因此这里我选5.1.47(5版本里最新的),点击ok 发现可以正常连接了 <br> ## 小结 <b><font color='red'>pycharm连接数据库的驱动版本要与mysql的版本对应</font></b> mysql8.0使用8.0版本的驱动,mysql8.0以下的使用5.1.47的驱动 来源: oschina 链接: https://my.oschina.net/u/4296609/blog/3551466

Ubuntu安装flex和bison

不羁的心 提交于 2020-11-26 18:49:51
在学习虎书,第二章练习要用lex和yacc,然而作者提供的 网址 上放的是flex和bison,当然这样更好啦(flex和bison完全兼容lex和yacc)。考虑到在windows下用这两个玩意还要安装masm,所以最后决定上虚拟机(之前操作系统课就装过了,幸亏没卸载哈哈哈)。 Ubuntu下使用 sudo apt-get install flex bison 命令,不一会就装好了,如图: 然后写了一个测试程序,就用Ubuntu自带的gedit写, 保存为.l文件 : %% [\t] + is | am | are | was | were { printf ( "%s: is a verb\n" ,yytext);} [a-zA-Z] + { printf ( "%s: is not a verb" ,yytext);} .|\ n %% int main (){ yylex (); } 使用命令 lex verb.l 再使用命令 gcc lex.yy.l -lfl 最后运行 ./a.out 这个程序会判断输入的单词是不是动词: 程序成功运行也说明我们安装配置成功了。 来源: oschina 链接: https://my.oschina.net/u/4518215/blog/4751194

Ubuntu18.04 安装Tomcat 8.5

孤街醉人 提交于 2020-11-26 17:54:01
转载地址:https://blog.csdn.net/weixx3/article/details/80808484 Ubuntu18.04 安装Tomcat 8.5 环境信息: OS:Ubuntu18.04 JDK:1.8 Tomcat: 8.5.31 1.下载Tomcat 8.5.31 到Apache Tomcat®官网,选择 tar.gz 包下载, 点击跳转 : 2.安装配置 2.1 把tomcat放到你想要方的位置 sudo cp apache-tomcat-8.5.31.tar.gz /usr/local/ 2.2 解压 sudo tar -zxvf apache-tomcat-8.5.31.tar.gz 2.3 赋权限 sudo chmod 755 -R apache-tomcat-8.5.31 2.4 修改启动脚本 进入tomcat的bin目录下: sudo vi startup.sh 在最后一行之前加入如下信息(注意根据自己实际情况修改JAVA_HOME和TOMCAT_HOME): #set java environment export JAVA_HOME=/usr/local/jdk1.8 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:%{JAVA_HOME}/lib:%{JRE_HOME}/lib

ubuntu18.04安装Apache,配置多个虚拟主机,并整合tomcat

牧云@^-^@ 提交于 2020-11-26 16:48:05
ubuntu上配置Apache和centeros好像还不太一样,里面的配置文件好像有点区别,centeros上是httpd.conf,ubuntu是apache2.conf,记录一下ubuntu18.04系统下的操作: 一、安装Apache 1.直接用命令安装,sudo apt-get install apache2 2.安装完后,查看Apache的版本信息,apache2 -v 3.安装完,访问localhost,会显示默认页面,显示apache2 ubuntu default page apache已经安装成功。因为是使用命令安装,可以使用service命令操作apache: Service apache2 start; Service apache2 stop; Service apache2 restart; Service apache2 status; 配置文件都在/etc/apache2目录下面(可以用whereis apache2命令查看位置,具体目录的作用可百度) 二、配置多个虚拟主机 1.修改hosts文件,sudo /etc/hosts,添加: 2.进入目录/etc/apache2,其中有两个目录,sites-avaliable和sites-enabled,作用自己百度 3.在sites-avaliable中,复制000-default.conf文件

Linux中一个高效的资源监控器 – Bpytop

断了今生、忘了曾经 提交于 2020-11-26 16:22:17
对于终端爱好者来说,能够监控系统资源的使用也是至关重要的。了解系统的资源利用率可以帮助您在一般的系统维护中做出明智的决策。有一些选项,比如top和htop,但是它们只显示一些系统指标,比如CPU和内存使用情况。Bpytop是一个高效的、视觉上很吸引人的基于终端的资源监视器。 准备工作 在开始安装Bpytop之前,请确保系统满足以下要求: Python3 Psutil模块。安装方式 python3 -m pip install psutil 安装Bpytop 您可以通过两种方式安装Bpytop:从github下载源码包进行编译安装和从各个发行版系统的仓库中安装。让我们看看以下每种安装方式: 源码安装 首先需要从github克隆: [root@localhost ~]# git clone https://github.com/aristocratos/bpytop.git Cloning into 'bpytop'... remote: Enumerating objects: 121, done. remote: Counting objects: 100% (121/121), done. remote: Compressing objects: 100% (72/72), done. remote: Total 501 (delta 73), reused 95 (delta