CentOS7 systemd管理mysql的一个问题 20C

基础环境版本:
CentOS7.3
原生mysql5.7

我是通过下载官网的rpm包进行安装mysql-server的,

问题现象:
通过使用官网下载的rpm安装好mysql-server后,在配置文件中配置好mysql服务端
图片说明
创建好相关目录,配置好权限后,使用systemct启动应用
但是当我查看启动的mysql进程时,突然发现pid-file是/var/run/mysqld/mysqld.pid,但是我配置中写的是/opt/mysql/3306/tmp/mysqld.pid图片说明
查看了一下,发现/usr/lib/systemd/system/mysqld.service(mysql的systemd注册服务文件)中已经把mysql的pid文件名写死了图片说明
再次尝试修改pid文件路径,改为/opt/mysql/3306/tmp/mysqld.pid图片说明
使用systemctl daemon-reload重新加载mysqd.service文件
再次使用systemctl启动mysqld,但是这时,mysqld进程启动正常,pid文件也写入了正确的路径中,但是systemctl一直没有返回,另起一个section,用systemctl status mysqld查询状态,发现mysqld一直处于activating (start)状态图片说明
这时mysql-server可以正常使用,systemctl start mysqld的进程强制停掉也不会影响正常使用,但mysqld的服务状态也不会变为正常的active (running)
兄弟们有遇到过类似的状况么??求解一下,这个是什么原理?

1个回答

又重新看了一下,/usr/lib/systemd/system/mysqld.service中还有个配置是PIDfile,修改这个配置为/opt/mysql/3306/tmp/mysqld.pid后,就可以正常使用了,但是总觉得这个地方有点怪,本身我的/etc/my.cnf中已经配置了pid的文件路径,但是使用systemd管理mysqld服务的时候还需要在/usr/lib/systemd/system/mysqld.service中对pid文件另外进行配置,感觉这个本身有点问题呀

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
CentOS7桌面上有个叫CentOS 7 x86_64的快捷方式,图标是一个光盘,请问这个东西干什么用的?怎么卸载?

![图片说明](https://img-ask.csdn.net/upload/201904/26/1556261589_534787.png) 如图

CentOS 7 64位使用问题

↓↓↓如图↓↓↓ ![图片说明](https://img-ask.csdn.net/upload/201908/23/1566547725_75479.png) 登陆进去之后,我该如何进入桌面?难道Linux只有命令行? 求教 ![图片说明](https://img-ask.csdn.net/upload/201908/23/1566548325_883719.png)

linux下安装Mysql5.7出现的问题,搞了一天了!

出现了如下问题: --> Finished Dependency Resolution Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libsasl2.so.3()(64bit) Error: Package: mysql-community-client-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) Error: Package: mysql-community-libs-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libc.so.6(GLIBC_2.14)(64bit) Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: systemd Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) Error: Package: mysql-community-client-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libc.so.6(GLIBC_2.14)(64bit) Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libc.so.6(GLIBC_2.17)(64bit) 试着装了一次mysql5.6没有问题,但是装5.7却出现了这个问题,求助!!

我启动了`php-fpm`,但在我的CentOS7中找不到`php-fpm.sock`文件

<div class="post-text" itemprop="text"> <p>I started the <code>php-fpm</code>, but can not find the <code>php-fpm.sock</code> file in my CentOS7.</p> <p>I use this command installed the php7 and php7-fpm:</p> <pre><code>yum install php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel </code></pre> <p>I started the php-fpm:</p> <pre><code>/usr/sbin/php-fpm </code></pre> <p>but I can not find the <code>php-fpm.sock</code> file in my CentOS7.2, I can find the <code>php-fpm.pid</code> in there:</p> <pre><code>/var/run/php-fpm/php-fpm.pid </code></pre> <hr> <p><strong>EDIT-01</strong></p> <p>I use the <code>ss -x -a</code>, did not find the <code>php-fpm.sock</code>.</p> <pre><code>$ ss -x -a Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port u_str LISTEN 0 128 /run/lvm/lvmpolld.socket 8458 * 0 u_dgr UNCONN 0 0 /run/systemd/shutdownd 8465 * 0 u_str LISTEN 0 128 /run/docker/libnetwork/d47cac5c2e8dd9490d56a5067ec009db0aa0e0df52b4321c51bff8f6062f6166.sock 110335003 * 0 u_str LISTEN 0 128 /var/run/docker.sock 110329383 * 0 u_dgr UNCONN 0 0 /run/systemd/cgroups-agent 3853374 * 0 u_str LISTEN 0 128 /run/systemd/private 110322498 * 0 u_str LISTEN 0 30 /var/run/NetworkManager/private 9026 * 0 u_dgr UNCONN 0 0 /run/systemd/notify 1355 * 0 u_str LISTEN 0 128 /var/run/dbus/system_bus_socket 9805 * 0 u_str LISTEN 0 128 /run/systemd/journal/stdout 1364 * 0 u_dgr UNCONN 0 0 /run/systemd/journal/socket 1367 * 0 u_dgr UNCONN 0 0 /dev/log 1369 * 0 u_seq LISTEN 0 128 /run/udev/control 3852388 * 0 u_str LISTEN 0 5 /var/run/screen/S-root/9870..www 128997222 * 0 u_str LISTEN 0 128 /var/run/docker/libcontainerd/docker-containerd.sock 110326421 * 0 u_str LISTEN 0 80 /var/lib/mysql/mysql.sock 4072947 * 0 u_str LISTEN 0 128 /run/lvm/lvmetad.socket 8373 * 0 u_str ESTAB 0 0 /run/systemd/journal/stdout 19620 * 18806 u_str ESTAB 0 0 * 18650 * 9123 u_str ESTAB 0 0 /run/systemd/journal/stdout 8155 * 17962 u_dgr UNCONN 0 0 * 110327085 * 1369 u_dgr UNCONN 0 0 * 9025 * 1369 u_str ESTAB 0 0 * 18179 * 19621 u_str ESTAB 0 0 * 8176 * 8175 u_str ESTAB 0 0 * 110322500 * 110325911 u_str ESTAB 0 0 * 15930 * 10704 u_str ESTAB 0 0 * 130300393 * 130300392 u_str ESTAB 0 0 /run/systemd/journal/stdout 110325177 * 110327913 u_str ESTAB 0 0 * 9028 * 15825 u_str ESTAB 0 0 * 130011125 * 130011124 u_str ESTAB 0 0 * 18806 * 19620 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 10705 * 19546 u_str ESTAB 0 0 * 18596 * 8177 u_str ESTAB 0 0 /run/systemd/journal/stdout 4070758 * 4074559 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 19553 * 9145 u_str ESTAB 0 0 /var/run/docker/libcontainerd/docker-containerd.sock 110329386 * 110332150 u_dgr UNCONN 0 0 * 9938 * 1369 u_dgr UNCONN 0 0 * 110322566 * 1369 u_str ESTAB 0 0 /run/systemd/journal/stdout 19621 * 18179 u_dgr UNCONN 0 0 * 9147 * 1369 u_str ESTAB 0 0 /run/systemd/journal/stdout 10704 * 15930 u_str ESTAB 0 0 * 110327913 * 110325177 u_str ESTAB 0 0 * 130011124 * 130011125 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 15825 * 9028 u_dgr UNCONN 0 0 * 18585 * 1367 u_str ESTAB 0 0 * 8175 * 8176 u_str ESTAB 0 0 * 130013581 * 130013580 u_str ESTAB 0 0 * 12146 * 9463 u_str ESTAB 0 0 * 17234 * 21801 u_str ESTAB 0 0 * 3851403 * 3849440 u_dgr UNCONN 0 0 * 3845588 * 1367 u_str ESTAB 0 0 * 9145 * 19553 u_dgr UNCONN 0 0 * 130300389 * 1369 u_str ESTAB 0 0 * 19546 * 10705 u_str ESTAB 0 0 * 130013580 * 130013581 u_str ESTAB 0 0 * 110333809 * 110331364 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 21801 * 17234 u_str ESTAB 0 0 /run/systemd/journal/stdout 8152 * 16751 u_str ESTAB 0 0 /run/systemd/journal/stdout 8151 * 15671 u_str ESTAB 0 0 /run/systemd/journal/stdout 110331364 * 110333809 u_str ESTAB 0 0 * 110322568 * 110322567 u_str ESTAB 0 0 * 4074559 * 4070758 u_str ESTAB 0 0 /run/systemd/journal/stdout 9463 * 12146 u_str ESTAB 0 0 * 17962 * 8155 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 110325911 * 110322500 u_str ESTAB 0 0 /run/systemd/journal/stdout 18006 * 15757 u_dgr UNCONN 0 0 * 3845606 * 3845607 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 9123 * 18650 u_str ESTAB 0 0 * 15757 * 18006 u_str ESTAB 0 0 * 110322567 * 110322568 u_dgr UNCONN 0 0 * 110329381 * 1367 u_dgr UNCONN 0 0 * 3845607 * 3845606 u_str ESTAB 0 0 * 16751 * 8152 u_str ESTAB 0 0 * 110332150 * 110329386 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 8177 * 18596 u_str ESTAB 0 0 * 15671 * 8151 u_dgr UNCONN 0 0 * 130020259 * 1367 u_str ESTAB 0 0 * 130300392 * 130300393 u_str ESTAB 0 0 /run/systemd/journal/stdout 3849440 * 3851403 </code></pre> </div>

