查看Linux服务是否启动. ps -ef | grep nginx 解决办法:1,添加 80 段端口配置 firewall-cmd --zone=public --add-port=80/tcp --permanent2,重启防火墙 systemctl restart firewalld.service…
pm2命令 pm2 ls //查询pm2 启动的列表 pm2 start app.js //启动文件 pm2 restart app //重启项目 pm2 logs app //监控项目执行日志打印 pm2 stop app //停止项目执行 pm2 flush //清除日志 pm2 flush && pm2 restart app && pm2 logs app 端口查询 netstat -tunlp // 用于查看端口号的进程情况 netstat -tunlp |gre…
1.启动nginx服务报错 环境:centos 6.9,yum安装的nginx,启动报错 [root@lnmp ~]# nginx -tnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)nginx: configuration file /etc/ng…
安装Nginx依赖环境和库.Nginx安装,Nginx服务命令 因为Nginx官方提供的是C源码,要自己进行编译,所以需要自己拥有编译所依赖的环境和库才可正常编译 安装gcc yum -y install gcc automake autoconf libtool make 安装g++ yum install gcc gcc-c++ 安装PCRE库 这是一个表达式库,Nginx中的http模块则使用到了该库来解析正则表达式,所以安装它,自己选择一个路径,我这里选择了/usr/local/src…
VirtualBox内刚刚安装完Debian9系统,也无法设置共享文件夹.解决的方法就是安装VirtualBox客户端增强包. 1.若直接安装客户端增强包会得到如下提示:root@debian:/opt# ./VBoxLinuxAdditions.run Verifying archive integrity... All good.Uncompressing VirtualBox 5.1.34 Guest Additions for Linux...........VirtualBox Gue…
VirtualBox内刚刚安装完CentOS6.9和7系统,无法调整屏幕的分辨率,也无法设置共享文件夹.解决的方法就是安装VirtualBox客户端增强包. 1.若直接安装客户端增强包会得到如下提示:[root@CentOS opt]# ./VBoxLinuxAdditions.run Verifying archive integrity... All good.Uncompressing VirtualBox 5.1.34 Guest Additions for Linux.........…
安装完PyCharm,启动时弹出"Failed to load JVM DLL\bin\server\jvm.dll"解决方案 问题描述:打开PyCharm时,弹出"Failed to load JVM DLL\bin\server\jvm.dll   if you already have a 32-bit JDK install-" 解决方案: 别人的解决方案: (1)安装Microsoft Visual C++ 2010 Redistributable Pac…
本文引用自 --> http://zhouhaitao.iteye.com/blog/1164736 Tomcat服务启动成功,但访问index.jsp出错 环境:Tomcat6 + jdk6 Tomcat服务启动成功,但访问index.jsp出错,Tomcat报错如下: jspInit  NullPointerException 严重: Servlet.service() for servlet jsp threw exception java.lang.NullPointerExceptio…
本文引用自 --> http://zhouhaitao.iteye.com/blog/1164736 Tomcat服务启动成功,但访问index.jsp出错 环境:Tomcat6 + jdk6 Tomcat服务启动成功,但访问index.jsp出错,Tomcat报错如下: jspInit  NullPointerException 严重: Servlet.service() for servlet jsp threw exception java.lang.NullPointerExceptio…
使用源码包安装的Nginx没办法使用"service nginx start"或"/etc/init.d/nginx start"进行操作和控制,所以写了以下的服务控制脚本. 选项有: start 启动 stop 停止 reload 重载 restart 重启 status 状态 test 检查配置文件 脚本一 创建脚本文件并添加执行权限 touch /etc/init.d/nginx chmod +x /etc/init.d/nginx 编写脚本内容 #!/bin…
Nginx服务有时起动不了了,原因是80端口为其它应用程序占用了,这时,我们需要查看是哪个程序占用了它,可能是IIS的某个站点,或者Tomat,Apache等,都有可能,所以,我们需要查看一下电脑80端口的使用情况,使用下面命令 netstat -aon|findstr " 看一下结果…
今天安装sqlserver2014后 发现启动2014的服务,过几秒就会自动停止 通过查看windows日志发现是系统库路径报错~ google了下 发现 "重新生成系统库"就能解决此问题 https://docs.microsoft.com/zh-cn/sql/relational-databases/databases/rebuild-system-databases…
今天安装完系统,配置pycharm的环境的时候,启动pycharm时,碰到"failed to load jvm dll"的错误, 下面给出其解决方案: 安装Microsoft Visual C++ 2010 Redistributable Package 32 bit: http://www.microsoft.com/download/en/details.aspx?id=5555 64 bit: http://www.microsoft.com/download/en/detai…
1.安装完并remove掉后重新install后没nginx.conf文件 解决办法: apt-get -y --purge remove nginx* apt-get -y autoremove apt -y install nginx 2.搭建文件服务器: apt -y install nginx                                   #安装 cp /etc/nginx/nginx.conf{,.bak}                #备份主配置文件 vim…
安装完Fedora20后,把Nvidia驱动装上后重起机器一直黑屏时,切换到命令行下:Alt+F2  登陆上去,然后直接更新: su -c ‘yum update’ ,再重起就OK了.…
很多时候,安装完成后,服务也启动了 但是访问不了 看看是不是防火墙开启了: 本地试下端口是否可访问telnet 192.168.4.155 80 CentOS 7默认使用的是firewall作为防火墙,这里改为iptables防火墙. firewall: systemctl start firewalld.service#启动firewall systemctl stop firewalld.service#停止firewall systemctl disable firewalld.servi…
安装mongodb后,在命令行进入mongoDB安装目录执行如下: mongod --dbpath [数据存放的本地路径] 提示如下错误: ERROR: dbpath (数据存放的本地路径) does not exist. 执行mongod --help,发现说明如下: --dbpath arg (=\data\db\)   directory for datafiles - defaults to \data\db\ 于是加了个等号,执行命令为: mongod --dbpath=[数据存放的本…
MongoDB: 1.下载地址:http://www.mongodb.org/downloads(32位还是64位自行选择).我下载的是:mongodb-win32-x86_64-3.2.4-signed.msi 源码地址:https://fastdl.mongodb.org/src/mongodb-src-r3.2.4.zip?_ga=1.146191420.943055734.1460080387 2.安装 一直点下去可以更换目录. 3. 安装准备MongoDB默认的数据目录为:C:\dat…
下载Windows Service Wrapper 本文下载了winsw-2.3.0-bin.exe. 新建一个目录aiplatformService 在目录里面新建一个aiplatformService.xml,同时把winsw-2.3.0-bin.exe重命名陈aiplatformService.exe 必须这么做,否则无法安装启动服务. 编辑aiplatfomService.xml文件 <?xml version="1.0" encoding="utf-8&quo…
解决远程连接mysql错误1130 远程连接Mysql服务器的数据库,错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx  is not allowed to connect to this MySQL server  猜想是无法给远程连接的用户权限问题. 这样子操作mysql库,即可解决.  在本机登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从”localhost”改称'%'即可 mysql -u root -p…
#!/bin/sh # chkconfig: 2345 40 98 # description: Start/Stop Nginx server path=/application/nginx/sbin pid=/application/nginx/logs/nginx.pid RETVAL=0 . /etc/init.d/functions start(){     if [ ! -f $pid ];then         $path/nginx         RETVAL=$?     …
[root@admin-node subsys]# service mysql startStarting MySQL. ERROR! [root@admin-node subsys]# service mysql status ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists /var/lock/subsys/mysql存在的原因可能是以前没有卸载干净或者上次意外退出.直接将其删除就可以了,删除…
1.查看iptables服务示范启动 service iptables status 2.没有安装的话安装 yum install iptables-services 3.修改配置文件, 添加一行: -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT vim /etc/sysconfig/iptables…
问题:在电脑A上安装完了magento 1.7.0.2 然后, 在电脑A上用 http://localhost/magento 访问网站,没有问题. 但在电脑B 上用 http://192.168.41.131/magento 访问的时候,就会发现URL自动跳转到 http://localhost/magento 这个链接上,然后访问失败 解决方法: 在电脑A上登录magento后台,进入 System -> Configuration -> web -> Unsecure 在 Base…
首先,可以进入/usr/local/nagios/sbin, [root@localhost sbin]# ldd statusmap.cgi linux-vdso.so. => (0x00007fffc9ffd000) libgd.so. => /usr/lib64/libgd.so. (0x00002b7199006000) libiconv.so. => not found libpng12.so. => /usr/lib64/libpng12.so. (0x00000038…
Linux配置防火墙 开启80端口 编辑配置文件/etc/sysconfig/iptables [root@weixinht ~]# vim /etc/sysconfig/iptables 1 # Firewall configuration written by system-config-firewall 2 # Manual customization of this file is not recommended. 3 *filter 4 :INPUT ACCEPT [0:0] 5 :F…
先安装Nginx服务 启动 Windows安装Nginx服务 参考:https://www.cnblogs.com/pxblog/p/14871932.html 下载软件 https://github.com/onlyGuo/nginx-gui/releases/tag/1.6 也可以 https://yvioo.lanzoui.com/iGelJq394he 然后解压 修改conf/conf.properties文件 指定Nginx的路径和配置文件的路径 然后点击startup.bat启动 s…
场景 Linux-安装 Ubuntu Server 16.04 X64(图文教程详细版): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/93790806 Nginx入门简介和反向代理.负载均衡.动静分离理解: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/102790862 注: 博客: https://blog.csdn.net/badao_liuman…
写在前面 很多时候,我们根据当时的项目情况和业务需求安装完Nginx后,后续随着业务的发展,往往会给安装好的Nginx添加其他的功能模块.在为Nginx添加功能模块时,要求Nginx不停机.这就涉及到如何为已安装的Nginx动态添加模块的问题.本文,就和小伙伴们一起探讨如何为已安装的Nginx动态添加模块的问题. 为Nginx动态添加模块 这里以安装第三方ngx_http_google_filter_module模块为例. Nginx的模块是需要重新编译Nginx,而不是像Apache一样配置文…
环境 ACER NOTEBOOK  WIN10 ANNDROID 1.2 解决方案: 在Android Studio安装目录下的 bin 目录下,找到 idea.properties 文件,在文件最后追加 disable.android.first.run=true . ------------------------ 问题: android studio安装完后 第一次启动 start failed 提示如下 http://ask.android-studio.org/?/question/5…