nginx tomcate 聚群 session 复制 Linux下相关命令
//查看tomcat进程号
ps-ef|greptomcat
//杀死指定进程号350
kill-9350
//查看9080端口
netstat-an|grep9080
//删除当前文件夹下的内容
rm-r*
//启动tomcat
startup.sh//像Windows下可以显示控制台信息
catalina.sh run
echo "Usage: catalina.sh ( commands ... )" echo "commands:" echo " debug Start Catalina in a debugger" echo " debug -security Debug Catalina with a security manager" echo " embedded Start Catalina in embedded mode" echo " jpda start Start Catalina under JPDA debugger" echo " run Start Catalina in the current window" echo " run -security Start in the current window with security manager" echo " start Start Catalina in a separate window" echo " start -security Start in a separate window with security manager" echo " stop Stop Catalina"
memcached -d restart -m 128 -p 11211 -u root
常用设置:
-p<num>监听的端口
-l<ip_addr>连接的IP地址,默认是本机
-dstart启动memcached服务
-drestart重起memcached服务
-dstop|shutdown关闭正在运行的memcached服务
-dinstall安装memcached服务
-duninstall卸载memcached服务
-u<username>以<username>的身份运行(仅在以root运行的时候有效)
-m<num>最大内存使用,单位MB。默认64MB
-M内存耗尽时返回错误,而不是删除项
-c<num>最大同时连接数,默认是1024
-f<factor>块大小增长因子,默认是1.25
-n<bytes>最小分配空间,key+value+flags默认是48
-h 显示帮助安装MemCache 下载Memcache包上传至服务器
#tar-xvfmemcached-1.4.13.tar.gz
#cdmemcached-1.4.13
#./configure--prefix=/usr/local/memcached--with-libevent=/usr/
#make
#makeinstall//(可能没有权限需要切换root用户)
#ls -al /usr/local/memcached/bin //验证安装/usr/local/nginx/sbin
启动nginx
./nginx
停止
./nginx -s stop
相关推荐
<?php. if (!empty($_POST)) {. $data1 = $_POST["data1"];$data2 = $_POST["data2"];$fuhao = $_POST["fuh