centos 7安装 yum install openssl-devel出现了问题,求解!

``` Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help). The program yum-complete-transaction is found in the yum-utils package. --> Running transaction check ---> Package openssl-devel.x86_64 1:1.0.1e-60.el7 will be installed --> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.1e-60.el7.x86_64 --> Running transaction check ---> Package krb5-devel.x86_64 0:1.14.1-27.el7_3 will be installed --> Processing Dependency: libkadm5(x86-64) = 1.14.1-27.el7_3 for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: libverto-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: libselinux-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Running transaction check ---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed ---> Package libcom_err-devel.x86_64 0:1.42.9-9.el7 will be installed ---> Package libkadm5.x86_64 0:1.14.1-27.el7_3 will be installed ---> Package libselinux-devel.x86_64 0:2.5-6.el7 will be installed --> Processing Dependency: libselinux(x86-64) = 2.5-6.el7 for package: libselinux-devel-2.5-6.el7.x86_64 --> Processing Dependency: libsepol-devel(x86-64) >= 2.5-6 for package: libselinux-devel-2.5-6.el7.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-6.el7.x86_64 ---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed --> Running transaction check ---> Package libselinux.x86_64 0:2.2.2-6.el7 will be updated ---> Package libselinux.x86_64 0:2.5-6.el7 will be an update --> Processing Dependency: libsepol(x86-64) >= 2.5-6 for package: libselinux-2.5-6.el7.x86_64 --> Processing Dependency: libsepol.so.1(LIBSEPOL_1.0)(64bit) for package: libselinux-2.5-6.el7.x86_64 ---> Package libsepol-devel.x86_64 0:2.5-6.el7 will be installed --> Running transaction check ---> Package libsepol.x86_64 0:2.1.9-3.el7 will be updated ---> Package libsepol.x86_64 0:2.5-6.el7 will be an update --> Processing Conflict: libselinux-2.5-6.el7.x86_64 conflicts systemd < 219-20 --> Finished Dependency Resolution Error: libselinux conflicts with systemd-container-208.20-6.el7.centos.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest ```

centos7上用rpmbuild建立rpm安装包问题(急)

centos7.1 php-5.6.25 $ ls rpmbuild/ BUILD BUILDROOT RPMS SOURCES SPECS SRPMS $cat rpmbuild/SPECS/php.spec Name: php Version: 5.6.25 Release: 1%{?dist} Summary: compiled from 5.6.25 by Kevin Group: System Environment/Daemons License: GPL URL: https://secure.php.net Source0: php-5.6.25.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: gcc, gcc-c++, openssl-devel Requires: wireshark-gnome %description php server. Compiled from 5.6.25 by Kevin %prep %setup -q %build ./configure '--with-libdir=lib64' '--prefix=/usr/local/php5.6' '--with-fpm-systemd' '--enable-fpm' '--enable-mbstring' '--with-mysql' '--with-mysqli' '--with-pdo-mysql' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-curl' '--with-openssl' '--with-mcrypt' '--enable-zip' '--enable-intl' make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %defattr(-,root,root,-) /usr/local/php5.6/bin/* /usr/local/php5.6/sbin/* /usr/local/php5.6/include/* /usr/local/php5.6/php/php/fpm/* /usr/local/php5.6/php/man/man1/* /usr/local/php5.6/php/man/man8/* /usr/local/php5.6/lib/php/* /usr/local/php5.6/lib/php/extensions/* /usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/* /usr/local/php5.6/lib/php/build/* /usr/local/php5.6/lib/php/build/shtool/* /usr/local/php5.6/lib/php/.registry/* /usr/local/php5.6/lib/php/.channels/* /usr/local/php5.6/lib/php/Archive/* /usr/local/php5.6/lib/php/doc/* /usr/local/php5.6/lib/php/doc/Archive_Tar/* /usr/local/php5.6/lib/php/doc/Archive_Tar/docs/* /usr/local/php5.6/lib/php/doc/Structures_Graph/* /usr/local/php5.6/lib/php/doc/Structures_Graph/docs/* /usr/local/php5.6/lib/php/doc/Structures_Graph/docs/tutorials/* /usr/local/php5.6/lib/php/doc/Structures_Graph/docs/tutorials/Structures_Graph/* /usr/local/php5.6/lib/php/doc/Structures_Graph/LICENSE/* /usr/local/php5.6/lib/php/doc/XML_Util/* /usr/local/php5.6/lib/php/doc/XML_Util/examples/* /usr/local/php5.6/lib/php/doc/PEAR/* /usr/local/php5.6/lib/php/doc/PEAR/LICENSE/* /usr/local/php5.6/lib/php/doc/PEAR/INSTALL/* /usr/local/php5.6/lib/php/Console/* /usr/local/php5.6/lib/php/test/* /usr/local/php5.6/lib/php/test/Console_Getopt/* /usr/local/php5.6/lib/php/test/Console_Getopt/tests/* /usr/local/php5.6/lib/php/test/Structures_Graph/* /usr/local/php5.6/lib/php/test/Structures_Graph/tests/* /usr/local/php5.6/lib/php/test/XML_Util/* /usr/local/php5.6/lib/php/test/XML_Util/tests/* /usr/local/php5.6/lib/php/Structures/* /usr/local/php5.6/lib/php/Structures/Graph/* /usr/local/php5.6/lib/php/Structures/Graph/Manipulator/* /usr/local/php5.6/lib/php/XML/* /usr/local/php5.6/lib/php/OS/* /usr/local/php5.6/lib/php/PEAR/* /usr/local/php5.6/lib/php/PEAR/ChannelFile/* /usr/local/php5.6/lib/php/PEAR/Command/* /usr/local/php5.6/lib/php/PEAR/Downloader/* /usr/local/php5.6/lib/php/PEAR/Frontend/* /usr/local/php5.6/lib/php/PEAR/Installer/* /usr/local/php5.6/lib/php/PEAR/Installer/Role/* /usr/local/php5.6/lib/php/PEAR/PackageFile/* /usr/local/php5.6/lib/php/PEAR/PackageFile/Generator/* /usr/local/php5.6/lib/php/PEAR/PackageFile/Parser/* /usr/local/php5.6/lib/php/PEAR/PackageFile/v2/* /usr/local/php5.6/lib/php/PEAR/REST/* /usr/local/php5.6/lib/php/PEAR/Task/* /usr/local/php5.6/lib/php/PEAR/Task/Postinstallscript/* /usr/local/php5.6/lib/php/PEAR/Task/Replace/* /usr/local/php5.6/lib/php/PEAR/Task/Unixeol/* /usr/local/php5.6/lib/php/PEAR/Task/Windowseol/* /usr/local/php5.6/lib/php/PEAR/Validator/* /usr/local/php5.6/lib/php/data/* /usr/local/php5.6/lib/php/data/PEAR/* %config /usr/local/php5.6/etc/* /usr/local/php5.6/var/run/* /usr/local/php5.6/lib/* %dir /usr/local/php5.6/var/log/ %post cp /usr/local/php5.6/etc/php-fpm.conf.default /usr/local/php5.6/etc/php-fpm.conf ln -s /usr/local/php5.6/bin/php /usr/bin/php %changelog * Tue Aug 30 2016 Kevin<kevin_liao@163.com> 5.6.25 - first rpm from php-5.6.25 然后用一个user用户为centos,没在root下执行 $ rpmbuild -ba rpmbuild/SPECS/php.spec 最后报错 Build complete. Don't forget to run 'make test'. + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.QjJHDq + umask 022 + cd /home/centos/rpmbuild/BUILD + '[' /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 '!=' / ']' + rm -rf /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 ++ dirname /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 + mkdir -p /home/centos/rpmbuild/BUILDROOT + mkdir /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 + cd php-5.6.25 + rm -rf /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 + make install DESTDIR=/home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 Installing shared extensions: /usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/ Installing PHP CLI binary: /usr/local/php5.6/bin/ Installing PHP CLI man page: /usr/local/php5.6/php/man/man1/ Installing PHP FPM binary: /usr/local/php5.6/sbin/ Installing PHP FPM config: /usr/local/php5.6/etc/ Installing PHP FPM man page: /usr/local/php5.6/php/man/man8/ Installing PHP FPM status page: /usr/local/php5.6/php/php/fpm/ Installing PHP CGI binary: /usr/local/php5.6/bin/ Installing PHP CGI man page: /usr/local/php5.6/php/man/man1/ Installing build environment: /usr/local/php5.6/lib/php/build/ Installing header files: /usr/local/php5.6/include/php/ Installing helper programs: /usr/local/php5.6/bin/ program: phpize program: php-config Installing man pages: /usr/local/php5.6/php/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/php5.6/lib/php/ [PEAR] Archive_Tar - already installed: 1.4.0 [PEAR] Console_Getopt - already installed: 1.4.1 [PEAR] Structures_Graph- already installed: 1.1.1 [PEAR] XML_Util - already installed: 1.3.0 [PEAR] PEAR - already installed: 1.10.1 Wrote PEAR system config file at: /usr/local/php5.6/etc/pear.conf You may want to add: /usr/local/php5.6/lib/php to your php.ini include_path /home/centos/rpmbuild/BUILD/php-5.6.25/build/shtool install -c ext/phar/phar.phar /usr/local/php5.6/bin ln -s -f phar.phar /usr/local/php5.6/bin/phar Installing PDO headers: /usr/local/php5.6/include/php/ext/pdo/ + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /home/centos/rpmbuild/BUILD/php-5.6.25 find: '/home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.QjJHDq (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.QjJHDq (%install)

