LNMP状态管理命令
来源:互联网 发布:淘宝季康是谁 编辑:程序博客网 时间:2024/06/10 22:37
LNMP状态管理命令:
LNMP状态管理: /root/lnmp {start|stop|reload|restart|kill|status}
Nginx状态管理:/etc/init.d/nginx {start|stop|reload|restart}
MySQL状态管理:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}
Memcached状态管理:/etc/init.d/memcached {start|stop|restart}
PHP-FPM状态管理:/etc/init.d/php-fpm {start|stop|quit|restart|reload|logrotate}
PureFTPd状态管理: /etc/init.d/pureftpd {start|stop|restart|kill|status}
ProFTPd状态管理: /etc/init.d/proftpd {start|stop|restart|reload}
redis状态管理:/etc/init.d/redis {start|stop|restart}
如重启LNMP,输入命令:/root/lnmp restart 即可,单独重启mysql:/etc/init.d/mysql restart
LNMPA状态管理命令:
LNMPA状态管理: /root/lnmpa {start|stop|reload|restart|kill|status}
Nginx状态管理:/etc/init.d/nginx {start|stop|reload|restart}
MySQL状态管理:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}
Memcached状态管理:/etc/init.d/memcached {start|stop|restart}
PureFTPd状态管理: /etc/init.d/pureftpd {start|stop|restart|kill|status}
ProFTPd状态管理: /etc/init.d/proftpd {start|stop|restart|reload}
Apache状态管理:/etc/init.d/httpd {start|stop|restart|graceful|graceful-stop|configtest|status}
# Firewall configuration written by system-config-firewall# Manual customization of this file is not recommended.*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [0:0]-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT-A INPUT -p icmp -j ACCEPT-A INPUT -i lo -j ACCEPT-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT-A INPUT -j REJECT --reject-with icmp-host-prohibited-A FORWARD -j REJECT --reject-with icmp-host-prohibitedCOMMIT
server
server { listen 80; #listen [::]:80; server_name www.*******.com ; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/www.******.com; include other.conf; #error_page 404 /404.html; location ~ [^/]\.php(/|$) { # comment try_files $uri =404; to enable pathinfo try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; #include pathinfo.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } access_log /home/wwwlogs/www.******.com.log access; }
php函数禁用:
修改为:disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,escapeshellcmd,dll,popen,disk_free_space,checkdnsrr,checkdnsrr,getservbyname,getservbyport,disk_total_space,posix_ctermid,posix_get_last_error,posix_getcwd, posix_getegid,posix_geteuid,posix_getgid, posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid, posix_getppid,posix_getpwnam,posix_getpwuid, posix_getrlimit, posix_getsid,posix_getuid,posix_isatty, posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid, posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname
找到:;date.timezone =修改为:date.timezone = PRC #设置时区找到:expose_php = On修改为:expose_php = Off #禁止显示php版本的信息找到:short_open_tag = Off修改为:short_open_tag = ON #支持php短标签
- LNMP状态管理命令
- LNMP状态管理命令
- LNMP状态管理命令
- LNMP状态管理命令
- LNMP状态管理命令
- LNMP状态管理命令
- CentOS7 LNMP状态管理命令
- LNMP一键安装包状态管理命令
- LNMP安装快速导航:LNMP安装提示,LNMP安装教程、安装失败处理、虚拟主机管理、可选组件、LNMP文件目录说明、状态管理。
- SC命令管理服务状态
- SC命令管理服务状态
- 管理lnmp常用命令,lnmp重启,start|stop|reload|restart等命令
- mysql管理性能状态查看命令
- lnmp环境配置命令
- solaris管理命令svcadm(服务状态管理,启动、停止等)
- solaris管理命令svcadm(服务状态管理,启动、停止等)
- 状态管理
- 状态管理
- coding之痛:C++中编译器为类生成的几个默认的函数
- 寻找字符串中第一个只出现一次打字符
- 【脚本】linux shell 如何比较两个整数的大小
- Java_JSP2_标签文件Tag File支持;
- OBIEE - NQSError 46036 in BI administration after patching BI Server
- LNMP状态管理命令
- myeclipse中手工添加dtd支持
- leetcode--Merge Two Sorted Lists
- android service
- 深入学习ArrayList 和 LinkedList类
- Android签名总结
- ls -l 结果详解(简写为ll命令)
- DHCP和RARP区别
- (VC/MFC)禁止对话框(窗口)的大小改变和移动