首页 文章 精选 留言 我的

精选列表

搜索[Docker部署],共10000篇文章
优秀的个人博客,低调大师

Hadoop2.7.3+Hbase-1.2.6完全分布式安装部署

因为学习,在网上找了很多hbase搭建的文章,感觉这篇很好,点此 搭建好后,jps查看了后台进程,发现在slave上面没有HRegionServer进程 便查看了 slave上关于HRegionServer的日志,发现报错 如下 然后网上查了一下,说是时间不同步的问题,自己使用date命令查看了一下系统时间,确实时间不一样 所以又搜索了几篇关于linux时间同步的博客 linux时间同步 这篇文章不错 我用的是time.nuri.net这个时间服务器, 之后再启动就好了,安装很简单

优秀的个人博客,低调大师

Eclipse中Project的Deployment Assembly(部署程序集)消失了

可能的原因主要有2个: 1. 该项目不是web项目,所以不存在Deployment Assembly 属性。在Eclipse中,怎样将一个非web project变成一个web project? 1)右键项目,选择Project Facets,点击Convert to faceted from 2) 配置Project Facets 更改Dynamic Web Module的Version为2.5。(3.0为Java7的)。 如果提示错误,可能需要在Java Compiler设置Compiler compliance level 为1.6。或者需要在此窗口的Java的Version改成1.6。 3) 配置 Modify Faceted Project 点击Further configuration available…,弹出Modify Faceted Project窗口 此处是设置web.xml文件的路径,我们输入src/main/webapp。 Generate web.xml deployment descriptor自动生成web.xml文件,可选可不选。 2. 经过1的project转换后,应该能够看到Deployment Assembly出现了,但如果还么出现,很有可能在Eclipse中Deployment Assembly被disable了,那么我们需要做的就是将Deployment Assembly选项enable。 在项目所在的工作区间有一个.project文件,打开该文件增加如下这一行用于enable Deployment Assembly属性。 <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> 如下面的.project file. <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>test</name> <comment></comment> <projects> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.wst.common.project.facet.core.builder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>com.google.gdt.eclipse.core.webAppProjectValidator</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>com.google.gwt.eclipse.core.gwtProjectValidator</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.m2e.core.maven2Builder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.m2e.core.maven2Nature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>com.google.gwt.eclipse.core.gwtNature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> </natures> </projectDescription> 然后刷新或重启, 就可在Project的properties中看到Deployment Assembly选项了。

优秀的个人博客,低调大师

在rhel6 64位环境下部署LNMP环境

实验目的:应用Nginx网页服务器,掌握LNMP基本架构实验前提:此实验除Nginx和php需要重新编译外,其他相关软件与LAMP安装方式相同,故删除之前LAMP架构中的Apache和PHP,编译安装Nginx和PHP实验环境:RHEL61_64 nginx-1.0.9 php-5.2.17内核版本:2.6.32-131.0.15.el6.x86_64实验步骤:1.Nginx-1.0.9 编译安装 ./configure --prefix=/usr/local/nginx --user=daemon --group=daemon --with-rtsig_module --with-select_module --with-poll_module --with-file-aio --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_image_filter_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nignx/nginx.pid --http-client-body-temp-path=/tmp/nginx_http --http-proxy-temp-path=/tmp/nginx_proxy --http-fastcgi-temp-path=/tmp/nginx_fcgi --with-cpu-opt=pentium4 --without-http_uwsgi_module --without-http_scgi_module --with-http_stub_status_module --with-http_perl_module --with-perl=/usr/bin/perl --with-perl_modules_path=/usr/share/perl5 --with-pcre 检查安装时会显示: nginx path prefix: "/usr/local/nginx" ----nginx安装路径 nginx binary file: "/usr/local/nginx/sbin/nginx" ----nginx启动脚本 nginx configuration prefix: "/usr/local/nginx/conf" ----nginx配置文件所在位置 nginx configuration file: "/usr/local/nginx/conf/nginx.conf" ----nginx配置文件 nginx pid file: "/var/run/nignx/nginx.pid" nginx error log file: "/var/log/nginx/error.log" nginx http access log file: "/var/log/nginx/access.log" nginx http client request body temporary files: "/tmp/nginx" nginx http proxy temporary files: "/tmp/nginx" nginx http fastcgi temporary files: "/tmp/nginx"apache和nginx通信机制对比: apache --> mod_libphp5.so --> /usr/local/bin/php --> php.ini -> socket -> mysql nginx --> tcp/ip -> /usr/local/bin/php-fcgi -> php.ini -> tcp/ip -> mysqlnginx简单配置: vim /usr/local/nginx/conf/nginx.conf user daemon; worker_processes 5; 打开的进程数量 error_log /var/log/nginx/error.log info; pid /var/run/nginx/nginx.pid; events { worker_connections 1024; 并发连接数量 } http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; 允许文件上传 keepalive_timeout 65; server { listen 80; server_name www.cluster.com; charset gb2312; access_log /var/log/nginx/www.access.log main; location / { root /www; index index.html index.htm index.php; } error_page 500 502 503 504 /50x.html; 定义错误代码 location = /50x.html { root html; } } } 检查nginx.conf配置文件是否有语法错误 [root@station10 nginx-1.0.9]# /usr/local/nginx/sbin/nginx -t nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful [root@station10 nginx-1.0.9]# /usr/local/nginx/sbin/nginx <- 启动服务器 [root@station10 nginx-1.0.9]# /usr/local/nginx/sbin/nginx -s stop <- 关闭服务器2.编译安装php-5.2.17 ./configure --enable-fastcgi --enable-force-cgi-redirect --disable-ipv6 --with-libxml-dir=/usr --with-openssl --with-zlib --with-bz2 --enable-calendar --with-curl --with-curlwrappers --with-pcre-dir=/usr/local --enable-ftp --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-xpm-dir --with-freetype-dir=/usr/local --enable-gd-native-ttf --enable-gd-jis-conv --enable-mbstring --with-mcrypt=/usr/local --with-mhash=/usr/local --with-mysql=/usr/local/mysql --with-mysql-sock=/var/run/mysqld/mysql5.socket --with-mysqli=/usr/local/mysql/bin/mysql_config --with-ncurses=/usr --with-snmp=/usr --enable-zip --enable-sockets 编译之后会生成/usr/local/bin/php-cgi 此为连接nginx和php的工具 一般情况下并发访问不大的时候: 启动 tcp ->开启9000端口,用于连接nginx和php /usr/local/bin/php-cgi -b 127.0.0.1:9000 -c /usr/local/lib/php.ini -a & 在虚拟主机中增加 location ~ \.php$ { root /www; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /www$fastcgi_script_name; include fastcgi_params; } 接下来重启nginx,就可以支持php,php与mysql的连接通过php.ini定义mysql的socket来实现注意: 当并发访问非常大的时候,此时/usr/local/bin/php-cgi就会由于压力而死掉,但nginx可能还会正常工作, 依然能解释静态页面,而php页面将不被解析!解决方法: 为保持php的稳定性,使用spawn-fcgi-1.6.3.tar.gz产蛋工具,可以解决此问题 spawn-fcgi-1.6.3.tar.gz ./configure --enable-extra-warnings&& make && make install /usr/local/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 200 -f /usr/local/bin/php-cgi -u daemon -g daemon \-将会生成200个/usr/local/bin/php-cgi后台进程 本文转自 geekwolf 51CTO博客,原文链接: http://blog.51cto.com/linuxgeek/995228

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册
修改密码
忘记密码