centos7服务器中启动防火墙firewalld时间超长停止启动是怎么回事

firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: failed (Result: timeout) since Mon 2019-07-08 10:19:40 CST; 11min ago Docs: man:firewalld(1) Process: 7152 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS) Main PID: 7152 (code=exited, status=0/SUCCESS) 报错之前在防火墙端口处开启了3306端口,并且重载了,

为什么我的php没有呈现? 为什么我的php页面空白?

<div class="post-text" itemprop="text"> <p>I'm trying to setup a wordpress server, but before that I need to get PHP working. Currently I have installed and configured nginx and php 7.3, but the php is not rendering, it is just showing text.</p> <p><strong>Main Issue:</strong> </p> <pre><code>[root@a-knapsack-sav ~]# cat /usr/share/nginx/html/info.php &lt;?php phpinfo(); ?&gt; [root@a-knapsack-sav ~]# curl http://localhost/info.php &lt;?php phpinfo(); ?&gt; </code></pre> <p>Obviously I should expect to see some content from the above, but I'm not. The following is all of the setup that I've done. Hopefully someone can see this and point out my likely omission.</p> <p><strong>What OS are you using?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# rpm -q centos-release centos-release-7-6.1810.2.el7.centos.x86_64 </code></pre> <p><strong>Is nginx even installed?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# nginx -v nginx version: nginx/1.15.12 </code></pre> <p><strong>Is php even installed?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# php -v PHP 7.3.5 (cli) (built: Apr 30 2019 08:37:17) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.5, Copyright (c) 1999-2018, by Zend Technologies </code></pre> <p><strong>Where is nginx installed?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# pwd /etc/nginx [root@a-knapsack-sav nginx]# ls conf.d fastcgi_params koi-utf koi-win mime.types modules nginx.conf scgi_params sites-available sites-enabled uwsgi_params win-utf </code></pre> <p><strong>Is php-fpm even running?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# systemctl status php-fpm ● php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2019-05-03 10:42:25 CDT; 7h ago Main PID: 2772 (php-fpm) Status: "Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0req/sec" CGroup: /system.slice/php-fpm.service ├─2772 php-fpm: master process (/etc/php-fpm.conf) ├─2773 php-fpm: pool www ├─2774 php-fpm: pool www ├─2775 php-fpm: pool www ├─2776 php-fpm: pool www └─2777 php-fpm: pool www </code></pre> <p><strong>Is nginx even running?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# systemctl status nginx ● nginx.service - nginx - high performance web server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2019-05-03 17:19:55 CDT; 31min ago Docs: http://nginx.org/en/docs/ Process: 4299 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS) Process: 4302 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS) Main PID: 4303 (nginx) CGroup: /system.slice/nginx.service ├─4303 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf └─4304 nginx: worker process </code></pre> <p><strong>Did you edit you php.ini?</strong> Only the <code>cgi.fix_pathinfo</code> for security.</p> <pre><code>[root@a-knapsack-sav nginx]# cat /etc/php.ini | grep cgi.fix ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's ; http://php.net/cgi.fix-pathinfo cgi.fix_pathinfo=0 </code></pre> <p><strong>Did you update php's conf settings to for nginx?</strong><br> I think so.</p> <pre><code>[root@a-knapsack-sav ~]# cat /etc/php-fpm.d/www.conf | grep listen ; - 'listen' (unixsocket) ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on ; 'port' - to listen on a TCP socket to all addresses ; '/path/to/unix/socket' - to listen on a unix socket. listen = /var/run/php-fpm/php-fpm.sock ; Set listen(2) backlog. ;listen.backlog = 511 listen.owner = nobody listen.group = nobody ;listen.mode = 0660 ; When set, listen.owner and listen.group are ignored ;listen.acl_users = apache,nginx ;listen.acl_groups = ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address listen.allowed_clients = 127.0.0.1 ; listen queue - the number of request in the queue of pending ; connections (see backlog in listen(2)); ; max listen queue - the maximum number of requests in the queue ; listen queue len - the size of the socket queue of pending connections; ; listen queue: 0 ; max listen queue: 1 ; listen queue len: 42 [root@a-knapsack-sav ~]# cat /etc/php-fpm.d/www.conf | grep nginx user = nginx group = nginx ;listen.acl_users = apache,nginx </code></pre> <p><strong>Did you update nginx's conf properly?</strong> As far as I know to....</p> <pre><code>[root@a-knapsack-sav ~]# cat /etc/nginx/conf.d/default.conf server { listen 80; # listen [::]:80; server_name A.B.C.D; root /usr/share/nginx/html; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~* \.php$ { try_files $uri =404; fastcgi_index index.php; include fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # fastcgi_param SCRIPT_NAME $fastcgi_script_name; } # location ~ /.ht { # deny all; # } } </code></pre> <p><strong>Do you have your info.php file in the correct place?</strong><br> Yezzir.</p> <pre><code>[root@a-knapsack-sav ~]# ls /usr/share/nginx/html 50x.html index.html info.php </code></pre> <p><strong>What about your nginx.conf?</strong></p> <pre><code>[root@a-knapsack-sav ~]# cat /etc/nginx/nginx.conf user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/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; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*.conf; server_names_hash_bucket_size 64; } </code></pre> <p><strong>What about your sites-available conf?</strong> I don't know if this is needed but I tried it anways.</p> <pre><code>[root@a-knapsack-sav ~]# cat /etc/nginx/sites-available/default.conf server { listen 80; server_name A.B.C.D; root /usr/share/nginx/html; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ .php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # location ~ /.ht { # deny all; # } } </code></pre> <p><strong>Did you forget to link sites-enabled and sites-available?</strong> Nope :)</p> <pre><code>[root@a-knapsack-sav ~]# ls -lrt /etc/nginx/sites-enabled total 0 lrwxrwxrwx. 1 root root 39 May 3 12:40 default.conf -&gt; /etc/nginx/sites-available/default.conf </code></pre> <p>I hope this is everything. I think this is everything I've done. The index.html loads when I <code>curl http://localhost</code> but as shown above the info.php is not rendered when called. I think, I've set this up almost correct, but I'm pretty sure I missed something. Please let me know if something seems off. I tried to follow <a href="https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7</a> (mysql is on another server). Also if there is any configuration that I need to change so that <code>curl http://A.B.C.D</code> doesn't hang and returns like <code>curl http://localhost</code>, I'd appreciate it. Thanks :)</p> <p>Edit:</p> <p><strong>What is your entire config?</strong></p> <pre><code>[root@a-knapsack-sav ~]# nginx -T nginx: [warn] conflicting server name "A.B.C.D" on 0.0.0.0:80, ignored nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful # configuration file /etc/nginx/nginx.conf: user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/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; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*.conf; server_names_hash_bucket_size 64; } # configuration file /etc/nginx/mime.types: types { text/html html htm shtml; text/css css; text/xml xml; image/gif gif; image/jpeg jpeg jpg; application/javascript js; application/atom+xml atom; application/rss+xml rss; text/mathml mml; text/plain txt; text/vnd.sun.j2me.app-descriptor jad; text/vnd.wap.wml wml; text/x-component htc; image/png png; image/svg+xml svg svgz; image/tiff tif tiff; image/vnd.wap.wbmp wbmp; image/webp webp; image/x-icon ico; image/x-jng jng; image/x-ms-bmp bmp; font/woff woff; font/woff2 woff2; application/java-archive jar war ear; application/json json; application/mac-binhex40 hqx; application/msword doc; application/pdf pdf; application/postscript ps eps ai; application/rtf rtf; application/vnd.apple.mpegurl m3u8; application/vnd.google-earth.kml+xml kml; application/vnd.google-earth.kmz kmz; application/vnd.ms-excel xls; application/vnd.ms-fontobject eot; application/vnd.ms-powerpoint ppt; application/vnd.oasis.opendocument.graphics odg; application/vnd.oasis.opendocument.presentation odp; application/vnd.oasis.opendocument.spreadsheet ods; application/vnd.oasis.opendocument.text odt; application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; application/vnd.wap.wmlc wmlc; application/x-7z-compressed 7z; application/x-cocoa cco; application/x-java-archive-diff jardiff; application/x-java-jnlp-file jnlp; application/x-makeself run; application/x-perl pl pm; application/x-pilot prc pdb; application/x-rar-compressed rar; application/x-redhat-package-manager rpm; application/x-sea sea; application/x-shockwave-flash swf; application/x-stuffit sit; application/x-tcl tcl tk; application/x-x509-ca-cert der pem crt; application/x-xpinstall xpi; application/xhtml+xml xhtml; application/xspf+xml xspf; application/zip zip; application/octet-stream bin exe dll; application/octet-stream deb; application/octet-stream dmg; application/octet-stream iso img; application/octet-stream msi msp msm; audio/midi mid midi kar; audio/mpeg mp3; audio/ogg ogg; audio/x-m4a m4a; audio/x-realaudio ra; video/3gpp 3gpp 3gp; video/mp2t ts; video/mp4 mp4; video/mpeg mpeg mpg; video/quicktime mov; video/webm webm; video/x-flv flv; video/x-m4v m4v; video/x-mng mng; video/x-ms-asf asx asf; video/x-ms-wmv wmv; video/x-msvideo avi; } # configuration file /etc/nginx/conf.d/default.conf: server { listen 80; # listen [::]:80; server_name A.B.C.D; root /usr/share/nginx/html; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~* \.php$ { try_files $uri =404; fastcgi_index index.php; include fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # fastcgi_param SCRIPT_NAME $fastcgi_script_name; } # location ~ /.ht { # deny all; # } } # configuration file /etc/nginx/fastcgi_params: fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param REQUEST_SCHEME $scheme; fastcgi_param HTTPS $https if_not_empty; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; # PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200; # configuration file /etc/nginx/conf.d/default_original.conf: server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location / { root /usr/share/nginx/html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } # configuration file /etc/nginx/sites-enabled/default.conf: server { listen 80; server_name A.B.C.D; root /usr/share/nginx/html; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ .php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # location ~ /.ht { # deny all; # } } </code></pre> </div>

mysql.sock的所有者所属组以及权限全部都是问号?求助神回复如何删除,亦或是如何重建,必有重谢!!!

mysql.sock的所有者所属组以及权限全部都是问号?求助神回复如何删除,亦或是如何重建,必有重谢!!! 代码如下: [root@DBServer-BAK lib]# cd /tmp [root@DBServer-BAK tmp]# ll ls: 无法访问mysql.sock: 输入/输出错误 总用量 40 drwxr-xr-x 2 root root 4096 6月 25 11:16 hsperfdata_root s????????? ? ? ? ? ? mysql.sock -rw------- 1 mysql mysql 6 6月 25 11:34 mysql.sock.lock -rwxrwxrwx 1 root root 45 6月 25 11:46 mysql.sock.tar.gz drwx------ 3 root root 4096 6月 25 11:16 systemd-private-0a3b207663d847a183bbad804fca0ebd-colord.service-sic0B1 drwx------ 3 root root 4096 6月 25 11:16 systemd-private-0a3b207663d847a183bbad804fca0ebd-cups.service-4zk1XQ drwx------ 3 root root 4096 6月 25 11:16 systemd-private-0a3b207663d847a183bbad804fca0ebd-rtkit-daemon.service-aM0JqV drwx------ 3 root root 4096 6月 20 07:42 systemd-private-6d51751ab45a4174b26d3719b9ce8eee-colord.service-1RN8yw drwx------ 3 root root 4096 6月 20 07:42 systemd-private-6d51751ab45a4174b26d3719b9ce8eee-cups.service-vXDiW2 drwx------ 3 root root 4096 6月 20 07:42 systemd-private-6d51751ab45a4174b26d3719b9ce8eee-rtkit-daemon.service-zCu1j4 drwx------ 2 ytomsbag ytomsbag 4096 6月 21 11:23 tracker-extract-files.1000 错误日志如下: 2019-06-25T05:00:27.641394Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2019-06-25T05:00:27.642251Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2019-06-25T05:00:27.642263Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2019-06-25T05:00:27.643015Z 0 [Note] InnoDB: Waiting for purge to start 2019-06-25T05:00:27.693118Z 0 [Note] InnoDB: 5.7.19 started; log sequence number 2539728 2019-06-25T05:00:27.693642Z 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/mysql/data/ib_buffer_pool 2019-06-25T05:00:27.693845Z 0 [Note] Plugin 'FEDERATED' is disabled. 2019-06-25T05:00:27.694464Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190625 13:00:27 2019-06-25T05:00:27.698589Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key 2019-06-25T05:00:27.698608Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 2019-06-25T05:00:27.698645Z 0 [Note] IPv6 is available. 2019-06-25T05:00:27.698657Z 0 [Note] - '::' resolves to '::'; 2019-06-25T05:00:27.698702Z 0 [Note] Server socket created on IP: '::'. 2019-06-25T05:00:27.698752Z 0 [ERROR] Could not create unix socket lock file tmp/mysql.sock.lock. 2019-06-25T05:00:27.698766Z 0 [ERROR] Unable to setup unix socket lock file. 2019-06-25T05:00:27.698773Z 0 [ERROR] Aborting 2019-06-25T05:00:27.698781Z 0 [Note] Binlog end

求助mariadb安装后启动不了的问题

虚拟机上的cent0s6.2,安装mariadb5.5.20,按照以下步骤安装: shell> groupadd mysql shell> useradd -g mysql mysql shell> cd /usr/local shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf - shell> ln -s full-path-to-mysql-VERSION-OS mysql shell> cd mysql shell> chown -R mysql . shell> chgrp -R mysql . shell> scripts/mysql_install_db --user=mysql shell> chown -R root . shell> chown -R mysql data shell> bin/mysqld_safe --user=mysql & 最后一步报错: [root@localhost mariadb-5.5.20-linux-x86_64]# bin/mysqld_safe --user=mysql & [1] 3074 [root@localhost mariadb-5.5.20-linux-x86_64]# 170406 05:10:57 mysqld_safe Logging to '/usr/local/mariadb-5.5.20-linux-x86_64/data/localhost.localdomain.err'. 170406 05:10:57 mysqld_safe Starting mysqld daemon with databases from /usr/local/mariadb-5.5.20-linux-x86_64/data 170406 05:11:00 mysqld_safe mysqld from pid file /usr/local/mariadb-5.5.20-linux-x86_64/data/localhost.localdomain.pid ended [1]+ Done bin/mysqld_safe --user=mysql 求助,这个百度了好长时间,没找到合适的解决方法。

Linux磁盘100%已用求解答

系统版本 [root@localhost mysql]# cat /etc/centos-release CentOS Linux release 7.3.1611 (Core) [root@localhost mysql]# df -h 文件系统 容量 已用 可用 已用% 挂载点 /dev/mapper/cl-root 50G 50G 20K 100% / devtmpfs 3.9G 0 3.9G 0% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 3.9G 377M 3.5G 10% /run tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/sda1 1014M 139M 876M 14% /boot /dev/mapper/cl-home 198G 23G 175G 12% /home tmpfs 783M 0 783M 0% /run/user/0 [root@localhost mysql]# 这里inode值比较大,是因为/usr文件中文件比较多 [root@localhost mysql]# df -i 文件系统 Inode 已用(I) 可用(I) 已用(I)% 挂载点 /dev/mapper/cl-root 55680 49112 6568 89% / devtmpfs 998610 364 998246 1% /dev tmpfs 1001351 1 1001350 1% /dev/shm tmpfs 1001351 576 1000775 1% /run tmpfs 1001351 16 1001335 1% /sys/fs/cgroup /dev/sda1 524288 330 523958 1% /boot /dev/mapper/cl-home 103346176 25421 103320755 1% /home tmpfs 1001351 1 1001350 1% /run/user/0 [root@localhost mysql]# find /usr | wc -l 44229 注:/home由于挂在另外一个磁盘下,所以可以无视。 那在/dev/mapper/cl-root这块盘下大致就用了(29-23=6G) [root@localhost mysql]# du -sh / 29G [root@localhost mysql]# du -sh /* 0 /bin 106M /boot 0 /dev 30M /etc 23G /home 0 /lib 0 /lib64 0 /media 0 /mnt 0 /proc 69M /root 377M /run 0 /sbin 0 /srv 0 /sys 2.0M /tmp 2.0G /usr 3.5G /var 前面这台机器不归我管,后来出了这个问题让我来弄。 经理说,前面这台机器还好好的,有一天重启了一下,然后就发现mysql启动不了了,查看一下磁盘用了100%了,然后就删了一些日志文件,大概清理了2G,然后重启一下,结果重启完又变成100%,清理出来的2G不见了 已尝试: 1)怀疑过中毒了,但是CPU没有异样,就磁盘有问题 [root@localhost mysql]# top top - 18:43:57 up 27 days, 19:01, 2 users, load average: 0.12, 0.13, 0.27 Tasks: 126 total, 1 running, 125 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.1 us, 2.3 sy, 0.0 ni, 96.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 8010812 total, 141016 free, 2661320 used, 5208476 buff/cache KiB Swap: 8257532 total, 8223976 free, 33556 used. 4563024 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9220 root 20 0 6698700 359604 9476 S 5.6 4.5 733:59.96 java 12082 root 20 0 6449520 1.702g 12528 S 2.6 22.3 36:43.26 java 25297 root 20 0 357720 9564 2252 S 2.3 0.1 442:00.22 xfrpc 32298 root 20 0 430396 9236 2256 S 2.3 0.1 437:20.19 xfrpc 3133 root 20 0 169688 10560 1104 S 0.7 0.1 114:14.54 redis-server 2993 root 20 0 157704 2216 1536 R 0.3 0.0 0:00.05 top 1 root 20 0 45816 5408 3004 S 0.0 0.1 1:05.65 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:01.04 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:13.22 ksoftirqd/0 7 root rt 0 0 0 0 S 0.0 0.0 0:03.42 migration/0 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root 20 0 0 0 0 S 0.0 0.0 29:27.01 rcu_sched 10 root rt 0 0 0 0 S 0.0 0.0 0:22.34 watchdog/0 11 root rt 0 0 0 0 S 0.0 0.0 0:22.23 watchdog/1 12 root rt 0 0 0 0 S 0.0 0.0 0:01.89 migration/1 13 root 20 0 0 0 0 S 0.0 0.0 0:23.27 ksoftirqd/1 16 root rt 0 0 0 0 S 0.0 0.0 0:23.70 watchdog/2 17 root rt 0 0 0 0 S 0.0 0.0 0:02.59 migration/2 18 root 20 0 0 0 0 S 0.0 0.0 0:22.26 ksoftirqd/2 2)主要运行的程序有 tomcat,redis,mosquitto 我已经排除了tomcat日志过大的问题,我重启过tomcat,如果过大的话,重启的时候已经没掉了。 redis占用的内存看了下,也不是很大,才百来兆。 3)losf | grep delete 也已经试过了,没发现有什么占用着 因为重启之后磁盘还是满的,也不太可能是什么进程占用着文件没释放 [root@localhost conf]# lsof | grep deleted tuned 930 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) gmain 930 2261 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) tuned 930 2262 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) tuned 930 2263 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) tuned 930 2264 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) [root@localhost conf]# 4)磁盘坏了~ 如果是这种情况,就莫得办法咯。 求大神帮忙~先谢过了。

rpm -ivh ***.rpm命令错误

我电脑本来显示yum: command not found,所以我打算安装yum。 按照网上教程,使用rpm -ivh命令,![图片说明](https://img-ask.csdn.net/upload/202002/28/1582876363_427616.jpg) 按照提示,我又改成rpm-i **.rpm命令,![图片说明](https://img-ask.csdn.net/upload/202002/28/1582876647_941865.jpg) 但是网上别人都是这样的,![图片说明](https://img-ask.csdn.net/upload/202002/28/1582876774_935829.jpg) 我的yum一直无法安装成功。 哪位大佬能指导我安装下yum......

Php-fpm不会监听端口

<div class="post-text" itemprop="text"> <p>I have been trying to get php-fpm (w nginx) to work with the default port(9000) and it just does not work.I am trying to use php 7.1 (also tried 7.0 and 5.6). The service started fine and I can also see the port open and being listened in ss/netstat. There are no errors in the php-fpm log. Initially I thought it could be an nginx issue, But when I try to test the connection directly using cgi-fcgi -bind -connect 127.0.0.1:9000 it just does not respond and I eventually get a could not connect error. The request doesnot get logged in the access log (when access log enabled).</p> <pre><code> # cgi-fcgi -bind -connect 127.0.0.1:9000 Could not connect to 127.0.0.1:9000 </code></pre> <p>And some times after a restart it just randomly works for a few requests (sometimes 1 request, sometimes 10, varies) and then it just stops working again. The request count in the php-fpm status no longer increases. There is no rhyme or rythm to its behaviour and I could not find a consistent way to get it to work even for those few requests.<br> The issue has been haunting me for 2 days now and its soo inconsistent with nothing in logs. Please help. Thanks for the replies in advance.</p> <p><br> <br> <strong>What I tried so far -</strong> </p> <ol> <li>Tested with nginx to make sure that its not <em>cgi-fcgi</em> issue. Same problem in nginx too could not connect to upstream.</li> <li>Setting the php-fpm log level to debug to see if something pops up. Nothing out of the ordinary found.</li> <li>Enabling access log to see if the request atleast reaches php-fpm. <em>No entry in the access log for the failed requests.</em></li> <li>Changed <em>listen</em> value to 9000 and 0.0.0.0:9000 and the external_ip:9000. All of these changes didnot change the behaviour.</li> <li>Changed to other ports to ensure its not the port number being in use.</li> <li>Increased and decreased <em>pm.start_servers</em> along with other related values to check if its processes running out. Didnot effect, infact all process just idle all the time.</li> <li>Removing and re installing php-fpm</li> <li>Resetting the config to ensure its not a config issue</li> <li>Installing php-fpm from remi repo instead of webstatic repo to ensure its not a bad build</li> <li>Downgrading to php 7.0</li> <li>Stopping all other services to make sure there are no conflicts or alike</li> <li>Change listen.allowed_clients to 'any' to make sure that its not the client being rejected</li> <li>Nuked the server and reinstalled the OS itself to ensure that its not an OS issue after trying multiple things for 2 days straight. (Empty server with no data)</li> <li>It does work absolutely fine with a unix socket instead of port. But a socket will not work for the requirement as if it needs to get anything more than a 100 rows from mysql, I noticed it to just timeout (&gt; 30s) in socket mode.</li> </ol> <p><br> <br></p> <p><strong>Information &amp; Config Below</strong></p> <p>Operating System - CentOS 7</p> <p>PHP-FPM Service status</p> <pre><code> #service php-fpm status Redirecting to /bin/systemctl status php-fpm.service * php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled) Active: active (running) since Sun 2017-04-16 17:12:06 EDT; 14s ago Main PID: 2392 (php-fpm) Status: "Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0req/sec" CGroup: /system.slice/php-fpm.service |-2392 php-fpm: master process (/etc/php-fpm.conf) |-2393 php-fpm: pool www |-2394 php-fpm: pool www |-2395 php-fpm: pool www |-2396 php-fpm: pool www `-2397 php-fpm: pool www Apr 16 17:12:06 2740.servermania.com systemd[1]: Starting The PHP FastCGI Pr.... Apr 16 17:12:06 2740.servermania.com systemd[1]: Started The PHP FastCGI Pro.... Hint: Some lines were ellipsized, use -l to show in full. </code></pre> <p>Socketstat / netstat . (Last one is php-fpm)</p> <pre><code> # ss -tapn State Recv-Q Send-Q Local Address:Port Peer Address:Port Cannot open netlink socket: Protocol not supported LISTEN 0 0 *:111 *:* users:(("rpcbind",pid=1588,fd=4),("systemd",pid=1,fd=42)) LISTEN 0 0 *:80 *:* users:(("httpd",pid=1871,fd=3),("httpd",pid=1870,fd=3)) LISTEN 0 0 *:22 *:* users:(("sshd",pid=1512,fd=3)) LISTEN 0 0 127.0.0.1:25 *:* users:(("sendmail",pid=416,fd=4)) LISTEN 0 0 127.0.0.1:9000 *:* users:(("php-fpm",pid=2397,fd=0),("php-fpm",pid=2396,fd=0),("php-fpm",pid=2395,fd=0),("php-fpm",pid=2394,fd=0),("php-fpm",pid=2393,fd=0),("php-fpm",pid=2392,fd=6)) </code></pre> <p>The default php-fpm config I am currently trying to get to work.( My config is not working, hence trying to get it to work atleast in default). </p><pre><code>; Start a new pool named 'www'. [www] <pre><code>; Unix user/group of processes ; Note: The user is mandatory. If the group is not set, the default user's group ; will be used. ; RPM: apache Choosed to be able to access some dir as httpd user = apache ; RPM: Keep a group allowed to write in log dir. group = apache ; The address on which to accept FastCGI requests. ; Valid syntaxes are: ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on ; a specific port; ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on ; a specific port; ; 'port' - to listen on a TCP socket to all addresses ; (IPv6 and IPv4-mapped) on a specific port; ; '/path/to/unix/socket' - to listen on a unix socket. ; Note: This value is mandatory. listen = 127.0.0.1:9000 ; Set listen(2) backlog. ; Default Value: 511 (-1 on FreeBSD and OpenBSD) ;listen.backlog = 511 ; Set permissions for unix socket, if one is used. In Linux, read/write ; permissions must be set in order to allow connections from a web server. Many ; BSD-derived systems allow connections regardless of permissions. ; Default Values: user and group are set as the running user ; mode is set to 0660 ;listen.owner = nobody ;listen.group = nobody ;listen.mode = 0660 ; When POSIX Access Control Lists are supported you can set them using ; these options, value is a comma separated list of user/group names. ; When set, listen.owner and listen.group are ignored ;listen.acl_users = ;listen.acl_groups = ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address ; must be separated by a comma. If this value is left blank, connections will be ; accepted from any ip address. ; Default Value: any listen.allowed_clients = any ; Specify the nice(2) priority to apply to the pool processes (only if set) ; The value can vary from -19 (highest priority) to 20 (lower priority) ; Note: - It will only work if the FPM master process is launched as root ; - The pool processes will inherit the master process priority ; unless it specified otherwise ; Default Value: no set ; process.priority = -19 ; Choose how the process manager will control the number of child processes. ; Possible Values: ; static - a fixed number (pm.max_children) of child processes; ; dynamic - the number of child processes are set dynamically based on the ; following directives. With this process management, there will be ; always at least 1 children. ; pm.max_children - the maximum number of children that can ; be alive at the same time. ; pm.start_servers - the number of children created on startup. ; pm.min_spare_servers - the minimum number of children in 'idle' ; state (waiting to process). If the number ; of 'idle' processes is less than this ; number then some children will be created. ; pm.max_spare_servers - the maximum number of children in 'idle' ; state (waiting to process). If the number ; of 'idle' processes is greater than this ; number then some children will be killed. ; ondemand - no children are created at startup. Children will be forked when ; new requests will connect. The following parameter are used: ; pm.max_children - the maximum number of children that ; can be alive at the same time. ; pm.process_idle_timeout - The number of seconds after which ; an idle process will be killed. ; Note: This value is mandatory. pm = dynamic ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. ; This value sets the limit on the number of simultaneous requests that will be ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP ; CGI. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' ; Note: This value is mandatory. pm.max_children = 50 ; The number of child processes created on startup. ; Note: Used only when pm is set to 'dynamic' ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 pm.start_servers = 5 ; The desired minimum number of idle server processes. ; Note: Used only when pm is set to 'dynamic' ; Note: Mandatory when pm is set to 'dynamic' pm.min_spare_servers = 5 ; The desired maximum number of idle server processes. ; Note: Used only when pm is set to 'dynamic' ; Note: Mandatory when pm is set to 'dynamic' pm.max_spare_servers = 35 ; The number of seconds after which an idle process will be killed. ; Note: Used only when pm is set to 'ondemand' ; Default Value: 10s ;pm.process_idle_timeout = 10s; ; The number of requests each child process should execute before respawning. ; This can be useful to work around memory leaks in 3rd party libraries. For ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. ; Default Value: 0 ;pm.max_requests = 500 ; The URI to view the FPM status page. If this value is not set, no URI will be ; recognized as a status page. It shows the following informations: ; pool - the name of the pool; ; process manager - static, dynamic or ondemand; ; start time - the date and time FPM has started; ; start since - number of seconds since FPM has started; ; accepted conn - the number of request accepted by the pool; ; listen queue - the number of request in the queue of pending ; connections (see backlog in listen(2)); ; max listen queue - the maximum number of requests in the queue ; of pending connections since FPM has started; ; listen queue len - the size of the socket queue of pending connections; ; idle processes - the number of idle processes; ; active processes - the number of active processes; ; total processes - the number of idle + active processes; ; max active processes - the maximum number of active processes since FPM ; has started; ; max children reached - number of times, the process limit has been reached, ; when pm tries to start more children (works only for ; pm 'dynamic' and 'ondemand'); ; Value are updated in real time. ; Example output: ; pool: www ; process manager: static ; start time: 01/Jul/2011:17:53:49 +0200 ; start since: 62636 ; accepted conn: 190460 ; listen queue: 0 ; max listen queue: 1 ; listen queue len: 42 ; idle processes: 4 ; active processes: 11 ; total processes: 15 ; max active processes: 12 ; max children reached: 0 ; ; By default the status page output is formatted as text/plain. Passing either ; 'html', 'xml' or 'json' in the query string will return the corresponding ; output syntax. Example: ; http://www.foo.bar/status ; http://www.foo.bar/status?json ; http://www.foo.bar/status?html ; http://www.foo.bar/status?xml ; ; By default the status page only outputs short status. Passing 'full' in the ; query string will also return status for each pool process. ; Example: ; http://www.foo.bar/status?full ; http://www.foo.bar/status?json&amp;full ; http://www.foo.bar/status?html&amp;full ; http://www.foo.bar/status?xml&amp;full ; The Full status returns for each process: ; pid - the PID of the process; ; state - the state of the process (Idle, Running, ...); ; start time - the date and time the process has started; ; start since - the number of seconds since the process has started; ; requests - the number of requests the process has served; ; request duration - the duration in 袖s of the requests; ; request method - the request method (GET, POST, ...); ; request URI - the request URI with the query string; ; content length - the content length of the request (only with POST); ; user - the user (PHP_AUTH_USER) (or '-' if not set); ; script - the main script called (or '-' if not set); ; last request cpu - the %cpu the last request consumed ; it's always 0 if the process is not in Idle state ; because CPU calculation is done when the request ; processing has terminated; ; last request memory - the max amount of memory the last request consumed ; it's always 0 if the process is not in Idle state ; because memory calculation is done when the request ; processing has terminated; ; If the process is in Idle state, then informations are related to the ; last request the process has served. Otherwise informations are related to ; the current request being served. ; Example output: ; ************************ ; pid: 31330 ; state: Running ; start time: 01/Jul/2011:17:53:49 +0200 ; start since: 63087 ; requests: 12808 ; request duration: 1250261 ; request method: GET ; request URI: /test_mem.php?N=10000 ; content length: 0 ; user: - ; script: /home/fat/web/docs/php/test_mem.php ; last request cpu: 0.00 ; last request memory: 0 ; ; Note: There is a real-time FPM status monitoring sample web page available ; It's available in: @EXPANDED_DATADIR@/fpm/status.html ; ; Note: The value must start with a leading slash (/). The value can be ; anything, but it may not be a good idea to use the .php extension or it ; may conflict with a real PHP file. ; Default Value: not set pm.status_path = /status ; The ping URI to call the monitoring page of FPM. If this value is not set, no ; URI will be recognized as a ping page. This could be used to test from outside ; that FPM is alive and responding, or to ; - create a graph of FPM availability (rrd or such); ; - remove a server from a group if it is not responding (load balancing); ; - trigger alerts for the operating team (24/7). ; Note: The value must start with a leading slash (/). The value can be ; anything, but it may not be a good idea to use the .php extension or it ; may conflict with a real PHP file. ; Default Value: not set ping.path = /ping ; This directive may be used to customize the response of a ping request. The ; response is formatted as text/plain with a 200 response code. ; Default Value: pong ;ping.response = pong ; The access log file ; Default: not set access.log = /var/log/php-fpm/access.log ; The access log format. ; The following syntax is allowed ; %%: the '%' character ; %C: %CPU used by the request ; it can accept the following format: ; - %{user}C for user CPU only ; - %{system}C for system CPU only ; - %{total}C for user + system CPU (default) ; %d: time taken to serve the request ; it can accept the following format: ; - %{seconds}d (default) ; - %{miliseconds}d ; - %{mili}d ; - %{microseconds}d ; - %{micro}d ; %e: an environment variable (same as $_ENV or $_SERVER) ; it must be associated with embraces to specify the name of the env ; variable. Some exemples: ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e ; %f: script filename ; %l: content-length of the request (for POST request only) ; %m: request method ; %M: peak of memory allocated by PHP ; it can accept the following format: ; - %{bytes}M (default) ; - %{kilobytes}M ; - %{kilo}M ; - %{megabytes}M ; - %{mega}M ; %n: pool name ; %o: output header ; it must be associated with embraces to specify the name of the header: ; - %{Content-Type}o ; - %{X-Powered-By}o ; - %{Transfert-Encoding}o ; - .... ; %p: PID of the child that serviced the request ; %P: PID of the parent of the child that serviced the request ; %q: the query string ; %Q: the '?' character if query string exists ; %r: the request URI (without the query string, see %q and %Q) ; %R: remote IP address ; %s: status (response code) ; %t: server time the request was received ; it can accept a strftime(3) format: ; %d/%b/%Y:%H:%M:%S %z (default) ; The strftime(3) format must be encapsuled in a %{&lt;strftime_format&gt;}t tag ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t ; %T: time the log has been written (the request has finished) ; it can accept a strftime(3) format: ; %d/%b/%Y:%H:%M:%S %z (default) ; The strftime(3) format must be encapsuled in a %{&lt;strftime_format&gt;}t tag ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t ; %u: remote user ; ; Default: "%R - %u %t \"%m %r\" %s" ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%" ; The log file for slow requests ; Default Value: not set ; Note: slowlog is mandatory if request_slowlog_timeout is set slowlog = /var/log/php-fpm/www-slow.log ; The timeout for serving a single request after which a PHP backtrace will be ; dumped to the 'slowlog' file. A value of '0s' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 ;request_slowlog_timeout = 0 ; The timeout for serving a single request after which the worker process will ; be killed. This option should be used when the 'max_execution_time' ini option ; does not stop script execution for some reason. A value of '0' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 ;request_terminate_timeout = 0 ; Set open file descriptor rlimit. ; Default Value: system defined value ;rlimit_files = 1024 ; Set max core size rlimit. ; Possible Values: 'unlimited' or an integer greater or equal to 0 ; Default Value: system defined value ;rlimit_core = 0 ; Chroot to this directory at the start. This value must be defined as an ; absolute path. When this value is not set, chroot is not used. ; Note: chrooting is a great security feature and should be used whenever ; possible. However, all PHP paths will be relative to the chroot ; (error_log, sessions.save_path, ...). ; Default Value: not set ;chroot = ; Chdir to this directory at the start. ; Note: relative path can be used. ; Default Value: current directory or / when chroot ;chdir = /var/www ; Redirect worker stdout and stderr into main error log. If not set, stdout and ; stderr will be redirected to /dev/null according to FastCGI specs. ; Note: on highloaded environement, this can cause some delay in the page ; process time (several ms). ; Default Value: no ;catch_workers_output = yes ; Clear environment in FPM workers ; Prevents arbitrary environment variables from reaching FPM worker processes ; by clearing the environment in workers before env vars specified in this ; pool configuration are added. ; Setting to "no" will make all environment variables available to PHP code ; via getenv(), $_ENV and $_SERVER. ; Default Value: yes ;clear_env = no ; Limits the extensions of the main script FPM will allow to parse. This can ; prevent configuration mistakes on the web server side. You should only limit ; FPM to .php extensions to prevent malicious users to use other extensions to ; exectute php code. ; Note: set an empty value to allow all extensions. ; Default Value: .php ;security.limit_extensions = .php .php3 .php4 .php5 .php7 ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; the current environment. ; Default Value: clean env ;env[HOSTNAME] = $HOSTNAME ;env[PATH] = /usr/local/bin:/usr/bin:/bin ;env[TMP] = /tmp ;env[TMPDIR] = /tmp ;env[TEMP] = /tmp ; Additional php.ini defines, specific to this pool of workers. These settings ; overwrite the values previously defined in the php.ini. The directives are the ; same as the PHP SAPI: ; php_value/php_flag - you can set classic ini defines which can ; be overwritten from PHP call 'ini_set'. ; php_admin_value/php_admin_flag - these directives won't be overwritten by ; PHP call 'ini_set' ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. ; Defining 'extension' will load the corresponding shared extension from ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not ; overwrite previously defined php.ini values, but will append the new value ; instead. ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com ;php_flag[display_errors] = off php_admin_value[error_log] = /var/log/php-fpm/www-error.log php_admin_flag[log_errors] = on ;php_admin_value[memory_limit] = 128M ; Set session path to a directory owned by process user php_value[session.save_handler] = files php_value[session.save_path] = /var/lib/php/session php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache </code></pre> <p></p></code></pre> <p>PHP-FPM Error log</p> <pre><code> [16-Apr-2017 17:12:06] NOTICE: fpm is running, pid 2392 [16-Apr-2017 17:12:06] NOTICE: ready to handle connections [16-Apr-2017 17:12:06] NOTICE: systemd monitor interval set to 10000ms </code></pre> <p>Telnet output</p> <pre><code> # telnet 127.0.0.1 9000 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection timed out </code></pre> </div>

docker在win10企业版安装后,测试hello-world报错,local error: tls: bad record MAC,求教?

重装win10企业版后,安装docker,运行测试hello-world报错,阿里源已经替换,不知道为什么还是不行 C:\Users\Administrator>docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 0e03bdcc26d7: Pulling fs layer docker: Get https://registry-1.docker.io/v2/: local error: tls: bad record MAC. See 'docker run --help'.

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

HoloLens2开发入门教程

本课程为HoloLens2开发入门教程,讲解部署开发环境,安装VS2019,Unity版本,Windows SDK,创建Unity项目,讲解如何使用MRTK,编辑器模拟手势交互,打包VS工程并编译部署应用到HoloLens上等。

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

Only老K说-爬取妹子图片(简单入门)

安装第三方请求库 requests 被网站禁止了访问 原因是我们是Python过来的 重新给一段 可能还是存在用不了,使用网页的 编写代码 上面注意看匹配内容 User-Agent:请求对象 AppleWebKit:请求内核 Chrome浏览器 //请求网页 import requests import re //正则表达式 就是去不规则的网页里面提取有规律的信息 headers = { 'User-Agent':'存放浏览器里面的' } response = requests.get

2020_五一数学建模_C题_整理后的数据.zip

该数据是我的程序读取的数据,仅供参考,问题的解决方案:https://blog.csdn.net/qq_41228463/article/details/105993051

R语言入门基础

本课程旨在帮助学习者快速入门R语言: 课程系统详细地介绍了使用R语言进行数据处理的基本思路和方法。 课程能够帮助初学者快速入门数据处理。 课程通过大量的案例详细地介绍了如何使用R语言进行数据分析和处理 课程操作实际案例教学,通过编写代码演示R语言的基本使用方法和技巧

人才招聘系统PHP+MySQL源码

PHP 5.0及以上 + MySQL 5.0及以上 开发的人才招聘系统完全可运行源码,按照操作说明简单配置即可运行。学习PHPWEB应用的完整系统程序源码。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

python可视化分析(matplotlib、seaborn、ggplot2)

python可视化分析总结(matplotlib、seaborn、ggplot)一、matplotlib库1、基本绘图命令3、图形参数设置4、特殊统计图的绘制4.1 数学函数图4.2 气泡图4.1 三维曲面图二、seaborn库1、常用统计图1.1 箱线图1.2 小提琴图1.3 点图1.4 条图与计数图1.5 分组图1.6 概率分布图2、联合图3、配对图三、ggplot库1、图层画法+常用图形2、快速绘图 一、matplotlib库 1、基本绘图命令 import matplotlib.pyplot as

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

初级玩转Linux+Ubuntu(嵌入式开发基础课程)

课程主要面向嵌入式Linux初学者、工程师、学生 主要从一下几方面进行讲解: 1.linux学习路线、基本命令、高级命令 2.shell、vi及vim入门讲解 3.软件安装下载、NFS、Samba、FTP等服务器配置及使用

人工智能-计算机视觉实战之路(必备算法+深度学习+项目实战)

系列课程主要分为3大阶段:(1)首先掌握计算机视觉必备算法原理,结合Opencv进行学习与练手,通过实际视项目进行案例应用展示。(2)进军当下最火的深度学习进行视觉任务实战,掌握深度学习中必备算法原理与网络模型架构。(3)结合经典深度学习框架与实战项目进行实战,基于真实数据集展开业务分析与建模实战。整体风格通俗易懂,项目驱动学习与就业面试。 建议同学们按照下列顺序来进行学习:1.Python入门视频课程 2.Opencv计算机视觉实战(Python版) 3.深度学习框架-PyTorch实战/人工智能框架实战精讲:Keras项目 4.Python-深度学习-物体检测实战 5.后续实战课程按照自己喜好选择就可以

【大总结2】大学两年,写了这篇几十万字的干货总结

本文十天后设置为粉丝可见,喜欢的提前关注 不要白嫖请点赞 不要白嫖请点赞 不要白嫖请点赞 文中提到的书我都有电子版,可以评论邮箱发给你。 文中提到的书我都有电子版,可以评论邮箱发给你。 文中提到的书我都有电子版,可以评论邮箱发给你。 本篇文章应该算是Java后端开发技术栈的,但是大部分是基础知识,所以我觉得对任何方向都是有用的。 1、数据结构 数据结构是计算机存储、...

lena全身原图(非256*256版本,而是全身原图)

lena全身原图(非256*256版本,而是全身原图) lena原图很有意思,我们通常所用的256*256图片是在lena原图上截取了头部部分的256*256正方形得到的. 原图是花花公子杂志上的一个

【项目实战】 图书信息管理系统(Maven,mybatis)(第一个自己独立完成的项目)

《程序设计综合训练实践报告》 此项目为图书信息管理系统,是一个采用了mysql+mybatis框架+java编写的maven项目

图书管理系统(Java + Mysql)我的第一个完全自己做的实训项目

图书管理系统 Java + MySQL 完整实训代码,MVC三层架构组织,包含所有用到的图片资源以及数据库文件,大三上学期实训,注释很详细,按照阿里巴巴Java编程规范编写

Python入门视频精讲

Python入门视频培训课程以通俗易懂的方式讲解Python核心技术,Python基础,Python入门。适合初学者的教程,让你少走弯路! 课程内容包括:1.Python简介和安装 、2.第一个Python程序、PyCharm的使用 、3.Python基础、4.函数、5.高级特性、6.面向对象、7.模块、8.异常处理和IO操作、9.访问数据库MySQL。教学全程采用笔记+代码案例的形式讲解,通俗易懂!!!

20行代码教你用python给证件照换底色

20行代码教你用python给证件照换底色

2018年全国大学生计算机技能应用大赛决赛 大题

2018年全国大学生计算机技能应用大赛决赛大题,程序填空和程序设计(侵删)

MySQL数据库从入门到实战应用

限时福利1:购课进答疑群专享柳峰(刘运强)老师答疑服务 限时福利2:购课后添加学习助手(微信号:csdn590),按消息提示即可领取编程大礼包! 为什么说每一个程序员都应该学习MySQL? 根据《2019-2020年中国开发者调查报告》显示,超83%的开发者都在使用MySQL数据库。 使用量大同时,掌握MySQL早已是运维、DBA的必备技能,甚至部分IT开发岗位也要求对数据库使用和原理有深入的了解和掌握。 学习编程,你可能会犹豫选择 C++ 还是 Java;入门数据科学,你可能会纠结于选择 Python 还是 R;但无论如何, MySQL 都是 IT 从业人员不可或缺的技能! 【课程设计】 在本课程中,刘运强老师会结合自己十多年来对MySQL的心得体会,通过课程给你分享一条高效的MySQL入门捷径,让学员少走弯路,彻底搞懂MySQL。 本课程包含3大模块:&nbsp; 一、基础篇: 主要以最新的MySQL8.0安装为例帮助学员解决安装与配置MySQL的问题,并对MySQL8.0的新特性做一定介绍,为后续的课程展开做好环境部署。 二、SQL语言篇: 本篇主要讲解SQL语言的四大部分数据查询语言DQL,数据操纵语言DML,数据定义语言DDL,数据控制语言DCL,学会熟练对库表进行增删改查等必备技能。 三、MySQL进阶篇: 本篇可以帮助学员更加高效的管理线上的MySQL数据库;具备MySQL的日常运维能力,语句调优、备份恢复等思路。 &nbsp;

C/C++学习指南全套教程

C/C++学习的全套教程,从基本语法,基本原理,到界面开发、网络开发、Linux开发、安全算法,应用尽用。由毕业于清华大学的业内人士执课,为C/C++编程爱好者的教程。

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

我以为我对Mysql事务很熟,直到我遇到了阿里面试官

太惨了,面试又被吊打

专为程序员设计的数学课

<p> 限时福利限时福利,<span>15000+程序员的选择!</span> </p> <p> 购课后添加学习助手(微信号:csdn590),按提示消息领取编程大礼包!并获取讲师答疑服务! </p> <p> <br> </p> <p> 套餐中一共包含5门程序员必学的数学课程(共47讲) </p> <p> 课程1:《零基础入门微积分》 </p> <p> 课程2:《数理统计与概率论》 </p> <p> 课程3:《代码学习线性代数》 </p> <p> 课程4:《数据处理的最优化》 </p> <p> 课程5:《马尔可夫随机过程》 </p> <p> <br> </p> <p> 哪些人适合学习这门课程? </p> <p> 1)大学生,平时只学习了数学理论,并未接触如何应用数学解决编程问题; </p> <p> 2)对算法、数据结构掌握程度薄弱的人,数学可以让你更好的理解算法、数据结构原理及应用; </p> <p> 3)看不懂大牛代码设计思想的人,因为所有的程序设计底层逻辑都是数学; </p> <p> 4)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; </p> <p> 5)想修炼更好的编程内功,在遇到问题时可以灵活的应用数学思维解决问题。 </p> <p> <br> </p> <p> 在这门「专为程序员设计的数学课」系列课中,我们保证你能收获到这些:<br> <br> <span> </span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">①价值300元编程课程大礼包</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">②应用数学优化代码的实操方法</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">③数学理论在编程实战中的应用</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">④程序员必学的5大数学知识</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">⑤人工智能领域必修数学课</span> </p> <p> <br> 备注:此课程只讲程序员所需要的数学,即使你数学基础薄弱,也能听懂,只需要初中的数学知识就足矣。<br> <br> 如何听课? </p> <p> 1、登录CSDN学院 APP 在我的课程中进行学习; </p> <p> 2、登录CSDN学院官网。 </p> <p> <br> </p> <p> 购课后如何领取免费赠送的编程大礼包和加入答疑群? </p> <p> 购课后,添加助教微信:<span> csdn590</span>,按提示领取编程大礼包,或观看付费视频的第一节内容扫码进群答疑交流! </p> <p> <img src="https://img-bss.csdn.net/201912251155398753.jpg" alt=""> </p>

Eclipse archetype-catalog.xml

Eclipse Maven 创建Web 项目报错 Could not resolve archetype org.apache.maven.archetypes:maven-archetype-web

使用TensorFlow+keras快速构建图像分类模型

课程分为两条主线: 1&nbsp;从Tensorflow的基础知识开始,全面介绍Tensorflow和Keras相关内容。通过大量实战,掌握Tensorflow和Keras经常用到的各种建模方式,参数优化方法,自定义参数和模型的手段,以及对训练结果评估与分析的技巧。 2&nbsp;从机器学习基础算法开始,然后进入到图像分类领域,使用MNIST手写数据集和CIFAR10图像数据集,从简单神经网络到深度神经网络,再到卷积神经网络,最终完成复杂模型:残差网络的搭建。完成这条主线,学员将可以自如地使用机器学习的手段来达到图像分类的目的。

Python代码实现飞机大战

文章目录经典飞机大战一.游戏设定二.我方飞机三.敌方飞机四.发射子弹五.发放补给包六.主模块 经典飞机大战 源代码以及素材资料(图片,音频)可从下面的github中下载: 飞机大战源代码以及素材资料github项目地址链接 ————————————————————————————————————————————————————————— 不知道大家有没有打过飞机,喜不喜欢打飞机。当我第一次接触这个东西的时候,我的内心是被震撼到的。第一次接触打飞机的时候作者本人是身心愉悦的,因为周边的朋友都在打飞机, 每

最近面试Java后端开发的感受:如果就以平时项目经验来面试,通过估计很难,不信你来看看

在上周,我密集面试了若干位Java后端的候选人,工作经验在3到5年间。我的标准其实不复杂:第一能干活,第二Java基础要好,第三最好熟悉些分布式框架,我相信其它公司招初级开发时,应该也照着这个标准来面的。 我也知道,不少候选人能力其实不差,但面试时没准备或不会说,这样的人可能在进团队干活后确实能达到期望,但可能就无法通过面试,但面试官总是只根据面试情况来判断。 但现实情况是,大多数人可能面试前没准备,或准备方法不得当。要知道,我们平时干活更偏重于业务,不可能大量接触到算法,数据结构,底层代码这类面试必问

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

微信小程序开发实战之番茄时钟开发

微信小程序番茄时钟视频教程,本课程将带着各位学员开发一个小程序初级实战类项目,针对只看过官方文档而又无从下手的开发者来说,可以作为一个较好的练手项目,对于有小程序开发经验的开发者而言,可以更好加深对小程序各类组件和API 的理解,为更深层次高难度的项目做铺垫。

实用主义学Python(小白也容易上手的Python实用案例)

原价169,限时立减100元! 系统掌握Python核心语法16点,轻松应对工作中80%以上的Python使用场景! 69元=72讲+源码+社群答疑+讲师社群分享会&nbsp; 【哪些人适合学习这门课程?】 1)大学生,平时只学习了Python理论,并未接触Python实战问题; 2)对Python实用技能掌握薄弱的人,自动化、爬虫、数据分析能让你快速提高工作效率; 3)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; 4)想修炼更好的编程内功,优秀的工程师肯定不能只会一门语言,Python语言功能强大、使用高效、简单易学。 【超实用技能】 从零开始 自动生成工作周报 职场升级 豆瓣电影数据爬取 实用案例 奥运冠军数据分析 自动化办公:通过Python自动化分析Excel数据并自动操作Word文档,最终获得一份基于Excel表格的数据分析报告。 豆瓣电影爬虫:通过Python自动爬取豆瓣电影信息并将电影图片保存到本地。 奥运会数据分析实战 简介:通过Python分析120年间奥运会的数据,从不同角度入手分析,从而得出一些有趣的结论。 【超人气老师】 二两 中国人工智能协会高级会员 生成对抗神经网络研究者 《深入浅出生成对抗网络:原理剖析与TensorFlow实现》一书作者 阿里云大学云学院导师 前大型游戏公司后端工程师 【超丰富实用案例】 0)图片背景去除案例 1)自动生成工作周报案例 2)豆瓣电影数据爬取案例 3)奥运会数据分析案例 4)自动处理邮件案例 5)github信息爬取/更新提醒案例 6)B站百大UP信息爬取与分析案例 7)构建自己的论文网站案例

手把手实现Java图书管理系统(附源码)

【超实用课程内容】 本课程演示的是一套基于Java的SSM框架实现的图书管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的java人群。详细介绍了图书管理系统的实现,包括:环境搭建、系统业务、技术实现、项目运行、功能演示、系统扩展等,以通俗易懂的方式,手把手的带你从零开始运行本套图书管理系统,该项目附带全部源码可作为毕设使用。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27513 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

winfrom中嵌套html,跟html的交互

winfrom中嵌套html,跟html的交互,源码就在里面一看就懂,很简单

董付国老师Python全栈学习优惠套餐

购买套餐的朋友可以关注微信公众号“Python小屋”,上传付款截图,然后领取董老师任意图书1本。

相关热词 c#设计思想 c#正则表达式 转换 c#form复制 c#写web c# 柱形图 c# wcf 服务库 c#应用程序管理器 c#数组如何赋值给数组 c#序列化应用目的博客园 c# 设置当前标注样式
立即提问